安装php过程中的错误和解决方式 configure: error: jpeglib.h not found.

回复 收藏
centos6.5 32位系统;

checking for the location of libpng... yes
checking for the location of libXpm... no
checking for FreeType 2... yes
checking for T1lib support... no
checking whether to enable truetype string function in GD... yes
checking whether to enable JIS-mapped Japanese font support in GD... no
If configure fails try --with-vpx-dir=
configure: error: jpeglib.h not found.

解决方法:
yum install libjpeg libpng freetype libjpeg-devel libpng-devel freetype-devel -y

若是64位系统
解决方法:
yum install libjpeg.x86_64 libpng.x86_64 freetype.x86_64 libjpeg-devel.x86_64 libpng-devel.x86_64 freetype-devel.x86_64 -y
2015-12-16 10:51 举报
已邀请:
0

daiqing_rk

赞同来自:

我是64位系统,我执行了上述命令,还是报这个错误
0

daiqing_rk

赞同来自:

If configure fails try --with-vpx-dir= configure: error: jpeglib.h not found.
0

daiqing_rk

赞同来自:

32位, 和64位 都执行一遍就成功了
0

郭贞

赞同来自:

{:4_97:}好神奇我的也是64位的  都运行一遍就成功了
0

gl0321

赞同来自:

遇到同样的问题,32位系统的,按照此法,把故障解决了
0

奥菲克罗

赞同来自:

根据楼主的提示 这个问题解决了
0

a661219

赞同来自:

不错,解决报错的问题。
0

gofox

赞同来自:

感谢,楼主和daiqing_rk兄。确实64位的需要全都执行一遍
0

Sean.Yuan

赞同来自:

我的是6.7 64位。。我的没成功继续依赖关系 error: mcrypt.h not found. Please reinstall libmcrypt
0

zhuwentao1300

赞同来自:

64位的也要装32位的才可以。
0

鲍国亮

赞同来自:

php 5.5.38遇到此问题,按此方法解决了。

0

果汁硬汉

赞同来自:

我曹,师兄大神,好贴,必须顶

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: