关于 安装linux PHP问题

liupi2008 2010-09-30 04:59:33
我的linux 版本 Red Hat Enterprise Linux Server release 5.3

1.我用rpm包 apache 我已经成功安装 版本是 Server version: Apache/2.2.3

2. php 用的是源码安装 版本是php-5.2.14

可用 ./configure --prefix=/opt/php -with-apxs2=/usr/sbin/apxs -with-mysql=/usr/include/mysql --with-gd=/usr/ --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib --with-freetype-dir=/usr/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 whether to enable Apache 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/sbin/apxs follows:
./configure: line 6461: /usr/sbin/apxs: No such file or directory
configure: error: Aborting

这是怎么回事?
高手支招
...全文
148 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
liupi2008 2010-10-11
  • 打赏
  • 举报
回复
谢谢各位,帮助
oliver_wei 2010-10-08
  • 打赏
  • 举报
回复
上面写错了,重新发一下:
./configure --prefix=/home/apache2 --with-mpm=prefork --enable-modules=so
make
make install

./configure --prefix=/home/php5 --with-apxs2=/home/apache2/bin/apxs --with-libxml-dir=/usr/lib
make
make install
配置端口
oliver_wei 2010-10-08
  • 打赏
  • 举报
回复
./configure --prefix=/home/admin/apache2 --with-mpm=prefork --enable-modules=so
make
make install

./configure --prefix=/home/admin/php5 --with-apxs2=/home/admin/kenny/QRW/apache2/bin/apxs --with-libxml-dir=/usr/lib
make
make install
设置端口
wind_199 2010-10-01
  • 打赏
  • 举报
回复
The output of /usr/sbin/apxs follows:
./configure: line 6461: /usr/sbin/apxs: No such file or directory
-------------------
错误已经够明显了吧!


1.我用rpm包 apache 我已经成功安装 版本是 Server version: Apache/2.2.3
--------------------------
rpm包安装的apache不包含apxs
apxs是包含在httpd-devel这个rpm包里的。


直接把安装光盘挂载上 全部用rpm安装得了。
freetstar 2010-09-30
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 steptodream 的回复:]

The output of /usr/sbin/apxs follows:
./configure: line 6461: /usr/sbin/apxs: No such file or directory
-------------------
错误已经够明显了吧!


1.我用rpm包 apache 我已经成功安装 版本是 Server version: Apache/2.2.3……
[/Quote]
同意,lz明显的依赖包没有安装好
steptodream 2010-09-30
  • 打赏
  • 举报
回复
The output of /usr/sbin/apxs follows:
./configure: line 6461: /usr/sbin/apxs: No such file or directory
-------------------
错误已经够明显了吧!


1.我用rpm包 apache 我已经成功安装 版本是 Server version: Apache/2.2.3
--------------------------
rpm包安装的apache不包含apxs
apxs是包含在httpd-devel这个rpm包里的。


直接把安装光盘挂载上 全部用rpm安装得了。
小魔菇 2010-09-30
  • 打赏
  • 举报
回复
lz想装LAMP 貌似有很多关联的的软件需要安装
我觉得还是rpm包装的方便
liupi2008 2010-09-30
  • 打赏
  • 举报
回复
在线等候????

23,116

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧