gem 安装 unf_ext -v '0.0.6' 在 Mountain Lion Mac 上失败
gem install unf_ext -v '0.0.6' fails on Mountain Lion mac
这是我运行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.
看起来缺少 g++ 4.6。
which g++
返回/usr/bin/g++
但which g++-4.6
什么也没返回。
我肯定安装了Xcode开发人员工具。我真的不知道该怎么办。如何使捆绑包安装成功?
使用 jruby 安装正常。我使用的 ree 版本似乎有问题。
相关文章:
- 在Mac OS X Mountain Lion(或更高版本)和Linux上使用X11/Xlib.h
- Qt 5.0 and c++11 with OSX Mountain Lion
- gem 安装 unf_ext -v '0.0.6' 在 Mountain Lion Mac 上失败
- 编译 PyGAMMA Mac Lion:g++ 找不到标准的 C++ 头文件(字符串/iostream..)
- 为什么当我键入名称时我的可执行文件不会运行?(Mac OS X Mountain Lion)Mac OS X 10.8.
- 如何在Mac OS X Mountain Lio上编译libnoise
- OpenMP Mac OSX Lion c++ 链接器错误 体系结构的未定义符号 x86_64:"_omp_get_thread_num"
- Macports GCC 4.8无法链接OSX Lion上的c++库
- Using g++ on OSX Lion, ld: unknown option: -no_compact_unwin
- NPM 模块画布需要的在 OSX Mountain Lion 上安装 c++ 库的过程是什么?
- Simplecrypt让我的QT应用程序在OS X Mountain Lion上崩溃,但在Windows上完美运行
- 安装 opencv 时出错,我正在使用 lion 和 xcode4.4
- 带有 Mountain Lion 的 g++ 是否支持 -msse4.2
- ::CFBundleLoadExecutable 无法加载已编译的捆绑包(Mountain Lion,Xcode 4.6
- HMAC on Mountain lion OSX 10.8.3 EXC_CRASH
- SublimeClang OSX Mountain Lion C++11
- 为什么c++对象映射在Mavericks和Mountain Lion上不同?
- MacOS Mountain Lion上架构x86_64的未定义符号
- 是否可以在Mountain Lion上的当前Xcode 4.6.1工具链中启用_LIBCPP_DEBUG2
- Mountain Lion上的Mex文件:显式实例化错误