求助centos下gd库不支持JPEG-CSDN论坛
答案:1 悬赏:0 手机版
解决时间 2021-12-01 09:24
- 提问者网友:嗝是迷路的屁
- 2021-12-01 00:31
求助centos下gd库不支持JPEG-CSDN论坛
最佳答案
- 五星知识达人网友:雾月
- 2021-12-01 01:27
应该是gd没装上吧
安装gd
tar zxvf gd-2.0.33.tar.gz
cd gd-2.0.33
CPPFLAGS="-I/usr/local/freetype2/include -I/usr/local/jpeg8/include -I/usr/local/libpng2/include -I/usr/local/fontconfig/include" ./configure --prefix=/usr/local/gd2/ --with-zlib=/usr/local/zlib/ --with-png=/usr/local/libpng2/ --with-jpeg=/usr/local/jpeg8/ --with-freetype=/usr/local/freetype2/ --with-fontconfig=/usr/include/fontconfig
如果装系统已经默认安装了fontconfig,那么改为:
CPPFLAGS="-I/usr/local/freetype2/include -I/usr/local/jpeg8/include -I/usr/local/libpng2/include -I/usr/local/fontconfig/include" ./configure --prefix=/usr/local/gd2/ --with-zlib=/usr/local/zlib/ --with-png=/usr/local/libpng2/ --with-jpeg=/usr/local/jpeg8/ --with-freetype=/usr/local/freetype2/ --with-fontconfig=shared
保证gd里面的东西都安装了吧
安装gd
tar zxvf gd-2.0.33.tar.gz
cd gd-2.0.33
CPPFLAGS="-I/usr/local/freetype2/include -I/usr/local/jpeg8/include -I/usr/local/libpng2/include -I/usr/local/fontconfig/include" ./configure --prefix=/usr/local/gd2/ --with-zlib=/usr/local/zlib/ --with-png=/usr/local/libpng2/ --with-jpeg=/usr/local/jpeg8/ --with-freetype=/usr/local/freetype2/ --with-fontconfig=/usr/include/fontconfig
如果装系统已经默认安装了fontconfig,那么改为:
CPPFLAGS="-I/usr/local/freetype2/include -I/usr/local/jpeg8/include -I/usr/local/libpng2/include -I/usr/local/fontconfig/include" ./configure --prefix=/usr/local/gd2/ --with-zlib=/usr/local/zlib/ --with-png=/usr/local/libpng2/ --with-jpeg=/usr/local/jpeg8/ --with-freetype=/usr/local/freetype2/ --with-fontconfig=shared
保证gd里面的东西都安装了吧
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯