ImageMagick, MacPorts and MAMP

After installing ImageMagick from MacPorts, I ran into the following error in my MAMP Apache error log when trying to run PHP code that resized images:

Symbol not found: __cg_jpeg_resync_to_restart

To solve this, edit /Applications/MAMP/Library/bin/envvars to read:

DYLD_LIBRARY_PATH="/Applications/MAMP/Library/lib:$DYLD_LIBRARY_PATH"
export DYLD_FALLBACK_LIBRARY_PATH=/Applications/MAMP/Library/lib

[ Submitted by John on Wed, 2008-09-03 13:32. | | ]

ImageMagick and MAMP

That basically worked for me.

I had to add the following to the top of the doc:
#!/opt/local/bin/perl

and changed
export DYLD_FALLBACK_LIBRARY_PATH=/Applications/MAMP/Library/lib

to read:

export DYLD_FALLBACK_LIBRARY_PATH="/Applications/MAMP/Library/lib"

[ Submitted by Ken (not verified) on Wed, 2008-10-08 12:28. | ]

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question tests your humanity.