php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29506 PHP cannot run apxs
Submitted: 2004-08-03 15:18 UTC Modified: 2004-08-04 09:25 UTC
From: martinkuria at hotmail dot com Assigned:
Status: Not a bug Package: *Compile Issues
PHP Version: 5.0.0 OS: Solaris9
Private report: No CVE-ID:
 [2004-08-03 15:18 UTC] martinkuria at hotmail dot com
Description:
------------
I am trying to install php5.0.0, I have already installed apache-2.0.48, but when I try to compile php am getting the error below please do advice what can be wrong:

Perl is already also installed
I have given the correct path to apxs /usr/local/apache-2.0.48/apxs 
And my apache is build using --enable-so:

What could be the problem??

Perl is already also installed
I have given the correct path to apxs /usr/local/apache-2.0.48/apxs 
And my apache is build using --enable-so:

What could be the problem??



Reproduce code:
---------------
#:local/php-5.0.0>./configure --with-apxs2=/usr/local/apache-2.0.48/bin/apxs
loading cache ./config.cache
checking host system type... sparc-sun-solaris2.9
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... yes
checking for re2c... exit 0;
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for mawk... no
checking for gawk... no
checking for nawk... nawk
checking for bison... bison -y
checking bison version... 1.875 (ok)
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking flex version... 2.5.4 (ok)
checking for pthreads_cflags... -pthreads
checking for pthreads_lib...
 
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for member fd in BUFF *... no
checking for mod_charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS...
 
Sorry, I cannot run apxs.  Possible reasons follow:
 
1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)
 
The output of /usr/local/apache-2.0.48/bin/apxs follows:
ld.so.1: /usr/local/apache-2.0.48/bin/httpd: fatal: libdb-4.1.so: open failed: No such file or directory
Killed
apxs:Error: Sorry, no shared object support for Apache.
apxs:Error: available under your platform. Make sure.
apxs:Error: the Apache module mod_so is compiled into.
apxs:Error: your server binary `/usr/local/apache-2.0.48/bin/httpd'..
configure: error: Aborting
#:local/php-5.0.0>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-03 15:23 UTC] tony2001@php.net
ld fails to find libdb-4.1.so, which was used, when building Apache:
--
The output of /usr/local/apache-2.0.48/bin/apxs follows:
ld.so.1: /usr/local/apache-2.0.48/bin/httpd: fatal: libdb-4.1.so: open
failed: No such file or directory
--
Check you system and make sure you didn't delete this lib.
Try to run apxs from console, I'm sure will see the same error.

Not a PHP bug -> bogus.
 [2004-08-04 09:25 UTC] martinkuria at hotmail dot com
Thanks I got to solve the issue it's not a php bug? this is what I did:

cd /usr/local/BerkeleyDB.4.1/lib/libdb-4.1.so

ln -s /usr/local/BerkeleyDB.4.1/lib/libdb-4.1.so /usr/lib/libdb-4.1.so

My worries now are settle thanks all
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 24 21:01:55 2014 UTC