再发freebsd下php编译的问题,等到有高手出现为止。:)

由 Mcity 在 05-23-2004 19:53 发表:

再发freebsd下php编译的问题,等到有高手出现为止。:)

OS--FreeBSD 5.0

安装mysql 4.0.20 用

./configure --prefix=/usr/local/mysql --with-mysqld-user=mysql --with-charset=gb2312 --with-extra-charsets=all --with-unix-socket-path=/usr/local/mysql/var/mysql.sock

make

make install

没任何错误,成功安装,也测试正常。

安装apache2.0.49 用

./configure --prefix=/usr/local/apache --enable-track-vars --enable-cgi --enable-so --with-config-file-path=/usr/local/apache/conf

make

make install

没任何错误发生,成功安装,测试了,一切正常。

安装php4.3.6 用

./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache/bin/apxs --enable-track-vars --enable-force-cgi-redirect --with-config-file-path=/usr/local/apache/conf

出现如下错误:

.......

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

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