Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 01-25-2006, 09:10 PM   #1
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?

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

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

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

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Check if /usr/local/lib is in your /etc/ 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 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/ 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
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/"


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/ 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 > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:35 AM.

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