安装GD-2.18 安装不需要通过configure安装。 首先 [php]perl Makefile.PL GD_JPEG -lib_gd_path /usr/local/gd -lib_jpeg_path /usr/local/jpeg -lib_freetype_path=/usr/local/freetype/ [/php] 然后 make make test make install 安装完成。 如果出现错误 [php]/usr/bin/ld: cannot find -lfreetype collect2: ld returned 1 exit status make: *** [blib/arch/auto/GD/GD.so] Error 1 [/php] 没有找到freetype 解决:[php]ln -s /usr/local/freetype/lib/libfreetype.so /usr/lib/[/php]
发表评论