apache ./configure --enable-module=so make make installjpeg ./configure --enable-static --enable-shared make make installlibpngcp scripts/makefile.linux ./makefile make make installgd ./configure make make install php./configure --with-mysql --with-gd --with-apxs=/usr/local/apache/bin/apxs --enable-inline-optimization --with-zlib --enable-ftp --with-xml --with-jpeg-dir=/usr/local/binmake make install
要激活 GD 支持,配置 PHP 时加上 --with-gd[=DIR],DIR 是 GD 的基本安装目录。要使用推荐的绑定的 GD 库版本(首次绑定于 PHP 4.3.0),使用 --with-gd。在 Windows 下,要在 php.ini 中把 GD2 DLL php_gd2.dll 加到扩展库中。GD1 DLL php_gd.dll 自 PHP 4.3.2 起已经移除了。此外注意首选的真彩色图像函数例如 imagecreatetruecolor(),需要 GD2。 要在 PHP 3 中禁止 GD 支持,在配置时加上 --without-gd。 要增强 GD 的能力以处理更多的图像格式,在配置 PHP 时指定 --with-XXXX 的配置开关。 表格 3. 所支持的图像格式图像格式 配置开关
jpeg-6b 要激活 jpeg-6b 的支持,加上 --with-jpeg-dir=DIR.
png 要激活 png 的支持,加上 --with-png-dir=DIR。注意,libpng 需要 zlib library,因此配置中还要加上 --with-zlib-dir[=DIR]。
xpm 要激活 xpm 的支持,加上 --with-xpm-dir=DIR。如果配置时提示找不到所需要的库,可以加上到 X11 库的路径。
libpng
fonttype
这些需要下载回来编译好了,在安装时指定这些库的位置。
用 google.com 搜搜
才说安装gd库来试一下的。
呵呵!想不到linux下安个模块这么罗嗦。
中文手册。上东东不全。
e文看了还更加--晕。
只有在琢磨、琢磨
Linux下的GD库源码我有,但是没有安装过
./configure --enable-module=so
make
make installjpeg
./configure --enable-static --enable-shared
make
make installlibpngcp scripts/makefile.linux ./makefile
make
make installgd
./configure
make
make install
php./configure --with-mysql --with-gd --with-apxs=/usr/local/apache/bin/apxs --enable-inline-optimization --with-zlib --enable-ftp --with-xml --with-jpeg-dir=/usr/local/binmake
make install
apache_1.3.29.tar.gz
libpng-1.2.5.tar.gz
jpegsrc.v6b.tar.gz
gd-2.0.22.tar.gz
php-4.3.5.tar.bz2