|
|
|
| PhotoPost ImageMagick Installation - Linux/Unix Based |
|
|
Please see the requirements page for a detailed list of PhotoPost's
software requirements. Many web servers already have ImageMagick installed, and many web hosts are willing to install ImageMagick for
you (so be sure to check). If this is beyond your capabilities, you
should consider our PhotoPost Advanced Installation Service.
Note: If you do not have root/superuser access (i.e.- you're on a virtual server)
you can still install ImageMagick! Follow our non-root ImageMagick installation
procedure to
do so. Most web hosts will install the modules below for you, with
ImageMagick being the exception.
The instructions below apply to Unix and Linux based systems only. For those running PhotoPost PHP on Win2k/WinNT servers,
Installing ImageMagick for Windows is a piece of cake. Simply download the ImageMagick windows binaries, uncompress to a folder on
your server, and configure config-inc.php to point to the path to
mogrify.exe: Download
ImageMagick Windows Binary.
First, if you already tried to install ImageMagick unsuccessfully, you need to uninstall it for this to work properly
(trust me,
I learned this after installing it 15 times over an old installation). To uninstall ImageMagick, go to your ImageMagick
source directory and type:
make uninstall
1. ImageMagick needs a few support libraries to install properly. You can check for the header files in /usr/include and
/usr/local/include to see if each library is installed. If you don't find one or all of them then they will need to be
installed.
tiff.h
png.h
jpeglib.h
2. Download the following files and FTP them (via binary mode) to a directory on your server (in my case, I chose
/home/techimo/imagemagick - that's a temporary directory for the source files):
ImageMagick-6.2.3-0.tar.gz
jpegsrc.v6b.tar.gz
libpng-1.0.6.tar.gz
libtiff-lzw-compression-kit-1.1.tar.gz
tiff-v3.5.5.tar.gz
(If you want to download the files directly to your server instead of downloading and ftping, use these
commands instead):
$ wget http://www.photopost.com/ImageMagick-6.2.3-0.tar.gz
$ wget http://www.photopost.com/jpegsrc.v6b.tar.gz
$ wget http://www.photopost.com/libpng-1.0.6.tar.gz
$ wget http://www.photopost.com/libtiff-lzw-compression-kit-1.1.tar.gz
$ wget http://www.photopost.com/tiff-v3.5.5.tar.gz
Once the files are in your temporary imagemagick directory, uncompress them:
$ gunzip *.gz
Then unpack everything:
$ tar -xvf ImageMagick-6.2.3-0.tar
$ tar -xvf libpng-1.0.6.tar
$ tar -xvf libtiff-lzw-compression-kit-1.1.tar
$ tar -xvf jpegsrc.v6b.tar
$ tar -xvf tiff-v3.5.5.tar
then:
$ cd libpng-1.0.6
$ cd scripts
Now do an "ls" and look for the makefile that matches your operating system. If you can't find one for your OS,
makefile.gcc should work.
Copy the makefile to the libpng-1.0.6 directory:
$ cp makefile.linux ../makefile
In the line above, I used makefile.linux, but you should use your appropriate makefile. Continue:
$ cd ..
$ make
$ make install
$ cd ..
$ cd jpeg-6b
$ ./configure --enable-shared
$ make
$ make install
$ cd ..
(For this next part, if you don't have "pico", you can use "vi" instead)
$ cd libtiff-lzw-compression-kit
$ pico Makefile
change
TIFF_SRC_DIR = /tmp/libtiff
to
TIFF_SRC_DIR = ../tiff-v3.5.5
Then save and exit the Editor
$ make install
$ cd ..
$ cd tiff-v3.5.5
$ ./configure
Answer yes to TIFF Configuration Parameters
$ make
$ make install
$ cd ..
$ cd ImageMagick-6.2.3
$ ./configure --enable-lzw=yes --enable-shared=yes --disable-static --without-perl
$ make
$ make install
That's it! If you have difficulty, you may wish to purchase our Advanced
Installation Service.
|