LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   Relocat /usr/lib and /usr/lib64 to a different path (http://www.linuxquestions.org/questions/fedora-35/relocat-usr-lib-and-usr-lib64-to-a-different-path-358527/)

schokshi 08-30-2005 12:01 PM

Relocat /usr/lib and /usr/lib64 to a different path
 
I have a FC4 installation.
I wish to relocate the shared objects found under /usr/lib and /usr/lib64 to different lcation say /usr/lib_org and /usr/lib64_org respectively.

I need to do it such that the new paths are registered in the system and all the application search for their shared objects under the new folders instead of expecting them under /usr/lib or /usr/lib64


Thanks & Regards
Sam

Matir 08-30-2005 01:08 PM

Is there a reason you want to move them? You'll probably have to recompile most of the software on your computer with new library locations, update your ldconfig, etc.

schokshi 08-30-2005 02:22 PM

I skipped rebuilding all the apps.
but added a conf file under /etc/ld.so.conf.d in which I specified my folders.

Rebooted the system.
Checked the dump from ldconfig -p .
All the so's now resolved to the folders I wanted them to be redirected to.
Also tried to run few apps which were previously complaining about not finding the shared objects. They executed without any error.
Thanks for the clue.


Thanks & Regards
Sam

Matir 08-30-2005 09:14 PM

Nice. Glad it worked for you. For some reason I woulda figured most (many) apps would need to be rebuilt. But I was wrong. :) I guess dynamic libraries at compile time are just used for symbol resolution.


All times are GMT -5. The time now is 12:03 PM.