|
Saturday, February 16. 2008 Getting Imagemagick (and more) to work with MAMP on OS XPosted by Bryan Rite in Computers, TutorialsComments (6) | Trackbacks (0)
I've been using MAMP on my macbook for doing my web development at home and can't say enough good things about it. Unfortunately I had to start using some binaries not included with MAMP, ImageMagick for example.
Installing ImageMagick via MacPorts is simple enough: sudo port install ImageMagickbut trying to run it via the MAMP stack gives you the apache error: or something similar. I was able to get it to go, but you need to break the sandbox, so it may not be a viable solution for everyone. Once ImageMagick is installed, head to: /Applications/MAMP/Library/bin/envvarsHere we want to comment out the two lines: and add the line: export PATH="$PATH:/opt/local/bin"What we're doing is using our systems default DYLD Library path, not the sandboxed one, and exporting our MacPorts bin directory into the sandbox PATH, so it can execute your ImageMagick bins like convert without specifying the full path to it. Presto! I'm not sure of the full consequences of doing this but I haven't run into any problems yet and nothing seems to break as a result. Always backup the original files tho! |
Recent Posts Black Tusk Hike Photos
July 13 2008 Getting Imagemagick (and more) to work with MAMP on OS X February 16 2008 Select DISTINCT from DataSet January 30 2008 Mega Burgers Pt 3: Setting Short Term Goals January 23 2008 Mega Burgers Pt 2: The Trifecta of Obesity January 22 2008 Quicksearch Interesting Links Blog Categories Blog Archives |
Of course, I don't understand this much, so if it takes everything else down, I'll be bummed, but c'est la guerre.
I have to go update a whole slew of forum posts now...
Also of note, to anyone else out there: if you're like me and installed Imagemagick and MAMP in order to get tex to show equations, you'll also need to make sure that gs can run under httpd and for that you'll need to make sure that MAMP has usr/local/bin. So just add on to Bryan's path like so:
export PATH="$PATH:/opt/local/bin:/usr/local/bin"