When manually installing rrdtool, make sure that the following function libraries are installed.
They are zlib lilpng freetype libart_lgpl
We can use the rpm-qa | grep library name to check whether the above library has been installed.
The correct display result should be:
[Root @ localhost rrdtool-1.2.6] # rpm-qa | grep zlib
Zlib-1.2.3-3
Zlib-devel-1.2.3-3
[Root @ localhost rrdtool-1.2.6] # rpm-qa | grep libpng
Libpng-devel-1.2.10-7
Libpng-1.2.10-7
[Root @ localhost rrdtool-1.2.6] # rpm-qa | grep freetype
Freetype-2.2.1-16.el5
Freetype-devel-2.2.1-16.el5
[Root @ localhost rrdtool-1.2.6] # rpm-qa | grep libart_lgpl
Libart_lgpl-2.3.17-4
Libart_lgpl-devel-2.3.17-4
We can find these function libraries one by one on the Internet. We can also use yum powerful commands to implement these functions. However, when using this command, we must first upgrade the function.
The first is to speed up this command
Yum install yum-fastestmirror
Next, expand the yum search range.
Rpm-Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
Rpm-Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
Next, our yum command will be more practical.
Of course, during installation, we also need a function library, cgilib, which is also an essential function library.
This function library we can get from the following website: http://www.infodrom.org/projects/cgilib/download/
Then you can compile and install it.
Then we need to upgrade our rrdtool to use yum install rrdtool.
Article from: http://hi.baidu.com/zhaotieqiang