[Cialug] [OT] Compilation problem

Matthew Steven matthew at geniusweb.com
Tue Jun 29 15:21:41 CDT 2010


I think this is what I did last time I ran across this:

As long as you _remember_ to put them right back, you can briefly move 
the other .so files out of the linker path ( to /var/tmp for example ), 
run ldconfig or update-modules or whatever your distro prefers, do the 
configure, and move them right back.  Run ldconfig/whatever again once 
they are back to regenerate everything.

If you're going to disrupt symlinks, save a copy of the state of things 
before you start, just to be safe.
ls -l /usr/local/lib > /tmp/locallibs.txt

I'd also do a backup of the lib directory if you have the space in 
advance, it's easy to goof it all up.

tar cfv libs.tar /usr/local/lib



Daniel A. Ramaley wrote:
> If multiple versions of a library are installed, is is possible to 
> compile software against a specific version? If so, how?
> 
> My specific situation is that a web server has 3 versions of libjpeg 
> installed, 6.2, 7.0, and 8.0. I need to compile PHP against version 6.2, 
> but it always finds the 8.0 version instead. All 3 versions are 
> installed in /usr/local. I tried configuring PHP specifying the exact 
> one using --with-jpeg-dir=/usr/local/lib/libjpeg.so.62, but it still 
> ended up using the 8.0 version. Unfortunately, i can't just remove the 
> newer versions as other running software is using it.
> 

-- 
Matthew Steven
http://www.geniusweb.com/
(515) 999 0842


More information about the Cialug mailing list