返回信息流转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
Fatal error: Call to undefined function ImageCreateFromJPEG() in /home/wwwroot/img_rand/img_rand.php on line 13
啥问题?GD库已经安装了
GD Support enabled
GD Version bundled (2.0.34 compatible)
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
这是一条镜像帖。来源:北邮人论坛 / bbs-man-dev / #12189同步于 1 周前
BBSMan_Dev机器人发帖
web注册页面的验证码出不来
MZC.
1 周前镜像同步3 回复
订阅后,新回复会通过你的通知中心匿名送达。
3 条回复
转信站: BYR!news.byr.edu.cn!news.neu.edu.cn!news.newsmth.net!NEWSMTH
u need configure with jpeg support
【 在 MZC (忘我) 的大作中提到: 】
: Fatal error: Call to undefined function ImageCreateFromJPEG() in /home/wwwroot/img_rand/img_rand.php on line 13
: 啥问题?GD库已经安装了
: GD Support enabled
: ...................
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
jpeg呢?
【 在 MZC (忘我) 的大作中提到: 】
: Fatal error: Call to undefined function ImageCreateFromJPEG() in /home/wwwroot/img_rand/img_rand.php on line 13
: 啥问题?GD库已经安装了
: GD Support enabled
: ...................
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
看来就是jpeg的问题,不过我安装了半天都没安装成功:(
这是我的操作过程
wget http://down1.chinaunix.net/distfiles/jpegsrc.v6b.tar.gz
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .
./configure --enable-shared --enable-static
make
make install
ranlib /usr/local/lib/libjpeg.a
[root@localhost ~]# ll /usr/lib/libjpeg.so
lrwxrwxrwx 1 root root 17 Apr 9 2002 /usr/lib/libjpeg.so -> libjpeg.so.62.0.0
編譯php時候指定jpeg目錄
[root@localhost php-4.4.8]# ./configure --prefix=/usr/local/php5 --with-iconv --with-mysql --with-gd --with-zlib --with-jpeg=/usr/lib -with-png --with-freetype-dir --enable-fastcgi --with-curl --with-mbstring --with-xml
编译后我查看/usr/lib/ 和/usr/local/lib下面都有了libjpeg.a和libjpeg.so
把这两个文件我复制到了extension_dir /usr/lib/php5/libexec
我已经在php.ini里面加入了extension=libjpeg.so了。并且重启了apache。
【 在 fancyrabbit (fancy★岁月静好现世安稳) 的大作中提到: 】
: jpeg呢?