安装PHP4问题出来了..高手进来帮忙看下是什么出错了?
[root@localhost bbs]# ls
php-4.4.2 php-4.4.2.tar.bz2
[root@localhost bbs]# cd php-4.4.2
[root@localhost php-4.4.2]# ls
acconfig.h configure.in ltmain.sh php.gif regex
acconfig.h.in CREDITS main php.ini-dist run-tests.php
acinclude.m4 cvsclean makedist php.ini-recommended sapi
aclocal.m4 ext Makefile.frag README.CVS-RULES scripts
build EXTENSIONS Makefile.fragments README.EXTENSIONS server-tests.php
buildconf footer Makefile.global README.EXT_SKEL snapshot
CODING_STANDARDS generated_lists Makefile.objects README.PARAMETER_PARSING_API stamp-h.in
confdefs.h genfiles makerpm README.QNX stub.c
config.cache header missing README.SELF-CONTAINED-EXTENSIONS tests
config.guess include mkinstalldirs README.STREAMS TODO
config.log INSTALL netware README.SUBMITTING_PATCH TODO_SEGFAULTS
config.nice install-sh NEWS README.TESTING TSRM
config.sub libs pear README.UNIX-BUILD-SYSTEM win32
configure LICENSE php4.spec.in README.Zeus Zend
[root@localhost php-4.4.2]# ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs
loading cache ./config.cache
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking host system type... i686-pc-linux-gnu
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... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... exit 0;
checking whether ln -s works... yes
checking for gawk... gawk
checking for bison... bison -y
checking bison version... 1.35 (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 whether byte ordering is bigendian... no
checking whether to force non-PIC code in shared modules... yes
checking for pthreads_cflags... -pthread
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 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/bin/apxs follows:
./configure: line 5656: /usr/local/apache/bin/apxs: No such file or directory
configure: error: Aborting
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
说的是perl没安装和apxs没找到,,,同意楼上的,看一看你的apache是几的1还是2的,我记的php目录下,就这样吗,,我的安装命令是这样的
#./configure --with-apxs2=/usr/local/apache2/bin/apxs
#make
#make install
#cp php.ini-dist /usr/lib/php.ini(这个你打一下看看)就好了
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs
应该是:./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs
Apache was not built using --enable-so 说明的够清楚了,
Perl 明明已经安装
为什么安装了Apache 却找不到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)
不都告诉你了吗
MYSQL和Apache已经正常启动和工作了,但是PHP无论是PHP5还是PHP4都不能正确编译成功.