PHP Fatal error: Call to undefined function imagettfbbox()

今天把网站放到vps服务器上去,报错说PHP Fatal error: Call to undefined function imagettfbbox()经过查资料得出GD库要支持更多的图像格式,所以自己又重新编译了下php
./configure --prefix=/usr/local/php  --enable-fpm --with-mcrypt \
--enable-mbstring --disable-pdo --with-curl --disable-debug  --disable-rpath \
--enable-inline-optimization --with-bz2  --with-zlib --enable-sockets \
--enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex \
--with-mhash --enable-zip --with-pcre-regex --with-mysql --with-mysqli \
--with-gd --with-jpeg-dir \
--with-freetype-dir=/usr/include/freetype2/freetype \
–enable-gd-native-ttf
重启php-fpm,搞定!



你可能感兴趣的:(Linux)