hi there,
this issue can be distro dependent. i can give you some lines how it would work with slackware.
first, you need to be sure that your library directory is under
then you run, as root,
you need to do that every time that you update something concerning libraries.
regards
slackie1000