View Single Post

  #4 (permalink)  
Old 07-30-2004
Gerry T
 
Posts: n/a
Default Re: ERROR: Compile Apache 2.0.50 on Solaris 8

erin@eonarts.com (erin) wrote in message news:<259f7959.0407281000.242cb944@posting.google. com>...
> Hey all -
> I've been given the task to customize Apache on a Solaris 5.8 (sparc
> 8) system. The problem is that I must put it in my HOME, rather than
> /usr/local/apache2. Ok, I'm cool with that and apache2 docs are cool
> with that.
>
> I'll be adding in PHP and mod_perl, MySQL has already been installed
> with a binary.
>
> It configures. Here's what my configure script looks like:
> ./configure --prefix=$HOME/apache2 --with-mpm=prefork
> --enable-mods-shared=most
>
> 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
>
> My gcc -v gives me this:
> Reading specs from /usr/pubsw/lib/gcc-lib/sparc-sun-solaris2.8/3.3.1/specs
> Configured with: ../../gcc-3.3.1/configure --datadir=${prefix}/lib
> --libexecdir=${prefix}/lib --sharedstatedir=${prefix}/lib
> --prefix=/usr/pubsw --enable-threads --disable-multilib --with-gnu-as
> --with-as=/usr/pubsw/bin/as --with-gnu-ld --with-ld=/usr/pubsw/bin/ld
> Thread model: posix
> gcc version 3.3.1
>
> Any suggestions? Hints?


Read the man pages on "ld" and "ldd".
Export a suitable LD_RUN_PATH at compile time so that
the resultant binaries can find shared libs that arent
in /usr/lib.