LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 08-30-2005, 12:01 PM   #1
schokshi
LQ Newbie
 
Registered: Nov 2004
Posts: 2

Rep: Reputation: Disabled
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
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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: Disabled
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
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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



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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:10 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration