| > On Tue, 20 Oct 2009 15:53:05 +1100 | > Jeremy Cappilero <jeremy.cappil...@gmail.com> wrote: | > | > | I'm trying to get ImageMagick to run inside a jail, specifically to get | > | PHP's Imagick PECL package going. | > | | > | I am assuming the behaviour I am seeing when I run "convert" inside the | > jail | > | is responsible for the problem. | > | | > | Run outside the jail, "convert -list format" will show me a bazillion | > | formats read to go. | > | | > | Inside the jail, I only get "* native blob support". | > | | > | ImageMagick 6.2.8 04/17/08 | > | Centos 5.3 / 2.6.18-164.el5PAE | > | | > | I'm pretty familiar with basic jailing, and have apache and a few other | > | things running happily inside the jail, but I'm still quite new to this. | > | I've done an "ldd convert" and copied the appropriate files over to the | > | chroot's /lib/ and everything seems to be fine. | > | | > | I've tried following the bottom of | > | http://www.imagemagick.org/script/advanced-unix-installation.phpconcerning | > | ldd and ldconfig but with no luck. | > | | > | On Tue, Oct 20, 2009 at 4:40 PM, Anthony Thyssen | <a.thys...@griffith.edu.au>wrote: | | > IM uses a lot of files beyond the immediate ldd librararies. | > | > Specifically it uses modules for all the coders which is why you do not | > see any formats inside the jail. | > | > Their are also many configuration files too for extra things like how | > to use delegate programs such as ghostscript for postscript and PDF | > reading. | >
On Tue, 20 Oct 2009 17:09:23 +1100 Jeremy Cappilero <jeremy.cappil...@gmail.com> wrote: | Anthony, | | Thank you very much for your reply! Would you be able to tell me which | modules and configuration files I'd need to look at in order to get basic | GIF, JPEG and PNG support? | The 'coders' directory contains the modules, however often these als need other external libraries for the implementation of that format. TIFF for example not only needs the 'coder' module, but that module needs the libtiff library. For example ldd /usr/lib/ImageMagick-6.5.7/modules-Q16/coders/tiff.so ... libtiff.so.3 => /usr/lib/libtiff.so.3 (0x00e07000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00447000) ... shows that the coder for tiff also needs these two (and other) libraries. IM is does it in this way so that if a particular format is not used, the coder and libraries involved do not need to be loaded or even exist. This way IM still runs on systems that do not have all the libraries. Also some specific format (and coders) also use external programs. for example postscript and PDF handling needs ghostscript installed. The two configuration directories are also needed. One is shareable or system independent (text configuration) while the other are system dependant binary configuration. /usr/share/ImageMagick-6.5.7/config/ /usr/lib/ImageMagick-6.5.7/config/ Anthony Thyssen ( System Programmer ) <a.thys...@griffith.edu.au> ----------------------------------------------------------------------------- To seek out strange, new Taglines to BOLDLY quote ... ----------------------------------------------------------------------------- Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/ _______________________________________________ Magick-developers mailing list Magick-developers@imagemagick.org http://studio.imagemagick.org/mailman/listinfo/magick-developers