从雪豹更新到狮子后,rmagick 不起作用
我从雪豹升级(不是新安装)到狮子。现在 rmagick 不起作用了。我更新了 Xcode,尝试重新安装 gem(如此处所述:rmagick 和 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 ([email protected]) [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
有人有解决方案吗?
谢谢!
I upgraded (not a new install) from snow leopard to lion. Now rmagick doesn't work. I updated Xcode, tried to reinstall the gem (as mentioned here: rmagick and OS X Lion), removed the 1.9.2 ruby from rvm, updated rvm and reinstalled the ruby 1.9.2 ans still get the following error:
Full trace see: 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 ([email protected]) [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
Does anyone have a solution?
Thx!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
知道了!头痛了两天后我想通了。最后我想Imagemagick和homebrew的问题出在哪里。我完全删除了自制软件并重新安装了 Ghostscript 和 ImageMagick。
就是这样
Got it! After 2 days headache I figured out. Finally I think Imagemagick and homebrew where the problem. I removed homebrew completely and reinstalled ghostscript and imagemagick.
that's it
删除 imagemagick 并重新安装:
.. 然后继续。
我从
Stack Overflow - Mac Rmagick wont install with Xcode 4.2< /a>
Remove imagemagick and reinstall it with:
.. and go on.
I took this solution from
Stack Overflow - Mac Rmagick wont install with Xcode 4.2