mso-hansi-font-family:\"Times New Roman\"\">參考網址
http://www.boutell.com/gd/http/
不同版本的gd,安裝方法略有不同,應該都可以用。
[gd-1.8.3]
mso-hansi-font-family:\"Times New Roman\"\">將gd-1.8.3.tar.gz
\"Times New Roman\"\">抓到/usr/local/src/
# cd /usr/local/src
# tar zxvf gd-1.8.3.tar.gz
# mv gd-1.8.3 gd
# cd gd
# make INCLUDEDIRS=\"-I.
-I../zlib -I../libpng\" LIBDIRS=\"-L../zlib
-L. -L../libpng\" LIBS=\"-lgd -lpng
-lz -lm\"
# cd ..
[for gd-1.8.4]
mso-hansi-font-family:\"Times New Roman\"\">將gd-1.8.4.tar.gz
\"Times New Roman\"\">抓到/usr/local/src/
# cd /usr/local/src
# tar zxvf gd-1.8.4.tar.gz
# mv gd-1.8.4 gd
# cd gd
# perl -i~ -p -e s/gd_jpeg.o//g Makefile
# make INCLUDEDIRS=\"-I. -I../zlib
-I../libpng\" LIBDIRS=\"-L../zlib
-L. -L../libpng\" LIBS=\"-lgd -lpng
-lz -lm\" CFLAGS=\"-O -DHAVE_LIBPNG\"
# cd ..
[for
gd-2.0.11]
mso-hansi-font-family:\"Times New Roman\"\">將gd-2.0.11.tar.gz
\"Times New Roman\"\">抓到/usr/local/src/
# cd /usr/local/src
# tar zxvf gd-2.0.11.tar.gz
# mv gd-2.0.11 gd
# cd gd
# env CPPFLAGS=\"-I../zlib -I../libpng\" LDFLAGS=\"-L../zlib -L../libpng\" ./configure --disable-shared --without-freetype --without-jpeg
# make
# cp .libs/* .
# cd ..
最後第二個步驟是將 .libs目錄下的 libgd.a、libgd.la、libgd.lai複製到這個目錄
其中libgd.la本來就是link,連結到本目錄下的libgd.la,所以會出現以下訊息
cp: ./libgd.la and .libs/libgd.la are identical (not copied)
可以不予理會
|