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
PythonMagick: How to install from source on RedHat 5.x?
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: PythonMagick: How to install from source on RedHat 5.x?
It is part of "ImageMagick" package. You may want ImageMagick-devel package too.
It is a standard part of RHEL v5 but it is VERY VERY old.
You can compile a newer one using the instructions in IM Examples, APIs, Building
http://www.imagemagick.org/Usage/api/#rpms
It is a standard part of RHEL v5 but it is VERY VERY old.
You can compile a newer one using the instructions in IM Examples, APIs, Building
http://www.imagemagick.org/Usage/api/#rpms
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: PythonMagick: How to install from source on RedHat 5.x?
Hmmm... OK, well if MagickCore is part of the ImageMagick or ImageMagick-devel packages, then it sounds like I just need to figure out what the environment variables MAGICKCORE_CFLAGS and MAGICKCORE_LIBS need to be set to, yes?
I find source that includes MagicCore.h at /usr/include/magick, but that and an HTML doc-file are the only files on the system that have 'MagickCore' in their names... If MagickCore is already compiled/available, but in an odd location, how could I find it?
BDA
I find source that includes MagicCore.h at /usr/include/magick, but that and an HTML doc-file are the only files on the system that have 'MagickCore' in their names... If MagickCore is already compiled/available, but in an odd location, how could I find it?
BDA