PythonMagick: How to install from source on RedHat 5.x?
Posted: 2012-06-25T11:03:21-07:00
Greetings, and apologies if this is not the correct forum for this question - it seemed a bit too esoteric for the Users forum, and nothing else jumped out as a likely best place.
I am trying to tie some image-processing to a web-application written in Python that needs to be able to open PDFs, render each page as a flat image-file (jpg or whatever), and store those page-images for the application's end-users to page through. I'd rather do this as part of the rest of my image-loading/processing routines with PythonMagick, though I believe I could run an external process to do the same thing - it'd just be messier than I'd like. The application runs on a RedHat 5.5 box, with Python 2.4.
RedHat doesn't appear to provide a PythonMagick RPM that I can install directly, so I'm left building it from source, apparently.
When I run the ./configure script, it gets this far:
-----------------------------
checking for main in -lpython2.4... (cached) yes
checking for python2.4/Python.h... (cached) no
results of the Python check:
Binary: python
Library: python2.4
Include Dir: no
checking whether the Boost::Python library is available... no
checking for MAGICKCORE... configure: error: Package requirements (MagickCore >= 6.4.0) were not met:
No package 'MagickCore' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables MAGICKCORE_CFLAGS
and MAGICKCORE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
-----------------------------
RedHat also doesn't apparently provide a 'MagickCore' package (or their search doesn't register it as being a member of some other less-obviously named package). I'm also not sure if I need the Boost::Python library, but I haven't had any success locating that either...
So, I'm stuck, and wondering if either a package for MagickCore and/or Boost::Python exists, or if there is something I can download and build to provide it.
Any help would be appreciated!
BDA
I am trying to tie some image-processing to a web-application written in Python that needs to be able to open PDFs, render each page as a flat image-file (jpg or whatever), and store those page-images for the application's end-users to page through. I'd rather do this as part of the rest of my image-loading/processing routines with PythonMagick, though I believe I could run an external process to do the same thing - it'd just be messier than I'd like. The application runs on a RedHat 5.5 box, with Python 2.4.
RedHat doesn't appear to provide a PythonMagick RPM that I can install directly, so I'm left building it from source, apparently.
When I run the ./configure script, it gets this far:
-----------------------------
checking for main in -lpython2.4... (cached) yes
checking for python2.4/Python.h... (cached) no
results of the Python check:
Binary: python
Library: python2.4
Include Dir: no
checking whether the Boost::Python library is available... no
checking for MAGICKCORE... configure: error: Package requirements (MagickCore >= 6.4.0) were not met:
No package 'MagickCore' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables MAGICKCORE_CFLAGS
and MAGICKCORE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
-----------------------------
RedHat also doesn't apparently provide a 'MagickCore' package (or their search doesn't register it as being a member of some other less-obviously named package). I'm also not sure if I need the Boost::Python library, but I haven't had any success locating that either...
So, I'm stuck, and wondering if either a package for MagickCore and/or Boost::Python exists, or if there is something I can download and build to provide it.
Any help would be appreciated!
BDA