- 论坛徽章:
- 0
|
我的系统里装了(rpm的)gd-2.0.28以及其他需要的libjpeg,libpng,libfreetype等..
都在/usr/lib下面...
但是编译php是说checking for GD support... yes
checking for the location of libjpeg... /usr/lib/
checking for the location of libpng... /usr/lib/
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... /usr/lib/
checking for T1lib support... no
checking whether to enable truetype string function in GD... yes
checking whether to enable JIS-mapped Japanese font support in GD... yes
configure: error: libjpeg.(a|so) not found.
编译php的参数是:::
- [root@x232 php-4.3.11]# ./configure --prefix=/usr/local/php4/ --with-config-file-path
- =/usr/local/php4/etc --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bi
- n/apxs --with-gd=/usr/lib/ --enable-gd-native-ttf --with-jpeg-dir=/usr/lib/ --with-pn
- g-dir=/usr/lib/ --with-zlib-dir=/usr/lib/ --with-freetype-dir=/usr/lib/ --enable-ftp
- --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --enable-trans-s --enable
- -track-vars --enable-gd-jis-conv --enable-force-cgi-redirect
复制代码 |
|