- 论坛徽章:
- 0
|
出错信息:
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)
按照错误提示,安装了perl,安装过程如下:
tar xzvf perl-5.10.0.tar.gz
cd perl-5.10.0/
sh Configure -de
make
make test
make install
重新编辑apache和PHP错误依旧!
apahce安装如下:
tar zxvf httpd-2.2.17.tar.gz
cd httpd-2.2.17
make clean
./configure --prefix=/www/wdlinux/httpd-2.2.17 --with-mpm=itk --enable-rewrite --enable-deflate --disable-userdir --with-apxs2=/www/wdlinux/apache/bin/apxs --enable-so
make
make install
ln -sf /www/wdlinux/httpd-2.2.17 /www/wdlinux/apache
php安装如下:
tar zxvf php-5.2.6.tar.gz >
cd php-5.2.6
./configure --prefix=/www/wdlinux/php-5.2.17 --with-apxs2=/www/wdlinux/apache/bin/apxs --with-mysql=/www/wdlinux/mysql --with-config-file-path=/www/wdlinux/etc --with-jpeg-dir=/usr/local/jpeg6/ --with-png-dir=/usr/local/libpng/ --with-gd=/usr/local/gd2/ --with-freetype-dir=/usr/local/freetype/ --with-zlib-dir=/usr/local/zlib2/ --enable-mbregex --enable-mbstring --with-iconv-dir=/usr/local --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --with-mhash --enable-ftp --with-curl --enable-inline-optimization --with-mcrypt=/usr --enable-gd-native-ttf --enable-gd-native-ttf
make ZEND_EXTRA_LIBS='-liconv'
make install
以上的apache和php安装是借鉴了wdlinx的安装过程,用wdlinux的安装方法也不行!总会出错!高手指点一下!感谢! |
|