Apr 7, 2009

Install ImageMagick for 64 bit compilation on x86_64 architecture machine(eg intel quad core xeon)

Step 1:
-------
Download the ImageMagick source distribution and verify the distribution against its message digest.

Step 2:
-------
Unpack and change into the top-level ImageMagick directory:

> tar xvfz ImageMagick-6.5.1-0.tar.gz

> cd ImageMagick-6.5.1


Step 3:
-------
Choose an architecture and set your CFLAGS environment variable. Here we set CFLAGS for an Intel build:

> export CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.5.sdk/ -arch x86_64 -I/sw/include/"

(For safety
> export CXXFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.5.sdk/ -arch x86_64 -I/sw/include/")


Step 4:
-------
Set your LDFLAGS environment variable to:

> export LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk/,-L/sw/lib/"


Step 5:
-------
Build ImageMagick:
> make


Step 6:
-------
Install ImageMagick:
> sudo make install

You are fine to go :).

For 32 bit installation try this:
Normal Installation
For advanced (the one was done here) installation:
Advanced installation

3 comments:

Anonymous said...
This comment has been removed by a blog administrator.
Md. Alimoor Reza said...

@Term Papers: Thanks for letting me know. This really helps me too when I reinstall these. I will keep updating.

Unknown said...

Wow, valuable information. thanks for sharing with us. I'm a seo analyst. I prepared some stuff about seo. you can check it here. keyword competition analysis

Carlo Cipolla's Laws of Stupidity

    "By creating a graph of Cipolla's two factors, we obtain four groups of people. Helpless people contribute to society but are...