[英]gem install unf_ext -v '0.0.6' fails on Mountain Lion mac
This is the error I get when I run bundle install
这是我运行
bundle install
时遇到的错误
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/sam/.rvm/rubies/ree-1.8.7-2012.02/bin/ruby extconf.rb
checking for main() in -lstdc++... yes
checking for ruby/encoding.h... no
creating Makefile
CXX is automatically set to g++-4.6
make
g++-4.6 -I. -I/opt/local/include -I. -I/Users/sam/.rvm/rubies/ree-1.8.7-2012.02/lib/ruby/1.8/i686-darwin12.5.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -g -O2 -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl098/include -fno-common -pipe -fno-common -c unf.cc
make: g++-4.6: No such file or directory
make: *** [unf.o] Error 1
Gem files will remain installed in /Users/sam/.rvm/gems/ree-1.8.7-2012.02@global/gems/unf_ext-0.0.6 for inspection.
Results logged to /Users/sam/.rvm/gems/ree-1.8.7-2012.02@global/gems/unf_ext-0.0.6/ext/unf_ext/gem_make.out
An error occurred while installing unf_ext (0.0.6), and Bundler cannot continue.
Make sure that `gem install unf_ext -v '0.0.6'` succeeds before bundling.
It looks like g++ 4.6 is missing. 似乎缺少g ++ 4.6。
which g++
returns /usr/bin/g++
but which g++-4.6
returns nothing. which g++
返回/usr/bin/g++
但是which g++-4.6
返回任何东西。
I definitely have Xcode Developer Tools installed. 我肯定已经安装了Xcode开发人员工具。 I'm not really sure what to do.
我不太确定该怎么办。 How can I get bundle install to succeed?
如何获得捆绑软件安装成功?
Installed fine using jruby. 使用jruby安装良好。 Seems to be a problem with the ree version I was using.
我使用的ree版本似乎有问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.