Compiling ImageMagick as 64bit under OS X?

前端 未结 2 1138
时光说笑
时光说笑 2021-01-26 06:13

I\'m trying to install moddims on OS X (see previous question), an Apache module with a dependency on ImageMagick.

As far as I can tell, the OS X Apache is compiled as 6

2条回答
  •  离开以前
    2021-01-26 06:17

    You need to add LDFLAGS="-arch x86_64" CXXFLAGS="-arch x86_64" to your ./configure calls and it should compile fine.

    That said I think you'll end up with a half-working ImageMagick install unless you also make sure libjpeg and libpng are compiled with 64bits as well.

    You might try starting httpd using the i386 (32bit) binary instead by adding /usr/bin/arch -i386 to /System/Library/LaunchDaemons/org.apache.httpd.plist. Or you can use lipo to convert /usr/sbin/httpd to a i386 only binary.

提交回复
热议问题