#### **pip安装python-rrdtool报错**
# pip install python-rrdtool
... ...
configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of cairo-png. Check config.log for hints on why
this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
so that compiler and the linker can find libcairo and its header files. If
you have not installed cairo-png, you can get it either from its original home on
http://cairographics.org/releases/
You can find also find an archive copy on
http://oss.oetiker.ch/rrdtool/pub/libs
The last tested version of cairo-png is 1.10.2.
LIBS=-lm
LDFLAGS=
CPPFLAGS=
----------------------------------------------------------------------------
....
configure: error: Please fix the library issues listed above and try again.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-NVbeVs/python-rrdtool/setup.py", line 99, in <module>
include_dirs=[include_dir],
File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/site-packages/setuptools/command/install.py", line 53, in run
return _install.run(self)
File "/usr/lib64/python2.7/distutils/command/install.py", line 563, in run
self.run_command('build')
File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib64/python2.7/distutils/command/build.py", line 127, in run
self.run_command(cmd_name)
File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/tmp/pip-build-NVbeVs/python-rrdtool/setup.py", line 68, in run
self.run_command(cmd_name)
File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/tmp/pip-build-NVbeVs/python-rrdtool/setup.py", line 62, in run
subprocess.check_call(executable, cwd=os.path.dirname(executable))
File "/usr/lib64/python2.7/subprocess.py", line 542, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/tmp/pip-build-NVbeVs/python-rrdtool/rrdtool-1.4.7/configure' returned non-zero exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-NVbeVs/python-rrdtool/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-UaCK8V-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-NVbeVs/python-rrdtool/
#### **注意错误提示**
```Please fix the library issues listed above and try again.```
根据configure: WARNING提示的信息,将所有缺失的库安装好即可
如上面缺少了cairo-png相关库,安装好cairo-devel即可
```yum install cairo-devel```
文章最后更新时间:
2017年05月22日 06:37:37
online slots online casino casino games casino games real money casino
online casino casino online casino online online slots online casino
real money casino online slots casino online real money casino online casino
weight loss pills that work weight loss medications prescription weight loss injections best diet pill prescription weight loss pills
alli weight loss reviews weight loss pill weight loss medication top weight loss supplements pills to lose weight
weight loss medication metformin weight loss best new prescription diet pills weight loss pills that work pills to lose weight
best weight loss supplement weight loss products best weight loss pills for women best diet pills for weight loss best over the counter diet pills
diet supplements weight loss tablets prescription weight loss pills best weight loss supplements weight loss drug
top weight loss supplements weight loss medications weightloss pills supplements for weight loss best diet pills that work
best prescription weight loss medication alli weight loss reviews phentermine 37.5 without doctor's prescription appetite suppressants that work best diet pills for weight loss