LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack Search this Thread
Old 08-30-2005, 12:01 PM   #1
schokshi
LQ Newbie
 
Registered: Nov 2004
Posts: 2

Rep: Reputation: 0
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
 
Old 08-30-2005, 01:08 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,506

Rep: Reputation: 116Reputation: 116
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.
 
Old 08-30-2005, 02:22 PM   #3
schokshi
LQ Newbie
 
Registered: Nov 2004
Posts: 2

Original Poster
Rep: Reputation: 0
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

Last edited by schokshi; 10-31-2011 at 09:37 PM.
 
Old 08-30-2005, 09:14 PM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,506

Rep: Reputation: 116Reputation: 116
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/usr/lib/mozilla/plugins not valid install path for macromedia flash player 7? dr_zayus69 Linux - Software 2 08-14-2005 10:13 AM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 09:21 AM
Relationship between /usr/bin and /usr/lib glume Linux - Newbie 4 04-16-2004 08:11 AM
Need to add /usr/lib to PATH for RPM? SForsgren Linux - General 11 05-16-2003 07:03 PM


All times are GMT -5. The time now is 05:41 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration