miszczu
miszczu

Reputation: 1189

pgmagick install on linux

Im trying to install pgmagick on CentOS.

After i run pip install pgmagicki get some errors. After i checked log file, this is what i've got:

  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

Am i missing something? How to make it work?

Upvotes: 11

Views: 7707

Answers (4)

Ali ZareShahi
Ali ZareShahi

Reputation: 558

by attention to the official installation guidance

pgmagick is available on UNIX-like systems. and depend on the following libraries.

for debian

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

and if you have another OS you can check installation page

after that you can install pgmagic with pip installation

$ pip install pgmagick

Upvotes: 0

Chalist
Chalist

Reputation: 3309

For Arch base distros you need to do:

sudo pacman -S libmagick boost graphicsmagick imagemagick

Upvotes: 0

G.J
G.J

Reputation: 503

You are probably missing the GraphicsMagick-c++-devel package (available from the EPEL repository).

Upvotes: 4

Rolo
Rolo

Reputation: 6080

Just had this myself. For anyone visiting via Google from the future, you need two additional packages first:

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

Upvotes: 38

Related Questions