imagemagick
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| imagemagick [2006/10/17 01:09] – old revision restored andi | imagemagick [2007/07/27 21:08] (current) – fixed putenv line andi | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Compile and install ImageMagick in your home ====== | ||
| + | We only have a useraccount so we download and compile in '' | ||
| + | |||
| + | $> mkdir ~/temp | ||
| + | $> mkdir ~/tools | ||
| + | |||
| + | We start with GhostScript - it's needed by ImageMagic to handle '' | ||
| + | |||
| + | $> cd ~/temp | ||
| + | $> wget http:// | ||
| + | $> tar -xjvf ghostscript-8.15.tar.bz2 | ||
| + | $> cd ghostscript-8.15 | ||
| + | $> ./configure --prefix=$HOME/ | ||
| + | $> make | ||
| + | $> make install | ||
| + | |||
| + | Ghostscript needs some fonts. They are not included in the usual download so get them from http:// | ||
| + | |||
| + | $> cd ~/temp | ||
| + | $> wget http:// | ||
| + | $> cd ~/ | ||
| + | $> tar -xzvf ~/ | ||
| + | |||
| + | Okay now we can continue with ImageMagick. Get it from www.imagemagick.org | ||
| + | |||
| + | $> cd ~/temp | ||
| + | $> wget ftp:// | ||
| + | $> tar -xjvf ImageMagick-6.2.5-4.tar.bz2 | ||
| + | |||
| + | Before we continue we need to set the $PATH envrinment variable to make sure the configure script detects our GhostScript install correctly: | ||
| + | |||
| + | $> export PATH=$PATH: | ||
| + | |||
| + | Now we can configure ImageMagick. Disable the Perl bindings and Magick++ if you don't need them. I had to disable the the TrueTypeFont support aswell to avoid a compile error. Configure, compile and install: | ||
| + | |||
| + | $> ./configure --with-ttf=no --without-magick-plus-plus --without-perl --prefix=$HOME/ | ||
| + | $> make | ||
| + | $> make install | ||
| + | |||
| + | That's it -- ImageMagick is ready. | ||
| + | |||
| + | If you want to use the tool from within PHP and it complains about not finding gs use the following in your script to fix the PATH: | ||
| + | |||
| + | <code php> | ||
| + | putenv(' | ||
| + | </ | ||
