2012-06-21 14 views
9

Im tratando de instalar pgmagick en CentOS.pgmagick install on linux

Después de ejecutar pip install pgmagick obtengo algunos errores. Después de que revisé el archivo de registro, esto es lo que tengo:

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 

¿Echo algo a perder? ¿Cómo hacer que funcione?

Respuesta

34

Acabo de tener esto yo mismo. Para cualquiera que visite a través de Google desde el futuro, se necesitan dos primeros paquetes adicionales:

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

Esta debería ser la respuesta aceptada. ¡Gracias! – bluemihai

+4

En OSX: 'brew install graphicsmagick' y' brew install boost-python' – Stan

4

Usted probablemente está perdiendo el paquete de GraphicsMagick-c++-devel (disponible en el repositorio EPEL).

+0

Gracias por agregar el equivalente basado en Redhat –