LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-25-2006, 09:10 PM   #1
Archer36
Member
 
Registered: Aug 2004
Posts: 56

Rep: Reputation: 15
Libs being installed to /usr/local/lib?


Well here is my problem, I have been fighting it all night and came up with one part of my problem fixed. First when I insatll a program that uses ".pc" files it installed them into /usr/local/lib/pkgconfig and pkgconfig would freek out and could not find them. So i created a symbolic link pointing to /usr/lib/pkgconfig and that seems to be going well.

Now I am also facing the same issue with programs installing libs to /usr/local/lib, insted of /usr/lib and I get make errors about a file missing. My solution for a few files has been to cp the "missing" file from /usr/local/lib/ to /usr/lib and it seems to blow over.

Is this common, also are my actions damaging to the system at all?

Thanks
 
Old 01-25-2006, 09:51 PM   #2
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
./configure --prefix=/usr

HTH,
MMYoung
 
Old 01-25-2006, 10:51 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Check if /usr/local/lib is in your /etc/ld.so.config file. If not, add it and run the "ldconfig" program as root.

/usr/local/ is where software is supposed to go that you install yourself. Details are in the Filesystem Hierarchy Standard, which is available at the www.tldp.org website.

The /usr hierarchy is where a slackware .tgz package installation will go. If you install a non slackware tarball it may go under /usr/local.

You can do as MMYoung suggests when installing packages in the future. However, if you already have software installed in /usr/local, make sure the PATH variable has /usr/local/bin in it, and that the /etc/ld.so.conf has the /usr/local/lib/ entry. The only thing you would lose by using /usr/local is possibly losing this software when you do an upgrade, or go with a different distro. A distro will not touch /usr/local unless you format the partition it is on. This makes /usr/local a good candidate for its own partition. More so for a server environment.

Last edited by jschiwal; 01-25-2006 at 11:01 PM.
 
Old 01-25-2006, 11:52 PM   #4
karunamurti
LQ Newbie
 
Registered: Sep 2005
Distribution: Slackware
Posts: 25

Rep: Reputation: 15
you can add /usr/local/lib/pkgconfig/ to PKG_CONFIG_PATH variable
just do :
export PKG_CONFIG_PATH="/usr/lib/pkgconfig/:/opt/kde/lib/pkgconfig/:/usr/local/lib/pkgconfig/"
 
  


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
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/libaprutil-0.so. bijuhpd Linux - Newbie 1 10-30-2005 05:07 PM
cannot configure: permission denial in '/usr/local/lib/' sophiatang Red Hat 1 09-01-2005 08:29 PM
including usr/local/lib directory Quest101 Linux - Software 3 01-01-2005 04:13 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 09:21 AM
/usr/lib and /usr/local/lib doxxan Slackware 5 06-15-2004 12:58 AM

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

All times are GMT -5. The time now is 04:14 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