首頁 >後端開發 >php教程 >enable gd support in php

enable gd support in php

WBOY
WBOY原創
2016-06-23 14:35:19769瀏覽

For the new user, it's very common that will have problem to enable gd support in php, after fail and retry for hours, I figured out to use the steps below to get it work:
1. download/compile/install libpng
2. checkout the libjpeg if you can't get access to their website:
cvs -z3 -d:pserver:anonymous@libjpeg.cvs.sourceforge.net:/cvsroot/libjpeg co -P modulename
3. compile/install libjpeg
4. run "make clean" at the source directory of php (important, otherwise you will run into some weired error)
5. the configure for php should be like this:(use the exact directory suits your environment)
./configure --with-mysql --with-gd --with-apxs=/usr/local/apache/bin/apxs --with-jpeg-dir=/usr/local/lib

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
上一篇:php的安装下一篇:php 小技巧