本文目录一览:
- 1、configure: error: build test failed. Please check the config.log for details.
- 2、如何在linux系统安装php代理服务器和MYSQL?
- 3、linux 安装php的问题
- 4、PHP编译安装后,通过那个命令查看交装结果?
- 5、我的redhat 5.9系统中没有预装phpize,运行yum install php-devel也不行。
- 6、求助,redhat 6 怎么装php-devel
configure: error: build test failed. Please check the config.log for details.
在编译的时候出现以下这种情况,请问大牛是什么原因啊??
Configuring extensions
checking whether to enable LIBXML support… yes
checking libxml2 install dir… /usr/local/libxml2
checking for xml2-config path… /usr/local/libxml2/bin/xml2-config
checking whether libxml build works… no
configure: error: build test failed. Please check the config.log for details.
我的编译是:
./configure –prefix=/usr/local/php5 –with-apxs2=/usr/local/apache2/bin/apxs –with-
freetype=/usr/local/freetype –enable-trace-avrs –with-mysql=/usr/local/share/mysql –with-zlib –with-libxml-dir=/usr/local/libxml2 –enable-shared –with-curl=/usr/local/curl –with-expat=/usr/local/expat –with-gd=/usr/local/gd –with-jpeg-dir=/usr/local/jpeg6 –with-png –enable-mbstring=all –enable-mbregex –enable-so
如何在linux系统安装php代理服务器和MYSQL?
redhat安装,ubuntu可以用get-apt,也可以这样手动装
mysql用rpm装方便点:
需要server和client以及devel
终端下:
Rpm -ivh MySQL-server-5.5.8-1.linux2.6.i386.rpm MySQL-client-5.5.8-1.linux2.6.i386.rpm MySQL-devel-5.5.8-1.linux2.6.i386.rpm
php代理服务器没懂,如果是PHP安装命令是:
1、tar xzvf php-5.2.9.tar.gz
2、mv php-5.2.9 /usr/local/src/
3、./configure –prefix=/usr/local/php –with-apxs2=/etc/httpd/bin/apxs –with-gd –with-jpeg-dir –with-ttf –with-zlib-dir –with-png-dir –with-mysql,如果,configure到最后会有报错:make: *** [libphp5.la] Error 1,解决方法,执行:
–with-mysql=/usr/bin/ –with-libdir=lib64
4、make
5、make install
6、libtool –finish /usr/local/src/php-5.2.9
7、chmod 755 /etc/httpd/modules/libphp5.so
8、cp php.ini-dist /usr/local/php/lib/php.ini
linux 安装php的问题
如果你指的是使用php-xxx/configure
–with-mysql的话:
–with-mysql需要你先安装mysql,指定mysql路径。
–with-mysqld在php
configure中,没有这个选项,configure过程中被略过,自然可以编译成功,–with-mysqld等于什么都没指定
PHP编译安装后,通过那个命令查看交装结果?
1、在终端通过phpv命令来查看一下当前php的版本。如果没有安装php,一般会提示没有php这个命令的。
2、在终端查询安装的包中是否有php,以redhat为例,则可以执行如下命令,rpmqa|grepphp。
3、可以使用pear命令的list参数查看安装的php支持,pear是PHP扩展和应用库的缩写,注意它不是鸭梨,尽管和该水果的发音相同。在安装好php之后,缺省情况下会自动安装pear的部分程序库,所以是否安装php可以用pear命令来确定,执行如下命令,pearlist。
我的redhat 5.9系统中没有预装phpize,运行yum install php-devel也不行。
你没配置YUM源,用系统安装光盘做本地YUM源,从光盘安装php-devel就行了
求助,redhat 6 怎么装php-devel
在安装光盘里面找找有没有php-devel的rpm包,如果有,用rpm命令安装即可。如果没有找到那就是光盘内容缺失。
原创文章,作者:小蓝,如若转载,请注明出处:https://www.506064.com/n/279815.html