Installing the RRDtool module
wget https://pypi.python.org/packages/99/af/bf46df3104d78591f942278467a1016d056a887c808ed1127207a4e1ebaf/ PYTHON-RRDTOOL-1.4.7.TAR.GZTAR-ZXVF PYTHON-RRDTOOL-1.4.7.TAR.GZCD Python-rrdtool-1.4.7/python setup.py Install #可能会报错cd python-rrdtool-1.4.7/./configure --prefix=/usr/local #也会报错 because there are a lot of dependencies that need to be installed, It's mostly what it warns about. Yum Install libxml2*-y yum install pango-y yum install glib*-y yum install pango*-y
./configure make #这里还是会报错 yum install perl-extutils-cbuilder perl-extutils-makemaker-y make Make Install
Want to try to get into Python
Execute Import RRDtool
If it is still an error, check the echo $LD _library_path, if there is no value, export ld_library_path=/usr/local/lib
If the librrd.so.4 is not found, then find/-name librrd.so.4, then ln-s librrd.so.4 path/usr/local/lib, so Python can successfully import RRDtool
Installation of the Python--rrdtool module