Illegal Instruction 4

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
willynilly
Posts: 1
Joined: 2012-08-09T13:35:03-07:00
Authentication code: 67789

Illegal Instruction 4

Post 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.
rutski89
Posts: 1
Joined: 2012-08-11T13:35:54-07:00
Authentication code: 67789

Re: Illegal Instruction 4

Post 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? :-/
pixelpie
Posts: 1
Joined: 2012-08-15T10:35:22-07:00
Authentication code: 67789

Re: Illegal Instruction 4

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Illegal Instruction 4

Post 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.
mamburu
Posts: 1
Joined: 2012-09-09T13:13:01-07:00
Authentication code: 67789

Re: Illegal Instruction 4

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Illegal Instruction 4

Post 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
Post Reply