Page 1 of 1

Illegal Instruction 4

Posted: 2012-08-09T13:42:10-07:00
by willynilly
I tried installing ImageMagick-x86_64-apple-darwin12.0.0.tar.gz on Mac OS X 10.7.4
so that I can use it with MAMP (I was following the instructions at http://www.maratz.com/blog/archives/201 ... with-mamp/)

I updated my .bash_profile with

Code: Select all

export MAGICK_HOME="/Applications/MAMP/bin/ImageMagick/ImageMagick-6.7.8"
export PATH="$MAGICK_HOME/bin:$PATH"
export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib"
Then I went to the following directory:

/Applications/MAMP/bin/ImageMagick/ImageMagick-6.7.8


Finally, when try to run any of the following commands to test my installation:

Code: Select all

convert logo: logo.gif
identify logo.gif
I get the following error:

Code: Select all

Illegal instruction: 4
What is going on?

How can I fix this?

Thank you for your help.

Re: Illegal Instruction 4

Posted: 2012-08-11T13:38:05-07:00
by rutski89
I'm getting the same thing on my Lion machine (straight up Lion, not Mountain Lion). I rebooted to see if it would fix things, and it did actually make the "Illegal Instruction 4" error go away, but now I'm getting a "Segmentation Fault: 11" error instead. This is happening with convert, mogrify, and apparently every other binary as well. So basically, I can't use imagemagick.

What the heck is going on? :-/

Re: Illegal Instruction 4

Posted: 2012-08-15T10:40:37-07:00
by pixelpie
Hi there,
I am getting the exact same issue here.
I tried with Lion and I get the error
Segmentation fault: 11
I also have another machine with Snow Leopard installed and I get the error
Illegal Instruction
.

Any info with this issue will be appreciated.

Cheers,
Alberto

Re: Illegal Instruction 4

Posted: 2012-08-15T10:55:19-07:00
by fmw42
I am on Snow Leopard and have no problems. I installed all my delegates from MacPorts, but install IM manually from source so I can keep up with the latest version of IM. I have never encountered that problem, but am not using the binary.

Re: Illegal Instruction 4

Posted: 2012-09-09T13:17:53-07:00
by mamburu
Howdy. I've had the issue with 'Illegal Instruction 4' on a personal project. I'm on Lion and have recently upgraded to Xcode 4.4.1 which brought with it SDK 10.8. Turned out i was using 'macosx' as SDKROOT, which compiled everything targeting the latest SDK (i.e. 10.8 ).
Forcing the project to use 10.7 SDK solved this issue for me.
Hope that helps.

Re: Illegal Instruction 4

Posted: 2012-09-09T13:33:17-07:00
by fmw42
The current binary is only for Mountain Lion. see http://www.imagemagick.org/script/binar ... php#macosx

For older Mac OSX systems, you will need to install via source or by using MacPorts, etc. see http://www.imagemagick.org/script/advan ... php#macosx