LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 529|回复: 5

编译php是出错,帮我分析一下,谢谢

[复制链接]
发表于 2003-9-9 14:56:36 | 显示全部楼层 |阅读模式
./configure --with-mysql=/www/mysql --with-apxs2=/www/apache/bin/apxs --enable-track-vars --enable-force-cgi-redirect --enable-pic --enable-inline-optimiation --enable-memory-limit --enable-bcmath --enable-shmop --enable-versioning --enable-calendar --enable-dbx --enable-dio --enable-mcal --prefix=/www/php --with-gd --with-config-file-path=/www/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 not built using --enable-so (the apxs usage page is displayed)


我少做了什么?
我察看了/www/apache/bin/下面有apxs这个文件
apache我是用了--enable-so参数的
我运行/httpd -l , 也有mod_so.c
发表于 2003-9-9 15:39:04 | 显示全部楼层
我用PORTS安装过, 先安装了apache2, mysql, 最后安装mod_php4
# make DWITH_APACHE2="yes" install clean
没出现什么问题!
你是怎么安装的?
 楼主| 发表于 2003-9-9 16:59:39 | 显示全部楼层
我是Freebsd5.1release+httpd-2.0.47+mysql-4.0.14+php-4.3.2版本
用的mini安装
先装完mysql    ok
再装apache  apache我是用了--enable-so参数的
然后在php这里出错了
发表于 2003-9-9 17:20:59 | 显示全部楼层
用ports安装, 多方便!
 楼主| 发表于 2003-9-9 17:26:48 | 显示全部楼层
用ports安装如果要支持gd库,该怎么做?
发表于 2003-9-9 21:09:00 | 显示全部楼层
用ports安装时PHP开始会选择你要安装什么库, 选好就可以按OK安装了!有好多库选择的!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表