diychen 回复于:2003-10-06 14:52:07 |
重新编译! |
seacaptain 回复于:2003-10-07 11:05:57 |
安装snmpImportant: In order to use the UCD SNMP package, you need to define NO_ZEROLENGTH_COMMUNITY to 1 before compiling it. After configuring UCD SNMP, edit config.h and search for NO_ZEROLENGTH_COMMUNITY. Uncomment the #define line. It should look like this afterwards: #define NO_ZEROLENGTH_COMMUNITY 1
Now compile PHP --with-snmp[=DIR]. 安装gd 0. Make sure you have libjpeg and libpng installed 1. Grab GD-2.0.1. 2. tar zxvf gd-2.0.1.tar.gz 3. cd gd-2.0.1 4. Edit the Makefile and change the LIBS line to be: LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm 5. make libgd.a (don't need to do a make install) 6. Now build PHP using these flags: --with-gd=/home/<you>/gd-2.0.1 --with-freetype-dir=/usr --enable-gd-native-ttf (for PHP 4.0.6 leave off trailing 'f') --enable-gd-imgstrttf --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib |
gzkaka 回复于:2003-10-08 09:09:47 |
谢谢各位,本来想找个更好的方法象类似与apache DSO那样加进模块,但是最后还是自己重新编译了。 |