+ -
当前位置:首页 → 问答吧 → php 编译出错,,无法通过,FREEBSD

php 编译出错,,无法通过,FREEBSD

时间:2006-05-05

来源:互联网

我不想用 ports 来安装 apache,php,mysql...


因此是直接手工安装,,,可是一直都是这样的错误提示:

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... apxs: not found
apxs: not found


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)


我明明在编译 apache 的时候使用了 --enable-module=so 或 --enable-so

都无法让 php编译通过,php 用的是 4.2.2 版

apache 是 httpd-2.0.55


而且我也在/usr/local/apache/bin 里面看到了 apsx,可是在 php 当中却一直无法
编译通过,,,都是以上那样的错误提示。。。

FreeBSD 版本是 6.1,非常感谢,非常感谢。

作者: hamas   发布时间: 2006-05-05

--with-apxs2=/path/to/apxs

这个加上没?

作者: 晨想   发布时间: 2006-05-05

的确存在这个问题,同样的过程在FreeBSD5.4下面就没有问题。。。现在还没有找到问题的根源

作者: qw5619   发布时间: 2006-05-05

引用:
作者: 终极幻想
--with-apxs2=/path/to/apxs

这个加上没?
我加了,,,我的 apxs 是在 /usr/local/apache/bin 里面

我加的是 -with-apxs2=/usr/local/apache/bin





引用:
作者: qw5619
的确存在这个问题,同样的过程在FreeBSD5.4下面就没有问题。。。现在还没有找到问题的根源

晕倒,,,原来 5.4 没有这问题啊,,,我立即去下载 5.4 的,,,被6.1给骗了,呵

超级感谢,无敌感谢

作者: hamas   发布时间: 2006-05-05

引用:
作者: hamas
我加了,,,我的 apxs 是在 /usr/local/apache/bin 里面

我加的是 -with-apxs2=/usr/local/apache/bin








晕倒,,,原来 5.4 没有这问题啊,,,我立即去下载 5.4 的,,,被6.1给骗了,呵

超级感谢,无敌感谢
http://www.osbbs.org/forum/viewthrea...extra=page%3D1
这个是我的服务器安装过程,同样的过程在FreeBSD5.4下面就没有问题,但是昨天我更换为FreeBSD6就出现了错误,和你的一样

作者: qw5619   发布时间: 2006-05-05

--with-apxs2=/opt/apache/sbin/apxs

这个是要指定到文件的。。你试试?我这样编译一点问题都没有。

作者: 晨想   发布时间: 2006-05-05

引用:
作者: 终极幻想
--with-apxs2=/opt/apache/sbin/apxs

这个是要指定到文件的。。你试试?我这样编译一点问题都没有。

是的,兄弟,我的文件就是 /usr/local/apache/bin/apxs

我就是指向这,可是一直无法编译 php,,,,

作者: hamas   发布时间: 2006-05-05

引用:
作者: 终极幻想
--with-apxs2=/opt/apache/sbin/apxs

这个是要指定到文件的。。你试试?我这样编译一点问题都没有。
出错的时候给出了三个可能是出错的原因:
代码:
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)
2和3不用说了,如果你看看我刚才给出链接就知道不应该是这两个。。。

另外不知道为什么我在这里无法上传图片,我抓了张图在下面的链接中:
http://www.osbbs.org/forum/viewthrea...extra=page%3D1

作者: qw5619   发布时间: 2006-05-05

是的,是的,我就是这样的情况,,,兄弟,我目前正在安装 5.4,呵。。。

作者: hamas   发布时间: 2006-05-05

先汗一个。。。更换了Apache的版本后,没有问题了。
以前用的是2.0.55+PHP-4.4.1,更换为2.0.58+PHP-4.4.1就没有问题。。。奇怪了,难道是2.0.55和FB6.*之间有矛盾???

http://www.bbsplay.com/test.php
信息。。。

作者: qw5619   发布时间: 2006-05-05

为什么不用PORTS ???

作者: DRILL   发布时间: 2006-05-08

我ports安装同样遇到这个问题!

作者: 有点白   发布时间: 2008-11-27