【问题标题】:rmagick doesn't work after update from snow leopard to lion从雪豹更新到狮子后,rmagick 不起作用
【发布时间】:2011-07-27 09:55:02
【问题描述】:

我从雪豹升级(不是新安装)到狮子。现在 rmagick 不起作用。我更新了 Xcode,尝试重新安装 gem(这里提到:rmagick and OS X Lion),从 rvm 中删除了 1.9.2 ruby​​,更新了 rvm 并重新安装了 ruby​​ 1.9.2 ans 仍然得到以下错误:

完整跟踪请参阅:http://pastie.org/2278596

mkmf.rb:368:in `try_do': The complier failed to generate an executable file. (RuntimeError)
You have to install development tools first.


$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.0.0]

$ rvm --version
rvm 1.6.30 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]

$ la /Developer/SDKs/
total 0
drwxr-xr-x   4 root  wheel  136 25 Jul 14:39 .
drwxrwxr-x  15 root  admin  510 25 Jul 14:45 ..
drwxr-xr-x   7 root  wheel  238 13 Jun 20:21 MacOSX10.6.sdk
drwxr-xr-x   7 root  wheel  238  4 Jul 02:18 MacOSX10.7.sdk

mkmf.log:http://pastie.org/2278612

有人有解决办法吗?

谢谢!

【问题讨论】:

  • 我遇到了同样的错误!

标签: ruby-on-rails xcode ruby-on-rails-3 bundle rmagick


【解决方案1】:

知道了! 2天后头痛我想通了。最后我觉得Imagemagick 和homebrew 的问题在哪里。我完全删除了自制软件并重新安装了 ghostscript 和 imagemagick。

就是这样

【讨论】:

  • 我最终不得不自己通过自制软件重新安装 imagemagick;很高兴你知道了!
【解决方案2】:

删除 imagemagick 并重新安装:

brew install imagemagick --disable-openmp

.. 继续。

这个解决方案来自

Stack Overflow - Mac Rmagick wont install with Xcode 4.2

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-08
    相关资源
    最近更新 更多