httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erin O'Neill" <...@stanford.edu>
Subject Re: [users@httpd] Compile Apache 2.0.50 on Solaris 8 problems
Date Thu, 29 Jul 2004 18:22:42 GMT
I'm still working on compiling Apache w/o having to have my LD_LIBRARY_PATH 
set. Turns out that my last compile only worked if I started up apache with 
the correct LD_LIBRARY_PATH. And as someone posted - LD_LIBRARY_PATH is 
evil and I should avoid it.

I hate having my hands tied but I want to figure this one out! Here's what 
I now have for configure:

./configure --prefix=$HOME/apache2 
LD_OPTIONS="-R$HOME/lib:/opt/local/lib:/usr/pubsw/lib 
-L$HOME/lib:/opt/local/lib:/usr/pubsw/lib" --with-lgcc_s=/opt/local/lib 
--with-gdbm=$HOME/lib --with-mpm=prefork --enable-so  --enable-ssl 
--enable-cgi --enable-imap --enable-alias --enable-auth 
--enable-mime  --enable-rewrite --enable-mods-shared="proxy proxy_http 
proxy_ftp proxy_connect headers access"

It configures & builds and httpd -l gives me this (w/o LD_LIBRARY_PATH 
being set):
ld.so.1: httpd: fatal: libgdbm.so.3: open failed: No such file or directory
Killed

Do I need libgdbm?? what's it used for? (I know I can turn it off ....)

thanks,
erin

At 12:56 PM 7/28/2004 -0700, you wrote:
>AHHH I got it to work w/o the crle (though I'm very interested in trying 
>that).
>
>Here's how I changed my configure:
>./configure --prefix=/sums/apache2 --with-mpm=prefork 
>--enable-mods-shared=most --with-lgcc_s=/opt/local/lib 
>LDFLAGS="-L/opt/local/lib:/usr/pubsw/lib"
>
>BUT I did have my LD_LIBRARY_PATH set..... It does work and now I'm on to 
>adding mod_perl and php into my Apache server.
>
>Thanks to all the help!
>
>erin
>
>At 02:37 PM 7/28/2004 -0400, you wrote:
>
>
>> > The other option is to add /usr/local/lib to the system search paths
>> > using crle.
>>
>> > # crle
>>
>> > Configuration file [3]: /var/ld/ld.config
>> >   Default Library Path (ELF):
>>/usr/lib:/usr/local/lib:/usr/local/ssl/lib
>> >   Trusted Directories (ELF):    /usr/lib/secure  (system default)
>>
>> > Command line:
>> >   crle -c /var/ld/ld.config -l /usr/lib:/usr/local/lib:/usr/local/ssl/lib
>>
>>
>> > Using the command line listed above will add /usr/local/lib to the
>> > default search path. You can ommit :/usr/local/ssl/lib if you don't need
>> > it but if openssl is installed with a prefix of /usr/local and apache is
>> > going to be using mod_ssl it's probably a good idea to keep it in there.
>>
>>IMO This is probably a better solution then using LD_LIBRARY_PATH(although
>>it was only stated as a workaround).  I've only gotten bit later by
>>compiling that way.
>>
>>LD_LIBRARY_PATH is bad -> http://www.visi.com/~barr/ldpath.html
>>
>>HTH
>>Jeff
>>
>>-Evan
>>
>>
>>On Wed, 2004-07-28 at 14:12, Milan Andric wrote:
>> > On Wed, Jul 28, 2004 at 11:00:50AM -0700, Erin O'Neill wrote:
>> > > 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?
>> >
>> > Hi, i think the maillist archive has more information ( you can probably
>> > search for libgcc_s).  To actually fix the problem you need to recompile
>>httpd
>> > and pass -lgcc_s -R/usr/local/lib to gcc OR compile in libgcc_s.la
>>statically.
>> > As a workaround, you can add /usr/local/lib to LD_LIBRARY_FLAGS in
>> > $HOME/bin/envvars. assuming libgcc_s.so is in /usr/local/lib
>> >
>> > HTH,
>>
>>
>>
>>---------------------------------------------------------------------
>>The official User-To-User support forum of the Apache HTTP Server Project.
>>See <URL:http://httpd.apache.org/userslist.html> for more info.
>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>>
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>The official User-To-User support forum of the Apache HTTP Server Project.
>>See <URL:http://httpd.apache.org/userslist.html> for more info.
>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message