Guinea has had a history of authoritarian rule since gaining its independence from France in 1958 .