Neil W Rickert <rickert+nn@cs.niu.edu> wrote in message news:<ce9bmd$u6l$1@usenet.cso.niu.edu>...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> erin@eonarts.com (erin) writes:
>
> >I do a make and then a make install and things show up where they
> >should. I want to test my build so I do this:
> > $HOME/apache2/bin/httpd -l
> >ld.so.1: ./httpd: fatal: libgcc_s.so.1: open failed: No such file or
> >directory
> >Killed
>
> Solution 1:
>
> Use a symlink
>
Alas no symlinks are allowed! But you guessed that one. So I went on
to the next Solution.
>
> Solution 2:
>
> (a) quick and dirty fix. Set
>
> LD_LIBRARY_PATH=/usr/pubsw/lib
Just read about the evils of LD_LIBRARY_PATH and how I shouldn't use
it. I did set it up and it worked like a charm but apache needs it in
it's envvar to run. so I tried (c).
>
> (c) (best) . Recompile. But before compiling, set
>
> LD_OPTIONS="-R/usr/pubsw/lib"
>
> in your environment.
Ok, I gotta recompile anyway so I tried this:
LD_OPTIONS="-R$HOME/lib:/opt/local/lib:/usr/pubsw/lib
-L$HOME/lib:/opt/local/lib:/usr/pubsw/lib" in my Configure statement.
It compiled but a httpd -l and it gave me this error if the
LD_LIBRARY_PATH wasn't set:
ld.so.1: httpd: fatal: libgdbm.so.3: open failed: No such file or
directory
Killed
libgdbm.so.3 is in $HOME/lib.
So I added this (I know grasping at straws!):
LD_OPTIONS="-R$HOME/lib:/opt/local/lib:/usr/pubsw/lib
-L$HOME/lib:/opt/local/lib:/usr/pubsw/lib" AND the following:
--with-lgcc_s=/opt/local/lib --with-gdbm=$HOME/lib
then (w/o the LD_LIBRARY_PATH set) I did this: httpd -l and got this:
ld.so.1: httpd: fatal: libgdbm.so.3: open failed: No such file or
directory
Killed
Still isn't working w/o the LD_LIBRARY_PATH. I guess I have no choice
and must use it. sigh.
Actually I'm not sure I need libgdbm?? Do I?
thanks,
erin
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.3.6 (SunOS)
>
> iD8DBQFBCDIKvmGe70vHPUMRAtD4AKCyDnK0ar3mECJwnIEqfL DwxPKI+wCeMQro
> /aOzIuUEhF8DCLznxgDzoKs=
> =6/b7
> -----END PGP SIGNATURE-----