日期:2014-05-16 浏览次数:20833 次
:Fatal error: Call to undefined function imagecreatefromjpeg()
#./configure --prefix=/usr/local/php --with-config-file-path=/etc \ --with-mysql=/usr/local/mysql --with-iconv-dir \ --with-zlib --with-libxml-dir --enable-xml --disable-debug --disable-rpath \ --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop \ --enable-sysvsem --enable-inline-optimization --with-curl \ --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm \ --with-iconv=/usr/local --enable-force-cgi-redirect --enable-mbstring --with-openssl \ #make && make install
ln -sv /usr/lib/libjpeg.so.62.0.0 /lib/libjpeg.so
#./configure --with-php-config=/usr/local/php/bin/php-config --with-jpeg-dir \ --with-freetype-dir #make && make install
extension=gd.so
./configure --prefix=/usr/local/php --with-config-file-path=/etc \ --with-mysql=/usr/local/mysql --with-iconv-dir \ --with-gd --enable-gd-native-ttf --with-freetype-dir --with-png-dir --with-jpeg-dir \ --with-zlib --with-libxml-dir --enable-xml --disable-debug --disable-rpath \ --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop \ --enable-sysvsem --enable-inline-optimization --with-curl \ --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm \ --with-iconv=/usr/local --enable-force-cgi-redirect --enable-mbstring --with-openssl \ make && make install
#rpm -ql libjpeg
#phpize #./configure --with-php-config=/usr/local/php/bin/php-config --with-jpeg-dir \ --with-freetype-dir #make && make install
#./configure --prefix=/usr/local/php --with-config-file-path=/etc \ --with-mysql=/usr/local/mysql --with-iconv-dir \ --with-zlib --with-libxml-dir --enable-xml --disable-debug --disable-rpath \ --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop \ --enable-sysvsem --enable-inline-optimization --with-curl \ --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm \ --with-iconv=/usr/local --enable-force-cgi-redirect --enable-mbstring --with-openssl \ #make && make install
#make clean #cd ext/gd #phpize