且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Mac OS X 上安装 Rmagick 时出错

更新时间:2022-11-25 19:28:22

我强烈建议您尝试使用 homebrew,它是 macports 的绝佳替代品:

I would strongly recommend you try homebrew, which is a great replacement for macports:

安装 homebrew 后,您应该能够非常轻松地安装 imagemagick 和 rmagick:

Once you get homebrew installed, you should be able to install imagemagick and rmagick very easily:

brew install imagemagick     # will take a while!
gem install rmagick

更多信息在这里:

http://www.codedrop.ca/blog/archives/214

这里:

http://weblogs.manas.com.ar/mverzilli/2010/05/19/install-the-rmagick-gem-in-the-painless-way-with-homebrewinstall-the-rmagick-gem-in-the-painless-way-with-homebrewinstall-the-rmagick-gem-in-the-painless-way-with-homebrewinstall-the-rmagick-gem-in/

更新:(感谢 JJD这个答案)

UPDATE: (thanks to JJD and this answer)

如果您在安装辣椒项目时遇到问题,请尝试不使用 openpmp 进行安装:

Try to install without openpmp if you are having trouble with a chiliproject install:

brew install imagemagick --disable-openmp

更新 X2:(感谢 Ramon Araujo评论)

UPDATE X2: (thanks to Ramon Araujo's comment)

如果你之前用 homebrew 安装过 imagemagick,你必须在再次安装之前取消链接:

If you have previously installed imagemagick with homebrew, you will have to unlink it before you install again:

brew unlink imagemagick