真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

PHP編譯出錯三例

1.[root@yaho php-5.3.27]# useradd -s /sbin/nologin phpadmin

成都創(chuàng)新互聯(lián)是一家專注于網(wǎng)站設(shè)計、做網(wǎng)站與策劃設(shè)計,容縣網(wǎng)站建設(shè)哪家好?成都創(chuàng)新互聯(lián)做網(wǎng)站,專注于網(wǎng)站建設(shè)十載,網(wǎng)設(shè)計領(lǐng)域的專業(yè)建站公司;建站業(yè)務(wù)涵蓋:容縣等地區(qū)。容縣做網(wǎng)站價格咨詢:13518219792

[root@yaho php-5.3.27]# yum install -y libtool-ltdl libtool-ltdl-devel #解決找不到lltdl文件問題

[root@yaho php-5.3.27]# rpm -ivh ftp://ftp.pbone.net/mirror/dl.iuscommunity.org/pub/ius/archive/Redhat/6/i386/epel-release-6-5.noarch.rpm   #安裝第三方y(tǒng)um源

[root@yaho php-5.3.27]#

 yum install -y  libmcrypt-devel    #解決 缺少mcrypt加密件的問題
[root@yaho php-5.3.27]# ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc--enable-fpm --with-fpm-user=phpadmin --with-fpm-group=phpadmin --with-MySQL=/usr/local/mysql --with-mysql-sock=/tmp/mysql.sock --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --with-mcrypt --enable-soap --enable-gd-native-ttf --enable-ftp --enable-mbstring --enable-exif --enable-zend-multibyte --disable-ipv6 --with-pear --with-curl=/usr/bin/ --with-openssl ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=php-fpm --with-fpm-group=php-fpm --with-mysql-dir=/usr/local/mysql --with-mysql-sock=/tmp/mysql.sock --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --with-mcrypt --enable-soap --enable-gd-native-ttf --enable-ftp --enable-mbstring --enable-exif --enable-zend-multibyte --disable-ipv6 --with-pear--with-curl=/usr/bin/--with-openssl

[root@yaho php-5.3.27]#  make

[root@yaho php-5.3.27]#  make install

[root@yaho php-5.3.27]# done

當(dāng)編譯時提示mysql 配置錯誤信息,可嘗試將--with-mysql=/usr/local/mysql 修改為:--with-mysql-dir=/usr/local/mysql。藍(lán)色必加項(xiàng)

2.提示錯誤:

cannot run 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)

因?yàn)閥um了perl,perl-devel后還提示同樣錯誤,apxs文件也的確存在,想不出答案就百度了一下,原來是由于 PHP 的configure文件沒有指定perl程序的路徑導(dǎo)致代碼不能被編譯。

[root@php]#vi configure 

把里面的第一句替換成:#!/usr/bin/perl -w   然后保存。再./configure 就正常了。

3.報錯:configure: error: mysql configure failed. Please check config.log for more information.

為php增加mysql模塊時報錯

configure: error: mysql configure failed. Please check config.log for more information.

解決方法:

[root@localhost mysql]$ ./configure --with-php-config=/usr/local/bin/php-config --with-mysql-dir=/usr --with-zlib-dir

而非

[root@localhost mysql]$ ./configure --with-php-config=/usr/local/bin/php-config --with-mysql=/usr --with-zlib-dir


當(dāng)前文章:PHP編譯出錯三例
轉(zhuǎn)載來于:http://weahome.cn/article/gsdscd.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部