从雪豹更新到狮子后,rmagick 不起作用

发布于 2024-11-26 16:38:52 字数 1228 浏览 8 评论 0原文

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

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

伤痕我心 2024-12-03 16:38:52

知道了!头痛了两天后我想通了。最后我想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

关于从前 2024-12-03 16:38:52

删除 imagemagick 并重新安装:

brew install imagemagick --disable-openmp

.. 然后继续。

我从

Stack Overflow - Mac Rmagick wont install with Xcode 4.2< /a>

Remove imagemagick and reinstall it with:

brew install imagemagick --disable-openmp

.. and go on.

I took this solution from

Stack Overflow - Mac Rmagick wont install with Xcode 4.2

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文