Barrick Gold Corp. has reached an agreement to settle its long-running tax dispute between the government of Tanzania and the…