LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-12-2011, 09:42 AM   #1
Dweeb2010
Member
 
Registered: May 2010
Posts: 33

Rep: Reputation: 1
old probs - new challenges: ldconfig, /usr/local, and configure


Hi. Typically the way I run my systems is to use what is provided by whatever package manager, but if something is unavailable or outdated, I will just go ahead and build libraries and programs myself, installing them into /usr/local. The primary problem I'm having right now is getting configure scripts to see libraries which are installed in /usr/local.

In the past, while using Debian, all that was necessary was for me to install whichever library into /usr/local, and then run an ldconfig. I don't recall ever having a problem with configure detecting a library by following those simple steps.

On my current system, using SMGL (sourcemage), I simply cannot get configure scripts to detect libraries which are installed in /usr/local/lib. This has happened with a couple of different libraries and programs I've tried to install which use the standard GNU autotools system. I've tried setting CFLAGS and LDFLAGS while running configure; I've tried setting PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR, as well as using specific variables for a library if the configure script supports it (for example, LIBFFI_LIBS).

So essentially what is happening is I'm getting the "package not installed" messages, even though everything that a particular piece of software needs is actually in /usr/local. Any ideas on what I need to do, or what I may be doing wrong?

I realize this is a classic issue, covered countless times, but I think something else is going on here because I've been able to get around these problems in the past by running an ldconfig. For whatever reason, it's just not working for me now. Thanks.
 
Old 08-13-2011, 05:54 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Make sure that /usr/local/lib is listed in /etc/ld.so.conf before running ldconfig.
 
Old 08-13-2011, 05:59 PM   #3
Dweeb2010
Member
 
Registered: May 2010
Posts: 33

Original Poster
Rep: Reputation: 1
Thanks, jschiwal. I did have /usr/local/lib in ld.so.conf, but I think the problems I was having were related specifically to the things I was trying to build. I got around the issue by specifying other variables to point to the libraries, but I've never had to do that before - maybe something on my system is just broken. I'll go ahead and mark as solved.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/usr/local/lib or /usr/local/lib64 rigelan Slackware 9 07-24-2009 06:32 PM
configure error: configure: error: cannot execute: /usr/local/bin/arm-apple-darwin-ld GunNam Linux - General 0 10-24-2008 08:26 PM
./configure --prefix=/usr [default: /usr/local] why??? stevesk Slackware 14 07-03-2006 06:28 AM
ldconfig /usr/local/lib/ is not a symbolic link gbowden Slackware 3 05-21-2006 08:15 PM
cannot configure: permission denial in '/usr/local/lib/' sophiatang Red Hat 1 09-01-2005 08:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:50 PM.

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