我的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
这是怎么回事?
高手支招
|
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安装得了。
|
上面写错了,重新发一下:
./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
配置端口
|
同意,lz明显的依赖包没有安装好
|
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安装得了。
|
lz想装LAMP 貌似有很多关联的的软件需要安装
我觉得还是rpm包装的方便