0
我是新來的Ruby,並試圖用以下命令安裝OJ寶石安裝紅寶石OJ寶石:問題上OSX 10.9.2
sudo gem install oj -v '2.1.6'
不幸的是我收到以下錯誤。這是由於使用Ruby 2.0嗎?有沒有解決方法?
ERROR: Error installing oj:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
>>>>> Creating Makefile for ruby version 2.0.0 on universal.x86_64-darwin13 <<<<<
creating Makefile
make "DESTDIR="
compiling cache8.c
compiling circarray.c
compiling compat.c
compiling dump.c
dump.c:165:1: warning: unused function 'ulong2str' [-Wunused-function]
ulong2str(uint32_t num, char *end) {
^
1 warning generated.
compiling err.c
compiling fast.c
fast.c:151:1: warning: unused function 'next_white' [-Wunused-function]
next_white(ParseInfo pi) {
^
1 warning generated.
compiling hash.c
compiling hash_test.c
compiling object.c
compiling odd.c
compiling oj.c
compiling parse.c
compiling resolve.c
compiling saj.c
saj.c:130:1: warning: unused function 'next_white' [-Wunused-function]
next_white(ParseInfo pi) {
^
1 warning generated.
compiling scp.c
compiling strict.c
compiling val_stack.c
linking shared-object oj.bundle
clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
make: *** [oj.bundle] Error 1
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/oj-2.1.6 for inspection.
該版本可能不兼容小牛。你可以使用最新的2.6.0版本或更接近它,看看你是否有問題? –
[Ruby Gem install Json在Mavericks和Xcode 5.1上失敗 - 未知參數:'-multiply \ _definedsuppress'](http://stackoverflow.com/questions/22352838/ruby-gem-install-json-fails-on -mavericks-和Xcode的-5-1-未知參數,MUL) – Nakilon