Linux下安裝過程中編譯PHP時報錯:configure: error: libjpeg.(a|so) not found
在Linux下安裝PHP過程中,編譯時出現configure: error: libjpeg.(a|so) not found 錯誤的解決辦法
檢查之後發現已經安裝了libjpeg
[[email protected] php-5.2.14]# yum list installed|grep libpng
libpng.x86_64 2:1.2.49-1.el6_2
或者:
[[email protected] php-5.2.14]# rpm -qa|grep libjpeg
libjpeg-turbo-1.2.1-3.el6_5.x86_64
安裝libjpeg-devel
yum -y install libjpeg-devel
[[email protected] php-5.2.14]# yum list installed|grep libjpeg
libjpeg-turbo.x86_64 1.2.1-3.el6_5 @base
libjpeg-turbo-devel.x86_64
[[email protected] php-5.2.14]# rpm -ql libjpeg-turbo-devel.x86_64
/usr/include/jconfig.h
/usr/include/jerror.h
/usr/include/jmorecfg.h
/usr/include/jpeglib.h
/usr/lib64/libjpeg.so
/usr/share/doc/libjpeg-turbo-devel-1.2.1
/usr/share/doc/libjpeg-turbo-devel-1.2.1/coderules.txt
/usr/share/doc/libjpeg-turbo-devel-1.2.1/example.c
/usr/share/doc/libjpeg-turbo-devel-1.2.1/jconfig.txt
/usr/share/doc/libjpeg-turbo-devel-1.2.1/libjpeg.txt
/usr/share/doc/libjpeg-turbo-devel-1.2.1/structure.txt
但是在/usr/lib目錄下沒有libjpeg.so這個檔案,在/usr/lib64下是有的,雖然使用–with-jpeg-dir=/usr/lib64 依然無效,最後用
[
問題解決, libpng 報的錯誤解決方法一樣
--------------------------------------------------------------------------------
configure: error: png.h not found.錯誤的解決方法
今天安裝PHP的時候提示這個錯誤 configure: error: png.h not found.,這個是選擇安裝GD模組才會出現的錯誤,詳細錯誤資訊如下
If configure fails try --with-vpx-dir=<DIR>
If configure fails try --with-jpeg-dir=<DIR>
configure: error: png.h not found.
我找了下資料說是libpng沒有安裝,於是我執行命令
$>yum install libpng
但是並沒有解決,想了下是不是還有什麼devel包沒安裝吧,試了下面這個命令
$> yum install libpng-devel
終於解決了,呵呵。記錄下來,方便大家和自己下次檢視。
相關推薦
Linux下安裝過程中編譯PHP時報錯:configure: error: libjpeg.(a|so) not found
在Linux下安裝PHP過程中,編譯時出現configure: error: libjpeg.(a|so) not found 錯誤的解決辦法 檢查之後發現已經安裝了libjpeg [[email protected] php-5.2.14]# yum lis
在Eclipse中使用BmobSDK時報錯java.lang.UnsatisfiedLinkError:Native method not found
使用BmobSDK時系統報錯java.lang.UnsatisfiedLinkError:Native method not found:cn.bmob.v3.helper.BmobNative.init### 最近在使用BmobSDK,執行程式時控制檯報錯java.lang.Uns
Lua指令碼傳送http請求時報錯: module 'socket' not found
在使用nginx傳送http請求時報如下錯誤: lua: ./socket/http.lua:11: module 'socket' not found: no field package.preload['socket'] no file './socket.lua' no file
使用PHPExcel時報錯:Class 'Admin\Action\PHPExcel_IOFactory' not found
今天在tp框架中使用phpexcel進行匯入excel時出現了這個錯誤,百度了一下,發現是因為框架內部引入部分把引入的內容因為 'import()' 的問題,import()預設會給檔案新增 '.class.php'的字尾。同時將 '.' 替換為 '/',導致檔案路徑也解析錯
linux下安裝redis服務和php擴充套件
一:安裝redis服務 1、wget http://download.redis.io/releases/redis-5.0.0.tar.gz 2、tar xzf redis-5.0.0.tar.gz 3、cd redis-5.0.0 4、yum -y install gcc 5
編譯安裝postfix, 執行make install時報錯: bin/postconf: error while loading shared libraries: libmysqlclient.s
Postfix make編譯正常, make install的時候, 出現錯誤: bin/postconf: error while loading shared libraries:libmysqlclient.so.18: cannot open shar
cocos2d-x 移植到android中編譯的一些問題:fatal error: Box2D/Box2D.h: No such file or directory"
cocos2 app nal get dsc err 2dx ros blue 1、fatal error: Box2D/Box2D.h: No such file or directory" 須要加入box2d庫的支持,改動android.mk
解決安裝Apache中出現checking for APR... no configure: error: APR not found. Please read the documentation的問題
cef ... clas apr-util 完成 usr 安裝apache make pre Linux中安裝Apache 編譯出現問題: 解決辦法: 1、下載所需要的軟件包 wget http://archive.apache.org/dist/apr/apr-1.4.
解決php編譯報錯configure: error: mcrypt.h not found. Please reinstall libmcrypt.
clas fig ati libmcrypt conf data -s blog bmc yum install -y epel-releaseyum install -y libmcrypt-devel 解決php編譯報錯configure: error: m
linux筆記:安裝程式後,使用時顯示找不到命令(command not found)
在linux中,用各種工具下載安裝程式後,使用時顯示找不到命令(command not found)解決方法 其實這個問題與在windows安裝程式後,在命令列下使用不了是一個原因:沒有配置環境變數 linux解決方法: linux中假如你安裝了一個A程式,在終端輸入 f
protoc編譯檔案時報錯:object_detection/protos/*.proto: No such file or directory
在學習到第五章“深度學習的目標檢測”的 “5.2.1 安裝TensorFlow Object Detection API”時需要編譯 proto檔案,因為電腦比較老舊用的Win10系統,所以嘗試從官網下載了 protoc-3.6.0-win32,解壓後將bin裡面的protoc.exe的路徑加到電腦
解決編譯libiconv時報錯:./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
轉載自:http://forum.z27315.com/topic/15662-%E8%A7%A3%E5%86%B3%E7%BC%96%E8%AF%91libiconv%E6%97%B6%E7%9A%8439gets39-undeclared-here%E9%94%99%E
jni 中使用NewStringUTF時報錯:input is not valid Modified UTF-8: illegal start byte 0xa0
static u1 checkUtfBytes(const char* bytes, const char** errorKind) { while (*bytes != '\0') { u1 utf8 = *(bytes++); // Swit
eclipse中執行程式時報錯'A JNI error has occurred,please check your installation and try again'
第一次執行testNG,發現報錯:Error: A JNI error has occurred . Please check your installation and try again. 2.建立專案的時候,選擇JRE時要選擇第二個,選擇第一個就會報這樣的錯
linux 終端啟動圖形化程式介面時報錯:No protocol specified
這是因為Xserver預設情況下不允許別的使用者的圖形程式的圖形顯示在當前螢幕上. 如果需要別的使用者的圖形顯示在當前螢幕上, 則應以當前登陸的使用者, 也就是切換身份前的使用者執行如下命令 xhost + 遠端訪問時也會出現類似問題: 第一步:用root登陸
解決ofbiz在myeclipse中除錯執行時報錯:Can't find bundle for base name cache
錯誤資訊:Can't find bundle for base name cache Set OFBIZ_HOME to - E:/develop/ofbiz/apache-ofbiz-09.04/apache-ofbiz-09.04 Admin socket not con
mac系統中安裝mysql後,登入報錯:mac ERROR 1045 (28000):
第一步:如果mysql服務正在進行,將之停止 第二步:在終端中以管理員許可權啟動mysqld_safe,命令如下 sudo /usr/local/mysql/bin/mysqld_safe --skip-grant-tables 執行結果如下: 2016-06
安裝zabbix報錯: configure: error: Curl library not found 解決辦法
網上有諸多說法: 1. yum install mysql-devel -y 2.把--with-mysql改成 --with-mysql=/usr/local/mysql/bin/mysql_config 上面的兩種都沒有解決
在模擬器上運行Android項目時報錯:DELETE_FAILED_INTERNAL_ERROR Error while Installing APKs
chang 今天 http efault enable uil style int oid 今天在Android Studio自帶的模擬器上運行項目的時候,出現如下所示Error:當點擊ok後,發現模擬器不能運行程序。 解決辦法: 更改Android Studio中
Ubuntu server裡登入mySql時報錯:Mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost'的纖細解決方案
問題如下: 輸入正確密碼後,卻出現錯誤 首先我們用vi編輯器進入mysql的配置檔案mysqld.cnf 我們在檔案裡內容找到mysqld這一目錄,在其目錄下新增一行skip-grant-tables 隨後按esc鍵輸入:wq儲存退出 退出後