我从雪豹升级(不是新安装)到狮子。现在 rmagick 不起作用了。我更新了 Xcode,尝试重新安装 gem(如此处所述: rmagick and OS X Lion ),从 rvm 中删除了 1.9.2 ruby,更新了 rvm 并重新安装了 ruby 1.9.2,但仍然出现以下错误:
完整跟踪请参阅: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 (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6710061e090202140200120e0927000a060e0b4904080a" rel="noreferrer noopener nofollow">[email protected]</a>) [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
有人有解决办法吗?
谢谢!
最佳答案
明白了!头痛了两天后我想通了。最后我想Imagemagick和homebrew的问题出在哪里。我完全删除了 homebrew 并重新安装了 Ghostscript 和 imagemagick。
就是这样
关于ruby-on-rails - 从雪豹更新到狮子后,rmagick 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6842458/