This is a discussion on ERROR: Compile Apache 2.0.50 on Solaris 8 within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hey all - I've been given the task to customize Apache on a Solaris 5.8 (sparc 8) system. The ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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? thanks, erin |
|
|||
|
-----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 ln -s /usr/pubsw/lib/libgcc_s.so.1 /usr/lib but check whether the path I suggested to libgcc_s.so.1 is the correct one. Since you are building apache to run under your home directory, I assume that solution 1 is not available to you. That leads to Solution 2: (a) quick and dirty fix. Set LD_LIBRARY_PATH=/usr/pubsw/lib in your environment, before starting apache. (b) (better) edit bin/envvars (as generated in your apache build), so that it sets LD_LIBRARY_PATH . Then, if you start apache in the usual manner (with apachectl) you shoule be fine. (c) (best) . Recompile. But before compiling, set LD_OPTIONS="-R/usr/pubsw/lib" in your environment. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.6 (SunOS) iD8DBQFBCDIKvmGe70vHPUMRAtD4AKCyDnK0ar3mECJwnIEqfL DwxPKI+wCeMQro /aOzIuUEhF8DCLznxgDzoKs= =6/b7 -----END PGP SIGNATURE----- |
|
|||
|
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----- |
|
|||
|
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. |
|
|||
|
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. |
| Thread Tools | |
| Display Modes | |
|
|