[root@cac3 php-5.6.22]# ./configure \
> --prefix=/usr/local/php5/ \
> - -enable-fpm \
> --enable-mbstring \
> --enable-bcmath \
> --enable-sockets \
> --with-config-file -path=/usr/local/php5/etc \
> --with-mysql=/usr/local/mysql/ \
> --with-mysqli=/usr/local/mysql/bin /mysql_con
mysql_config mysql_convert_table_format
mysql_config_editor
>#with-mywithi=/>#/L/gw; -with-gettext \
> --with-jpeg-dir
#configure: error: jpeglib.h not found.
#解決方案如下:
##[root@cac3 php-5.6 .22]# rpm -qa | grep libjpeg
libjpeg-turbo-1.2.90-5.el7.x86_64
[root@cac3 php-5.6.22]# yum -y install libjpeg-devel
#已載入外掛程式:langpacks, product-id, search-disabled-repos, subscription-managerThis system is not registered with an entitlement server. You can use subscription-manager to register.
#--> 正在檢查交易---> 軟體包libjpeg-turbo-devel.x86_64.0.1.2.90-5.el7 將會安裝
#--> 解決依賴關係完成
......
#[root@cac3 php-5.6.22]# yum list installed | grep libjpeg
libjpeg-turbo.x86_64 .x86_64 1.2.90-5.el7 上#1) 1.2.90-5.el7 @yaya
##/usr/lib64/libjpeg.so.62
/usr/lib64/libjpeg.so.62.1.0/usr/share/doc/libjpeg-turbo-1.2.90/usr/share/doc/libjpeg-turbo-1.2.90/ChangeLog. txt/usr/share/doc/libjpeg-turbo-1.2.90/README
/usr/share/doc/libjpeg-turbo-1.2.90/README-turbo.txt/usr/share /doc/libjpeg-turbo-1.2.90/change.log/usr/lib/libjpeg.so.62/usr/lib/libjpeg.so.62.1.0
/usr/share/ doc/libjpeg-turbo-1.2.90/usr/share/doc/libjpeg-turbo-1.2.90/ChangeLog.txt/usr/share/doc/libjpeg-turbo-1.2.90/README/usr/share/doc/libjpeg-turbo-1.2.90/README-turbo.txt
/usr/share/doc/libjpeg-turbo-1.2. 90/change.log
######相關推薦:################不重新編譯PHP為php增加openssl模組的方法######### ######編譯PHP筆記############編譯php7後,如何讓apache支援php7#######以上是Linux安裝過程中編譯PHP時報錯的詳細內容。更多資訊請關注PHP中文網其他相關文章!