Install ImageMagick for paperclip gem on Mac OS 10.5.8

I try to install ImageMagick in one week. The documentation I found on the network is inconsistent, and I have not found a suitable way to install and configure it. Just like I'm not a UNIX expert, so I don’t know how to use Enviroments paths correctly.

My software versions: SO: Mac OS 10.5.8, ImageMagick v6.7.7, Paperclip v3.1.2, Rails v3.0

Some tips:

File ~ / .profile:

export PATH=$HOME/Users/mac_name/.gem/ruby/1.8/bin:$PATH export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" export MAGICK_HOME="/Users/mac_name/ImageMagick-6.7.7" export DYLD_LIBRARY_PATH=$MAGICK_HOME/lib/ export DISPLAY=:0 

I install ImageMagick with a setup script. Its location is in: Users / mac_name / ImageMagick-6.7.7 Now I think it is installed, but the clip does not start. I still have the error: "The photo could not start the identify command. Install ImageMagick."

 $ echo $MAGICK_HOME 

it returns: "/Users/mac_name/Users/mac_name/ImageMagick-6.7.7" (I don't know why "Users / mac_name" is repeated)

I need help. Any other stone that does not need ImageMagick? I am completely upset by this ...

+4
source share
2 answers

I suggest you to install homebrew , and then install imagemagick, using it.

To install Homebrew, check this box. Basically just copy it to your terminal:

  /usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)" 

Now to install imagemagick run the following command:

  brew install imagemagick 

Lemme knows if you have any problems.

+12
source

Mohit has a great answer, but the link seems broken now, so check the Homepage of the homepage http://brew.sh or the Github page at https://github.com/mxcl/homebrew

Both have good installation instructions.

0
source

All Articles