configure: error: C compiler cannot create executables

If you want to test your configuration readiness for ImageMagick on your Mac and got this error. You can try this:

You can compile a small C example with the -m32 flag (the flag is probably not necessary but it’s what I tried).


// Minimal C example
#include
int main()
{
printf("This works\n");
return 0;
}

Compiling:
gcc -m32 -o m32test m32test.c

Then you’ll need to agree to the license agreement of Apple. After doing this, you’ll be good at configuration readiness checking.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply