ruby-on-rails - 从雪豹更新到狮子后,rmagick 不起作用

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

我从雪豹升级(不是新安装)到狮子。现在 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/

相关文章:

ios - xib 和代码之间具有不同高度的 UIView

ios - NSDate 的时间间隔

ruby-on-rails - Rails 中的多字段搜索

ruby-on-rails - 由于 "Pry failed to get user input using ` Readline`,无法在终端中运行 rails c。”

ruby-on-rails - 使用不同的文件名附加 ActiveStorage blob

iOS 崩溃报告服务

ruby-on-rails - 如何构建搜索功能来搜索 GitHub 等多个模型?

ruby-on-rails - Authlogic - 登录后将用户返回到预期页面

ruby-on-rails - 如何为 Windows 上的 Ruby on Rails 应用程序部署创建一体化安装程序?

ruby-on-rails - Rails - 非阻塞 HTTP 请求?