我刚刚获得了一个新的macbook pro并尝试设置我的开发环境.我从app商店下载了xcode 4.2并安装了它,之后我安装了自制软件和RVM.ImageMagick,readline,ruby 1.9.3-head全部安装完美,直到我运行捆绑更新,试图安装rmagick.
经过很长一段时间的调查,我得出结论,它找不到libgomp.
输出来自gem install rmagick:
$ gem install rmagick
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/Users/dhiemstra/.rvm/rubies/ruby-1.9.3-head/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
extconf.rb:128: Use RbConfig instead of obsolete and deprecated Config.
checking for clang... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.4.9... yes
checking for HDRI disabled version of ImageMagick... yes
checking for stdint.h... *** extconf.rb failed …Run Code Online (Sandbox Code Playgroud) 我跟着安装了RMagick for OSX: http ://rmagick.rubyforge.org/install-faq.html#osx
我已经完成了John Maddux的Imagemagick安装(在不使用MacPorts的情况下在OSX 上安装ImageMagick的解决方案)
这是我的终端窗口:
Suebphatt:~ suebphattleelertphong$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
Suebphatt:~ suebphattleelertphong$ rails -v
Rails 3.0.3
Suebphatt:~ suebphattleelertphong$ gem -v
1.3.7
Suebphatt:~ suebphattleelertphong$ gem install rmagick
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
Gem files will remain installed …Run Code Online (Sandbox Code Playgroud)