本文目錄一覽:
- 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/zh-hk/n/279815.html