[lug] libraries...linking...learning...
Hugh Brown
hugh at math.byu.edu
Tue Jul 25 11:26:14 MDT 2000
ldconfig is what tells the system which paths to look in for libraries and it also sets up the
right links for things, so make sure your /etc/ldconfig.conf (I think that's the file). has an
entry for /usr/local/lib (if that's where your libraries will be)
You might also run the configure script with --prefix=/usr instead of letting it default to
/usr/local
HTH.
Hugh
>
> My system: RedHat 6.2, with 2.2.16 kernel.
>
> Question/Advice: I am installing support for image creation with PHP. This
> requires gd, zlib, libpng, and libjpeg (for the formats I'm interested in.)
> RedHat obviously already has these libs installed as rpms.
> I want to remove the rpms and compile the libs, etc myself.
> When I do this compile I will be installing them into /usr/local paths.
> First I try to remove the rpms for gd, zlib, etc. I, of course, get module
> dependency errors. Now, I can force the removal, no prob there. What I'm
> dubious about is how do I let the system know where the new libs are? (I
> think they used to be in /usr/lib, or /lib.)
> Is this a job for "ldconfig"? I am new to this stuff, so any pointers would
> be appreciated. FYI, I've already been thru compile and install of
> PHP/Apache/SSL/MySQL/mod_perl from source without any problems, so I'm not
> totally clueless ;-). This is my first time doing any library compiles tho.
More information about the LUG
mailing list