當前位置:首頁 » 編程語言 » php的configure

php的configure

發布時間: 2022-06-28 01:19:24

『壹』 求問php configure err 錯誤怎麼辦

php-configure錯誤解決
configure: error: libjpeg.(a|so) not found
configure: error: libjpeg.(a|so) not found
ln -sf libjpeg.so.62.0.0 libjpeg.so
configure: error: libpng.(a|so) not found.
yum install libpng-devel
32位和64位的都裝了。你可以強制刪除兩個包,再重裝64位的包。
rpm --allmatches --nodeps
可能在config結束後會提示:
configure: error: libjpeg.(a|so) not found
configure: error: libjpng.(a|so) not found
錯誤,那麼請在configure前執行如下的命令:
cp -frp /usr/lib64/libjpeg.* /usr/lib/
cp -frp /usr/lib64/libpng* /usr/lib/
因為php默認就在/usr/lib/下找相關庫文件,而x64機器上是在:/usr/lib64
解決這個問題,首先確定你安裝的 jpeg的x86_64的的安裝位置
shell> updatedb
shell> locate libjpeg.so
看到已經安裝位置
然後明白php參數的含義
根據php的配置參數
--with-jpeg-dir=/usr --with-libdir=lib64
--with-jpeg-dir=/usr :是確定jpeg的安裝位置
--with-libdir=lib64 : 這個是一個全局參數,代表配置器尋找所有安裝路徑下的lib64目錄,而不是默認安裝路徑下的lib目錄
CentOS 5 常見的configure error的解決方法2009-10-20 10:23僅限於CentOS 5
configure: error: No curses/termcap library found
網上有的說法是:
--with-named-curses-libs=/usr/lib/libncursesw.so.5
其實是不對的,雖然能解決configure的錯誤,但是make的時候會提示錯誤,正確的做法應該是
yum -y install ncurses-devel
debian: apt-get install libncurses5-dev
configure: error: xml2-config not found
yum -y install libxml2-devel
debian:apt-get install libxml2-dev
configure: error: Cannot find OpenSSL's
yum -y install openssl-devel
configure: error: libjpeg.(a|so) not found
yum -y install gd
yum -y install gd-devel
debian:apt-get install libjpeg-dev
configure: error: libpng.(a|so) not found.
apt-get install libpng12-dev
configure: error: cannot find output from lex; giving up
yum -y install flex
configure: error: mod_deflate has been requested but can not be built e to prerequisite failures
yum -y install zlib-devel openssl-devel
debian:apt-get install zlib1g-dev
configure: error: libXpm.(a|so) not found.
apt-get install libxpm-dev
onfigure: error: freetype.h not found.
apt-get install libfreetype6-dev
configure: error: ...No recognized SSL/TLS toolkit detected
apt-get install libssl-dev
在x64的機器上編譯PHP+GD的時候需要注意一下
Written by bixuan on 2007年04月12號 – 11:04
php編譯常見錯誤大全Posted in linux相關 | 七月 22nd, 2009
1) Configure: error: xml2-config not found. Please check your libxml2 installation.
Solutions :
yum install libxml2 libxml2-devel (For Redhat & Fedora)
# aptitude install libxml2-dev (For ubuntu)
2) Checking for pkg-config… /usr/bin/pkg-config
configure: error: Cannot find OpenSSL』s
Solutions :
yum install openssl openssl-devel
3) Configure: error: Please reinstall the BZip2 distribution
Solutions :
yum install bzip2 bzip2-devel
4) Configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/
Solutions :
yum install curl curl-devel (For Redhat & Fedora)
# install libcurl4-gnutls-dev (For Ubuntu)
5) Configure: error: libjpeg.(also) not found.
Solutions :
yum -y install gd
yum -y install gd-devel
yum install libjpeg libjpeg-devel
6) Configure: error: libpng.(also) not found.
Solutions :
yum install libpng libpng-devel
apt-get install libpng12-dev
7) Configure: error: freetype.h not found.
Solutions :
yum install freetype-devel
Configure: error: Unable to locate gmp.h
Solutions :
yum install gmp-devel
9) Configure: error: Cannot find Mysql header files under /usr.
Note that the MySQL client library is not bundled anymore!
Solutions :
yum install mysql-devel (For Redhat & Fedora)
# apt-get install libmysql++-dev (For Ubuntu)
10) Configure: error: Please reinstall the ncurses distribution
Solutions :
yum install ncurses ncurses-devel
11) Checking for unixODBC support… configure: error: ODBC header file 『/usr/include/sqlext.h』 not found!
Solutions :
yum install unixODBC-devel
12) Configure: error: Cannot find pspell
Solutions :
yum install pspell-devel
13) configure: error: mcrypt.h not found. Please reinstall libmcrypt.
Solutions :
yum install libmcrypt libmcrypt-devel (For Redhat & Fedora)
# apt-get install libmcrypt-dev
14) Configure: error: snmp.h not found. Check your SNMP installation.
Solutions :
yum install net-snmp net-snmp-devel
15)開啟LDAP服務還需要
yum -y install openldap-devel openldap-servers openldap-clients
16)configure: error: No curses/termcap library found
網上有的說法是:
–with-named-curses-libs=/usr/lib/libncursesw.so.5
其實是不對的,雖然能解決configure的錯誤,但是make的時候會提示錯誤,正確的做法應該是
yum -y install ncurses-devel (for redhat)
apt-get install libncurses5-dev(for debian)
17)configure: error: cannot find output from lex; giving up
yum -y install flex
18)configure: error: mod_deflate has been requested but can not be built e to prerequisite failures
yum -y install zlib-devel openssl-devel
debian:apt-get install zlib1g-dev
19)configure: error: libXpm.(a|so) not found.
apt-get install libxpm-dev
補充:通過以上命令配置PHP時,遇到錯誤,總說找不到libmcrypt。由於這伺服器是個裸機,很多必須的庫都沒裝,必須一個一個的手動安裝,可libmcrypt這個庫我的確裝過了。重試n遍,無解,解決方案
Then I visited
http://mcrypt.hellug.gr/mcrypt/index.html
an learned that I have to install not only libmcrypt
but also mcrypt and libmhash.
Here is the to do:
libmcrytp:
———–
download libmcrypt-xxx.tar.gz
create the following directory: / usr / local / libmcrypt
the libmcrypt-xxx.tar.gz into that directory and move to it
run the following shell (>) commands: (』xxx』 is the version number)
> gunzip -c libmcrypt-xxx.tar.gz | tar xf -
> cd libmcrypt-xxx
> ./configure --disable-posix-threads
> make
> make check (note: 『make check』 is optional)
> make install
then (update your environment) add in / etc / profile the following path:
/usr/local/libmcrypt/libmcrypt-xxxx
(note: as I run Red Hat 7.3 I set the line a f t e r the if-part
(id -u = 0 …) with: pathmunge /usr/local / libm….)
and add in / etc / ld.so.conf the following path: /usr/local/lib
then run ldconfig:
> ldconfig
now comes the important part:
> cd /usr/local/libmcrypt/libmcrypt-xxx/libltdl
> ./configure --enable-ltdl-install
> make
> make install
(maybe not needed: I also added a link in / usr / bin: )
(> cd /usr/bin)
(> ln -s /usr/lib/libltdl.so.3.1.0 ltdl)
mhash:
———–
download mhash-xxx.tar.gz
create the following directory: / usr / local / mhash
the mhash-xxx.tar.gz into that directory and move to it
run the following shell (>) commands: (』xxx』 is the version number)
> gunzip -c mhash-xxx.tar.gz | tar xf -
> cd mhash-xxx
> ./configure
> make
> make check (note: 『make check』 is optional)
> make install
mcrypt:
———–
download mcrypt-xxx.tar.gz
create the following directory: / usr / local / mcrypt
the mcrypt-xxx.tar.gz into that directory and move to it
run the following shell (>) commands: (』xxx』 is the version number)
> gunzip -c mcrypt-xxx.tar.gz | tar xf -
> cd mhash-xxx
> ./configure
> make
> make check (note: 『make check』 is optional)
> make install
back to PHP:
————–
move into your PHP installation directory
then the following command worked on my computer:
>
./configure –with-apache=/usr/local/apache/apache_1.3.29 –with-mysql –wit
h-mcrypt=/usr/local/mcrypt/mcrypt-2.6.4
> make
> make install

『貳』 ./configure編譯php時這個問題如何解決

PHP的安裝雖然有時候很簡單,可是如果應用一多,我們安裝起來就很頭痛了!出錯最多的就是安裝PHP擴展的時候了。其實不管是你是Apache類的應用還是Nginx類的,PHP的安裝都不是很簡單,雖然網上有很多configure參數,但是那不一定是適合你的,因為很多都直接關系著你的系統版本和內核。因此要自己親自不斷的調試,才能完全安裝成功。
本文總結了一些常見的configure錯誤信息和解決這些錯誤的經驗。
1、configure: error: No curses/termcap library found
網上有的說法是:–with-named-curses-libs=/usr/lib/libncursesw.so.5
其實是不對的,雖然能解決configure的錯誤,但是make的時候會提示錯誤,正確的做法應該是
centos: yum -y install ncurses-devel
debian: apt-get install libncurses5-dev
2、configure: error: xml2-config not found. Please check your libxml2 installation.
centos: yum -y install libxml2 libxml2-devel
debian: apt-get install libxml2-dev
3、configure: error: Cannot find OpenSSL』s
centos: yum -y install openssl-devel
4、configure: error: libjpeg.(a|so) not found
centos: yum -y install gd
centos: yum -y install gd-devel
debian: apt-get install libjpeg-dev
5、configure: error: libpng.(a|so) not found.
apt-get install libpng12-dev
6、configure: error: cannot find output from lex; giving up
yum -y install flex
7、configure: error: mod_deflate has been requested but can not be built e to prerequisite failures
centos: yum -y install zlib-devel openssl-devel
debian: apt-get install zlib1g-dev
8、configure: error: libxpm.(a|so) not found.
centos: yum -y install libxpm-dev
debian: apt-get install libxpm-dev
9、configure: error: freetype.h not found.
centos: yum install freetype-devel
debian: apt-get install libfreetype6-dev
10、configure: error: …No recognized SSL/TLS toolkit detected
centos: yum -y install libssl-dev
debian: apt-get install libssl-dev
11、Configure: error: Please reinstall the BZip2 distribution
centos: yum install bzip2 bzip2-devel
debian: apt-get install bzip2-devel
12、Configure: error: Please reinstall the libcurl distribution – easy.h should be in /include/curl/
centos: yum install curl curl-devel (For Redhat & Fedora)
# install libcurl4-gnutls-dev (For Ubuntu)
13、Configure: error: Unable to locate gmp.h
centos: yum install gmp-devel
14、Configure: error: Cannot find MySQL header files under /usr. Note that the MySQL client library is not bundled anymore!
yum install mysql-devel (For Redhat & Fedora)
# apt-get install libmysql++-dev (For Ubuntu)
15、Configure: error: Please reinstall the ncurses distribution
Solutions :
centos: yum install ncurses ncurses-devel
16、Checking for unixODBC support… configure: error: ODBC header file 『/usr/include/sqlext.h』 not found!
Solutions :
centos: yum install unixODBC-devel
17、Configure: error: Cannot find pspell
Solutions :
centos: yum install pspell-devel
18、configure: error: mcrypt.h not found. Please reinstall libmcrypt.
Solutions :
yum install libmcrypt libmcrypt-devel (For Redhat & Fedora)
# apt-get install libmcrypt-dev
19、Configure: error: snmp.h not found. Check your SNMP installation.
Solutions :
yum install net-snmp net-snmp-devel
20、開啟LDAP服務還需要
yum -y install openldap-devel openldap-servers openldap-clients
21、configure: error: cannot find output from lex; giving up
centos: yum -y install flex
22、configure: error: mod_deflate has been requested but can not be built e to prerequisite failures
centos: yum -y install zlib-devel openssl-devel
debian: apt-get install zlib1g-dev

『叄』 linux源碼包安裝php中的./configure選項詳解

1、Linux下,默認是在/usr/local/bin/,假如你設置--prefix=/usr/local/php那麼就在/usr/local/php/bin/
2、sbin道理相同。sbin的意思就是server bin
3、EPREFIX沒用過
4、如果要用2套版本,用prefix區分開不同的安裝目錄。php.ini默認在/usr/local/php/etc/

『肆』 哪些是編譯php時的常用configure參數

./configure –prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/bin/mysql_config --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-safe-mode --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-pdo --with-pdo-mysql --with-mysql
參數詳解可以看看這里:
http://www.mayern.com/lamp%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA-php%E7%BC%96%E8%AF%91%E5%AE%89%E8%A3%85%E5%8F%82%E6%95%B0%E8%AF%A6%E8%A7%A3.html
希望能幫到您。

『伍』 php 安裝的./configure在哪

如果你在安裝PHP的時候不指定配置文件的目錄,一般配置文件php.ini需要放在/etc目錄下。 指定php.ini的位置。 ./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/php5 --wit

『陸』 編譯安裝php時出錯configure: error: build test failed.

你先確定一下你./configure時有沒有出錯提示?並不是說./configure完就說行了,因為它的參數因環境不同而異!如果執行完沒錯就應該sudo
make是沒什麼問題,就算是有也應該是依懶包看出錯提示,你的是GD庫,你編譯gd庫時參數如何?編譯安裝正常嗎?
情況好多,我用UBUNTU編譯時也是拆騰好久才編好,也好不經過這樣拆騰也不知道編譯時的要點
記得./configure
--help看一下幫助
所以我認為先重編一下你的GD庫,還有你編譯PHP時注意參數的正確如
--with-gd=/opt/gd
具體實際安裝路徑

『柒』 安裝php顯示configure:error:jpeglib.h not found.怎麼解決

在Linux下安裝PHP過程中,編譯時出現configure: error: libjpeg.(a|so) not found 錯誤的解決辦法:

檢查之後發現已經安裝了libjpeg

[root@localhost php-5.2.14]# yum list installed|grep libpng

libpng.x86_64 2:1.2.49-1.el6_2

或者:

[root@localhost php-5.2.14]# rpm -qa|grep libjpeg

libjpeg-turbo-1.2.1-3.el6_5.x86_64

『捌』 如何查看已經安裝了的php和apache的配置選項

1.在php的安裝目錄下有一個 /bin/,這個目錄下有一個 php-config 文件,這個文件包括了最初 php安裝時候的configure 選項

2.在 apache 的安裝過程中有一個build的目錄,這個build 目錄默認是在 apache的安裝目錄下 的build 目錄下。
這個目錄下有一個 config.nice 這個文件,這個文件包含了 apache安裝時候的配置選項

『玖』 ubuntu下的php配置命令文件configure在哪,要切換到哪個目錄進行./configure 的配置

你這是安裝編譯安裝PHP的時候用的吧, 你的源文件解壓到哪兒了呢? 到那個目錄下看看。

熱點內容
安卓哪個國家免費用 發布:2025-02-04 22:39:54 瀏覽:60
電腦配置低但想玩小偷模擬器怎麼辦 發布:2025-02-04 22:39:03 瀏覽:234
最快腳本語言 發布:2025-02-04 22:27:23 瀏覽:527
安卓的人臉識別在哪裡 發布:2025-02-04 22:16:45 瀏覽:674
悠然伺服器的ip是什麼 發布:2025-02-04 22:10:17 瀏覽:65
3des源碼 發布:2025-02-04 22:09:16 瀏覽:809
如何備份資料庫表 發布:2025-02-04 22:09:07 瀏覽:294
如何刪除下載的鬧鍾鈴聲安卓 發布:2025-02-04 22:03:35 瀏覽:660
死神腳本 發布:2025-02-04 21:57:03 瀏覽:169
phpposthtml 發布:2025-02-04 21:37:46 瀏覽:89