Oliba ( ) ( c. 971 -- 1046 ) was the count of Berga and Ripoll ( 998 -- 1002 ) , and later abbot of the monasteries of Santa Maria de Ripoll and Sant Miquel de Cuixà ( 1008 -- 1046 ) and the bishop of Vic ( 1018 -- 1046 ) .
Oliba ( c. 971 -- 1046 ) was the count of Berga ( 998 -- 1003 ) and Ripoll and later bishop of Vic ( 1018 -- 1046 ) and abbot of Sant Miquel de Cuixà .