apache with php4 安装失败 请指教

由 digitaller 在 01-15-2003 15:32 发表:

apache with php4 安装失败 请指教

我按照大虾们的Linux下APACHE+PHP+MYSQL+CGI安装方法,除开sql是安装的4个RPM包的那种,其余的全是按照指示操作.但是我在配置PHP的时候,命令如下:./configure --with-mysql=/usr --with-apache=../apache_1.3.24(因为我不是用TAR BALL,所以路径为/usr),在CONFIG正常退出后,出现一大堆东西最后显示 -lm -ldl -lnsl -lcrypt -o sapi/cli/php

ext/mysql/php_mysql.o: In function `zif_mysql_create_db':

/download/php-4.3.0/ext/mysql/php_mysql.c:1118: undefined reference to `mysql_create_db'

ext/mysql/php_mysql.o: In function `zif_mysql_drop_db':

/download/php-4.3.0/ext/mysql/php_mysql.c:1160: undefined reference to `mysql_drop_db'

collect2: ld returned 1 exit status

make: *** [sapi/cli/php] Error 1

之后退出.我想可能是MYSQL的原因,就./configure --with-apache=../apache_1.3.24.这次倒一切正常.make make install都通过,然后(apache dir)./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libmodphp4.a --activate-module=src/modules/fastcgi/libfastcgi.a --activate-module=src/modules/perl/libperl.a --enable-module=ssl --enable-shared=max; make之后make[4]: *** [mod_php4.so-o] Error 1

make[3]: *** [all] Error 1

make[2]: *** [subdirs] Error 1

make[2]: Leaving directory `/download/apache_1.3.26/src'

make[1]: *** [build-std] Error 2

make[1]: Leaving directory `/download/apache_1.3.26'

make: *** [build] Error 2, 再make install

,修改httpd.conf, ..././bin/apachectl star就出错Invalid command 'order', perhaps mis-spelled or defined by a module not included in the serve

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus