我已经安装了 rbenv 并且正在成功运行
红宝石 2.0.0dev (2013-02-08 主干 39161) [x86_64-darwin12.3.0]
如终端使用“ruby -v”所示
但是,在尝试使用“ruby-build”或“rbenv install”添加任何 jruby-1.7.x 时,它会得到:
BUILD FAILED
Inspect or clean up the working tree at /var/folders/b2/1nykqqwd3934197qf_3vm1y80000gn/T/ruby-build.20130423121331.57961
Results logged to /var/folders/b2/1nykqqwd3934197qf_3vm1y80000gn/T/ruby-build.20130423121331.57961.log
Last 10 log lines:
rm -f build/unix/Darwin/argparser.o.d
g++ -O2 -Wall -I'/Users/donaldtyson/.rbenv/versions/jruby-1.7.1/include' -c argparser.cpp -MMD -MP -MF build/unix/Darwin/argparser.o.d -o build/unix/Darwin/argparser.o
make[2]: g++: Bad CPU type in executable
make[2]: *** [build/unix/Darwin/argparser.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
Gem files will remain installed in /Users/donaldtyson/.rbenv/versions/jruby-1.7.1/lib/ruby/gems/shared/gems/jruby-launcher-1.0.15-java for inspection.
Results logged to /Users/donaldtyson/.rbenv/versions/jruby-1.7.1/lib/ruby/gems/shared/gems/jruby-launcher-1.0.15-java/./gem_make.out
我怀疑我的 Java 或 GCC 安装有问题