HostOnNet Blog

Installing ImageMagick on FreeBSD 5.4 Server

Looking for Linux Server Admin or WordPress Expert? We can help.

ImageMagick allows PHP, Perl and other scripts to manipulate images.

On FreeBSD server, ImageMagick can be installed easily from ports. Before installing any software from ports, make sure ports tree on your server is uptodate.

# cd /usr/ports
# make fetch index

You can also uptate ports tree with cvsup. It is better to update ports tree everyday with cron job, so your ports tree will always uptodate.

Next we have to find where ImageMagick is located in ports tree.

# cd /usr/ports
# make search name=ImageMagick
Port: ImageMagick-nox11-6.2.2.1
Path: /usr/ports/graphics/ImageMagick
Info: Image processing tools
Maint: [email protected]
B-deps: freetype2-2.1.10_1 gettext-0.14.5 ghostscript-gnu-nox11-7.07_13 gmake-3.80_2 gsfonts-8.11_2 jasper-1.701.0 jbigkit-1.6 jpeg-6b_3 lcms-1.14,1 libfpx-1.2.0.12 libiconv-1.9.2_1 libltdl-1.5.20 libtool-1.5.20 libxml2-2.6.22 perl-5.8.7 pkgconfig-0.17.2 png-1.2.8_2 tiff-3.7.4
R-deps: freetype2-2.1.10_1 ghostscript-gnu-nox11-7.07_13 gsfonts-8.11_2 jasper-1.701.0 jbigkit-1.6 jpeg-6b_3 lcms-1.14,1 libfpx-1.2.0.12 libiconv-1.9.2_1 libltdl-1.5.20 libxml2-2.6.22 perl-5.8.7 pkgconfig-0.17.2 png-1.2.8_2 tiff-3.7.4
WWW: http://www.ImageMagick.org/

#

Now we know ImageMagick is located in /usr/ports/graphics/ImageMagick

To install ImageMagick

# cd /usr/ports/graphics/ImageMagick
# make
# make install

Now Imagemagick is installed on your server.

Its time to clean temporary file and source code.

# make clean

Now you need to rehash, so that freebsd shell will find new installed program

# rehash

To find the location of ImageMagick installed, run

# which convert
/usr/local/bin/convert
#

Now lets run convert

# convert
Version: ImageMagick 6.2.2 11/04/05 Q16 file:/usr/share/ImageMagick-6.2.2/doc/index.html
Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC

Usage: convert [options …] file [ [options …] file …] [options …] file

Executing “convert” will show the help.

Posted in FreeBSD. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.