On Feb 24, 10:37 am, "phantom" <nob... RemoveThis @blueyonder.invalid> wrote:
> "L. D. James" <lja... RemoveThis @apollo3.com> wrote in messagenews:50a954f2-d753-4acc-8ea6-e576d014b2f4@j28g2000hsj.googlegroups.com...
>
> > Can someone tell me how to force Apache httpd-2.2.8 to search /usr/
> > local/lib rather than /usr/lib when compiling.
>
> > I downloaded and installed gdbm-1.8.3.tar.gz to /usr/local/lib.
>
> > I used the following configure option:
>
> > ./configure --libdir=/usr/local/lib
>
> > It configures without any error messages. Then when I run "make" I
> > get the following error:
>
> > libtool: link: cannot find the library `/usr/lib/libgdbm.la'
>
> > The "libgdbm.la" file is in /usr/local/lib.
>
> one method would be to put a symlink where libtool is looking that points to
> where you've installed the file:
> ln -s /usr/local/lib/libgdbm.la /usr/lib/libgdbm.la
>
> another would be to simply copy the file to where libtool is expecting it:
> cp /usr/local/lib/libgdbm.la /usr/lib/libgdbm.la
>
> or maybe rebuild after using configure with the path libtool is expecting:
> ./configure --libdir=/usr/lib
Phanton, thanks for the input and suggestions. I had already done the
things that you mentioned. I'm doing them again to see if there was
something I missed. I'll also mention the other things that I have
done to try to remove this problem.
I'm really wondering where Apache is getting this notion to search /
usr/lib when all the programs that I install are all installed with
the /usr/local prefix. I haven't installed anything in /usr/lib.
The link and copy option appears to work. But there is some type of
version confusion when I try to start the server. It fails to start.
I installed everything fresh in /usr/local. The things I freshly
installed includes:
perl-5.8.8.tar.gz: /usr/local
httpd-2.2.8.tar.bz2: /usr/local
libtool-1.5.26.tar.gz: /usr/local
gdbm-1.8.3.tar.gz: /usr/local
I set the following link library flag:
export LDFLAGS="-L/usr/local/lib"
I cleaned and attempted to compile apache as such:
make distclean
../configure --libdir=/usr/local/lib
make
The configure completes without errors. The "make" errors with:
libtool: link: cannot find the library `/usr/lib/libgdbm.la'
Is there something else that I can do to force apache to forget /usr/
lib and use /usr/local/lib instead? I don't want to completely remove
the distributed /usr/lib because there are many default programs that
I didn't install that I'm sure are depended on the already installed
version.
By the way, this is a brand new installation of fedora core 8 on a
freshly installed hard drive.
Thanks in advance for anyone with advice. Is there something hard
coded about apache that makes it totally depended on looking at /usr/
lib?
-- L. James
--
L. D. James
ljames RemoveThis @apollo3.com
www.apollo3.com/~ljames >> Stay informed about: How to generate (or obtain) the *.la library files