[root@localhost libpng-1.2.40]# tar zxvf /mnt/freetype-2.3.5.tar.gz -C /tmp
[root@localhost libpng-1.2.40]# cd ../freetype-2.3.5/
[root@localhost freetype-2.3.5]# ./configure --prefix=/www/freetype
[root@localhost freetype-2.3.5]# make
[root@localhost freetype-2.3.5]# make install
jpegsrc的安装
[root@localhost freetype-2.3.5]# tar zxvf /mnt/jpegsrc.v6b.tar.gz -C /tmp
[root@localhost freetype-2.3.5]# cd ../jpeg-6b/
安装的时候我们出现了下面从错误.
[root@server jpeg-6b]# make install
/usr/bin/install -c cjpeg /soft/www/jpegsrc/bin/cjpeg
/usr/bin/install: cannot create regular file `/soft/www/jpegsrc/bin/cjpeg'': No such file or directory
拥有帝国一切,皆有可能。欢迎访问phome.net
make: *** [install] Error 1
/usr/bin/install: cannot create regular file `/soft/www/jpegsrc/man/man1/cjpeg.1'': No such file or directory可以了阿
我们新建下面这两个文件就可以了阿.
[root@localhost jpeg-6b]# mkdir /www/jpegsrc/man/man1/cjpeg.1 -p
[root@localhost jpeg-6b]# mkdir /www/jpegsrc/bin/cjpeg -p
[root@localhost jpeg-6b]# make
[root@localhost jpeg-6b]# make install
[root@localhost jpeg-6b]# tar zxvf /mnt/gd-2.0.35.tar.gz -C /tmp
[root@localhost jpeg-6b]# cd ../gd-2.0.35/
configure.ac:64: error: possibly undefined macro: AM_ICONV
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
make: *** [configure] Error 1
出现这个原因是我们没有安装gettext这个包的原因,但是这个包其实是已经安装过的,我们强制安装一次.
[root@localhost gd-2.0.35]# rpm -vih /iso/Server/gettext-0.14.6-4.el5.i386.rpm --force
warning: /iso/Server/gettext-0.14.6-4.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:gettext ########################################### [100%]
[root@localhost gd-2.0.35]# ./configure --prefix=/www/gd --with-png=/www/libpng --with-freetype=/www/freetype --with-jpeg=/www/jpegsrc
** Configuration summary for gd 2.0.34:
Support for PNG library: yes
Support for JPEG library: yes
Support for Freetype 2.x library: yes
Support for Fontconfig library: yes
Support for Xpm library: yes
Support for pthreads: yes
[root@localhost gd-2.0.35]# make
[root@localhost gd-2.0.35]# make install
[root@localhost gd-2.0.35]# tar zxvf /mnt/libxml2-2.7.3.tar.gz -C /tmp
[root@localhost gd-2.0.35]# cd ../libxml2-2.7.3/
拥有帝国一切,皆有可能。欢迎访问phome.net
[root@localhost libxml2-2.7.3]# ./configure --prefix=/www/libxml
[root@localhost libxml2-2.7.3]# make
[root@localhost libxml2-2.7.3]# make install
mrtg的安装
[root@localhost libxml2-2.7.3]# tar zxvf /mnt/mrtg.tar.gz -C /tmp
[root@localhost libxml2-2.7.3]# cd ../mrtg-2.16.4/
[root@localhost mrtg-2.16.4]# ./configure --prefix=/www/mrtg --with-gd=/www/gd --with-gd-lib=/www/gd/lib --with-gd-inc=/www/gd/include -with-
png=/www/libpng --with-png-lib=/www/libpng/lib --with-z=/www/zl |