cho*_*bin 6 macos mongoid ruby-on-rails-3
OSX Lion,Xcode 4.2,GCC 4.2
我在安装bson_ext 1.4.1时遇到以下错误
Building native extensions. This could take a while...
ERROR: Error installing bson_ext:
ERROR: Failed to build gem native extension.
/Users/user/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
checking for asprintf()... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Run Code Online (Sandbox Code Playgroud)
我刚刚遇到了这个。您应该查看 mkmf.log 文件。很可能,它在错误的位置寻找 GCC。我不得不:
cd /usr/bin
sudo ln -s i686-apple-darwin11-llvm-gcc-4.2 i686-apple-darwin11-gcc-4.2.1
Run Code Online (Sandbox Code Playgroud)
一切都很好。
| 归档时间: |
|
| 查看次数: |
2410 次 |
| 最近记录: |