httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kyle Dent <kd...@seaglass.com>
Subject Re: [users@httpd] need help with apache2. Will not start
Date Fri, 14 Nov 2003 16:38:04 GMT
On Fri, 14 Nov 2003, CJ wrote:

> I receive the following erro but i have the
> libdb-3.3.so.0 on the system and linked to libdb.a
>
> ls -al libdb.a
> lrwxrwxrwx   1 root     system           14 Nov 14
> 10:13 libdb.a -> libdb-3.3.so.0
>  So why wont this start?
>
> ./apachectl start
> exec(): 0509-036 Cannot load program
> /opt/freeware/apach2/bin/httpd because of the
> following errors:
>         0509-022 Cannot load module
> /opt/freeware/apach2/lib/libaprutil-0.so.
>         0509-150   Dependent module
> /usr/local/lib/libdb.a(libdb-3.3.so.0) could not be
> loaded.
>         0509-152   Member libdb-3.3.so.0 is not found
> in archive
> root@outland:/opt/freeware/apach2/bin> ./apachectl
> start
> exec(): 0509-036 Cannot load program
> /opt/freeware/apach2/bin/httpd because of the
> following errors:
>         0509-022 Cannot load module
> /opt/freeware/apach2/lib/libaprutil-0.so.
>         0509-150   Dependent module
> /usr/local/lib/libdb.a(libdb-3.3.so.0) could not be
> loaded.
>         0509-152   Member libdb-3.3.so.0 is not found
> in archive

It looks like your runtime linker can't find the shared library.
The best thing is to include the location when you build Apache.
Seems like you're using IRIX. If so, you need the -rpath option
in addition to the -L option for locating libraries when you
compile.

If you're using configure, include the option in the LDFLAGS
environment variable when you run it. With the IRIX compiler:

  $ LDFLAGS="-rpath/usr/local/lib" ./configure ...

(Where the dots are the rest of your normal options.)

If you're using gcc, do this instead:

  $ LDFLAGS="-Wl,-rpath/usr/local/lib" ./configure ...

If you're not on IRIX, check your linker's man page ld(1) to see
what option you need to include a runtime library search path.

Kyle


---------------------------------------------------------------------
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