本博客之内所有文章保证全由本人亲手调试。
OK。继承第一阶段的LAMP环境开始安装RRDTOOL。
Rrdtool的安装
跟据上次的经验,安装的前提包如下:
freetype freetype-devel
fontconfig fontconfig-devel
libpng libpng-devel 上面这几个包在GD编译的时候已经OK了
libXrender libXrender-devel
cairo cairo-devel
libXft libXft-devel
bitstream-vera-fonts
pango pango-devel
libart_lgpl libart_lgpl-devel
。
安装libart_lgpl libart_lgpl-devel
root@Only-test:/Ddisk/tool/tar> rpm -qa | grep libart_lgpl
root@Only-test:/Ddisk/tool/tar> yum install libart_lgpl*
root@Only-test:/Ddisk/tool/tar> rpm -qa | grep libart_lgpl
OK
安装bitstream-vera-fonts
root@Only-test:/Ddisk/tool/tar> rpm -qa | grep bitstream-vera-fonts
root@Only-test:/Ddisk/tool/tar> yum install bitstream-vera-fonts
root@Only-test:/Ddisk/tool/tar> rpm -qa | grep bitstream-vera-fonts
OK
安装 libXrender libXrender-devel
root@Only-test:/Ddisk/tool/tar> rpm -qa | grep libXrender
root@Only-test:/Ddisk/tool/tar> rpm -qa | grep libXrender
OK
这里说明一下,上面三个都是rpm关联性相当小的,只装本身就行。下面三个如果用yum将会引起一大串包关联。所以用源码包安装。
安装libXft libXft-devel
root@Only-test:/Ddisk/tool/tar> rpm -qa | grep libXft
root@Only-test:/Ddisk/tool/tar> yum install libXft*
按yum的说法我还要把freetype和fontconfig的四个包再装一次。不鸟它了。
root@Only-test:/Ddisk/tool/tar> tar xvf libXft-2.1.10.tar.bz2
root@Only-test:/Ddisk/tool/tar/libXft-2.1.10> cd libXft-2.1.10
root@Only-test:/Ddisk/tool/tar/libXft-2.1.10> ./configure
--prefix=/Ddisk/program/libXft
--with-freetype-config=/Ddisk/program/freetype/bin/freetype-config
--with-freetype-config 这个是必填项,否则会一直提示freetype没有安装
root@Only-test:/Ddisk/program/libXft> make && make install
root@Only-test:/Ddisk/program/libXft> ln -s /Ddisk/program/libXft/bin/xft-config /usr/bin/
root@Only-test:/Ddisk/program/libXft> ln -s /Ddisk/program/libXft/include/X11/Xft/ /usr/include/X11/
root@Only-test:/Ddisk/program/libXft> ln -s /Ddisk/program/libXft/include/X11/Xft/Xft* /usr/include/X11/
root@Only-test:/Ddisk/program/libXft> ln -s /Ddisk/program/libXft/lib/libXft.so* /usr/lib/
root@Only-test:/Ddisk/program/libXft> ln -s /Ddisk/program/libXft/lib/pkgconfig/xft.pc /usr/lib/pkgconfig/
root@Only-test:/Ddisk/program/libXft> ln -s /Ddisk/program/libXft/man/man1/xft-config.1 /usr/share/man/man1/
root@Only-test:/Ddisk/program/libXft> ln -s /Ddisk/program/libXft/man/man3/Xft.3 /usr/share/man/man3/
root@Only-test:/Ddisk/program/libXft> pkg-config --modversion xft
Ok
安装pixman
这个没有在上面列出。不过是安排cairo必须的。所以先行安装
root@Only-test:/Ddisk/tool/tar> rpm -aq | grep pixman
root@Only-test:/Ddisk/tool/tar> tar xvf pixman-0.22.2.tar.bz2
root@Only-test:/Ddisk/tool/pixman-0.22.2> ./configure
--prefix=/Ddisk/program/pixman
root@Only-test:/Ddisk/tool/pixman-0.22.2> make && make install
root@Only-test:/Ddisk/program/pixman> ln -s /Ddisk/program/pixman/include/pixman-1/ /usr/include/
root@Only-test:/Ddisk/program/pixman> ln -s /Ddisk/program/pixman/lib/*so* /usr/lib
root@Only-test:/Ddisk/program/pixman> ln -s /Ddisk/program/pixman/lib/pkgconfig/pixman-1.pc /usr/lib/pkgconfig/
root@Only-test:/Ddisk/program/pixman> pkg-config --modversion pixman-1
OK
安装Cairo
root@Only-test:/Ddisk/tool/tar/cacti/cairo-1.10.0> rpm -qa | grep cairo
root@Only-test:/Ddisk/tool/tar/cacti/cairo-1.10.0> yum install cairo
root@Only-test:/Ddisk/tool/tar/cacti/cairo-1.10.0> yum install cairo-devel
都不安生。
root@Only-test:/Ddisk/tool/tar/cacti/cairo-1.10.0> ./configure
--prefix=/Ddisk/program/cairo
--enable-xml
--disable-gobject
XML不能用。。。
root@Only-test:/Ddisk/tool/tar/cacti/cairo-1.10.0> ./configure --prefix=/Ddisk/program/cairo
root@Only-test:/Ddisk/tool/tar/cacti/cairo-1.10.0> make & make install
PS:如果make 的时候gobject报错。直接加 --disable-gobject 重新./configure
root@Only-test:/Ddisk/program/cairo> ln -s /Ddisk/program/cairo/bin/cairo-trace /usr/bin/
root@Only-test:/Ddisk/program/cairo> ln -s /Ddisk/program/cairo/include/cairo/ /usr/include/
root@Only-test:/Ddisk/program/cairo> ln -s /Ddisk/program/cairo/include/cairo/* /usr/include/
root@Only-test:/Ddisk/program/cairo> ln -s /Ddisk/program/cairo/lib/pkgconfig/cairo
root@Only-test:/Ddisk/program/cairo> ln -s /Ddisk/program/cairo/lib/pkgconfig/cairo* /usr/lib/pkgconfig/
root@Only-test:/Ddisk/program/cairo> ln -s /Ddisk/program/cairo/lib/cairo/ /usr/lib
root@Only-test:/Ddisk/program/cairo> ln -s /Ddisk/program/cairo/share/gtk-doc/html/cairo/ /usr/share/gtk-doc/html/
root@Only-test:/Ddisk/program/cairo> pkg-config --modversion cairo
OK
pango
root@Only-test:/Ddisk/tool/tar/pango-1.14.10> rpm -qa | grep pango
root@Only-test:/Ddisk/tool/tar/pango-1.14.10> ./configure --prefix=/Ddisk/program/pango
好像有东西没装
root@Only-test:/Ddisk/tool/tar/pango-1.14.10> rpm -aq | grep glib
长得一样。不过好像不是。
root@Only-test:/Ddisk/tool/tar/pango-1.14.10> yum list glib*
果然还是不同的。
root@Only-test:/Ddisk/tool/tar/pango-1.14.10> yum install glib
root@Only-test:/Ddisk/tool/tar/pango-1.14.10> yum install glib-devel
root@Only-test:/Ddisk/tool/tar/pango-1.14.10> ./configure --prefix=/Ddisk/program/pango
还是一样。不对了。刚刚装的好像版本过低。不过看来glib的版本差不多到头了。
root@Only-test:/Ddisk/tool/tar/pango-1.14.10> rpm -qa | grep glib*
glib2的devel包没安装,而且./configure也没给出现在的版本号——估计是不存在。先装这个包试试。
root@Only-test:/Ddisk/tool/tar/pango-1.14.10> yum install glib2-devel
好吧。顺带把主程序升级了。
root@Only-test:/Ddisk/tool/tar/pango-1.14.10> ./configure --prefix=/Ddisk/program/pango
过了。果然是这个包。
root@Only-test:/Ddisk/tool/tar/pango-1.14.10> make && make install
root@Only-test:/Ddisk/program/pango> ln -s /Ddisk/program/pango/bin/pango-querymodules /usr/bin/
root@Only-test:/Ddisk/program/pango> ln -s /Ddisk/program/pango/etc/pango/ /etc/
root@Only-test:/Ddisk/program/pango> ln -s /Ddisk/program/pango/include/pango-1.0/ /usr/include/
root@Only-test:/Ddisk/program/pango> ln -s /Ddisk/program/pango/lib/*so* /usr/lib
root@Only-test:/Ddisk/program/pango> ln -s /Ddisk/program/pango/lib/pango/ /usr/lib
root@Only-test:/Ddisk/program/pango> ln -s /Ddisk/program/pango/lib/pkgconfig/pango* /usr/lib/pkgconfig/
root@Only-test:/Ddisk/program/pango> ln -s
/Ddisk/program/pango/man/man1/pango-querymodules.1 /usr/share/man/man1/
root@Only-test:/Ddisk/program/pango> ln -s /Ddisk/program/pango/share/gtk-doc/html/pango/ /usr/share/gtk-doc/html/
root@Only-test:/Ddisk/program/pango> pkg-config --modversion pango
OK
rrdtool
root@Only-test:/Ddisk/tool/tar/cacti/rrdtool-1.4.8> rpm -aq | grep rrdtool
root@Only-test:/Ddisk/tool/tar/cacti/rrdtool-1.4.8> ./configure --prefix=/Ddisk/program/rrdtool
root@Only-test:/Ddisk/tool/tar/cacti/rrdtool-1.4.8> make && make install
root@Only-test:/Ddisk/program/rrdtool> ln -s /Ddisk/program/rrdtool/bin/rrd* /usr/bin/
root@Only-test:/Ddisk/program/rrdtool> ln -s /Ddisk/program/rrdtool/include/* /usr/include/
root@Only-test:/Ddisk/program/rrdtool> ln -s /Ddisk/program/rrdtool/lib/perl/ /usr/lib
root@Only-test:/Ddisk/program/rrdtool> ln -s /Ddisk/program/rrdtool/lib/pkgconfig/librrd.pc /usr/lib/pkgconfig/
root@Only-test:/Ddisk/program/rrdtool> ln -s /Ddisk/program/rrdtool/lib/*so* /usr/lib
root@Only-test:/Ddisk/program/rrdtool> ln -s /Ddisk/program/rrdtool/share/doc/rrdtool-1.4.8/ /usr/share/doc/
root@Only-test:/Ddisk/program/rrdtool> ln -s /Ddisk/program/rrdtool/share/man/man1/ /usr/share/man/man1/
root@Only-test:/Ddisk/program/rrdtool> ln -s /Ddisk/program/rrdtool/share/rrdtool/ /usr/share/
root@Only-test:/Ddisk/program/rrdtool> pkg-config --modversion librrd
OK。完成收工