2012-06-21 28 views
9

我试图在CentOS上安装pgmagick。在Linux上安装pgmagick

在我运行pip install pgmagick后,我得到一些错误。在我检查日志文件后,这是我得到的:

Running setup.py egg_info for package pgmagick 
    Traceback (most recent call last): 
     File "<string>", line 14, in <module> 
     File "/root/build/pgmagick/setup.py", line 74, in <module> 
     raise Exception("Magick++ not found") 
    Exception: Magick++ not found 
    Complete output from command python setup.py egg_info: 
    Traceback (most recent call last): 
    File "<string>", line 14, in <module> 
    File "/root/build/pgmagick/setup.py", line 74, in <module> 
    raise Exception("Magick++ not found") 
Exception: Magick++ not found 
---------------------------------------- 
Command python setup.py egg_info failed with error code 1 in /root/build/pgmagick 
Exception information: 
Traceback (most recent call last): 
    File "/usr/lib/python2.6/site-packages/pip/basecommand.py", line 104, in main 
    status = self.run(options, args) 
    File "/usr/lib/python2.6/site-packages/pip/commands/install.py", line 245, in run 
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) 
    File "/usr/lib/python2.6/site-packages/pip/req.py", line 1009, in prepare_files 
    req_to_install.run_egg_info() 
    File "/usr/lib/python2.6/site-packages/pip/req.py", line 225, in run_egg_info 
    command_desc='python setup.py egg_info') 
    File "/usr/lib/python2.6/site-packages/pip/__init__.py", line 256, in call_subprocess 
    % (command_desc, proc.returncode, cwd)) 
InstallationError: Command python setup.py egg_info failed with error code 1 in /root/build/pgmagick 

我错过了什么吗?如何使它工作?

回答

34

刚刚有这个自己。对于任何人通过谷歌从未来参观,你首先需要两个额外的软件包:

sudo apt-get install libgraphicsmagick++1-dev libboost-python-dev 
+0

这应该是被接受的答案。谢谢! – bluemihai

+4

在OSX上:'brew install graphicsmagick'和'brew install boost-python' – Stan

4

你可能缺少GraphicsMagick-c++-devel包 (可从EPEL库)。

+0

感谢您添加基于Redhat的等效 –