python - rrdtool导入问题时报undefined symbol: rrd_flushcached?
PHP中文网
PHP中文网 2017-04-18 10:19:14
0
1
1275

1.import rrdtool 时报如下错误:

Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    import rrdtool
ImportError: /opt/PROJS/flask-rrd-master/venv/lib/python2.7/site-packages/rrdtool.so: undefined symbol: rrd_flushcached

2.尝试安装 rrdtool、rrdtool-devel

yum install rrdtool-devel rrdtool

但安装后问题仍没有解决。

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
刘奇

Solution: Recompile and install rrdtool
1. Download rrdtool

wget http://oss.oetiker.ch/rrdtool...
2. Compile and install rrdtool

tar zxvf rrdtool-1.5.6.tar.gz
cd rrdtool-1.5.6
./configure --prefix=/usr/local
make
make install
3. Use pip to install the python-rrdtool module

pip install rrdtool

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!