0
我想,當我打寶石安裝機械化,幾秒鐘後,我的Mac操作系統上安裝mechainze寶石,但是,POP操作了:奇怪的錯誤安裝在Mac OS mechainze寶石時
Building native extensions. This could take a while...
ERROR: Error installing mechanize:
ERROR: Failed to build gem native extension.
/Users/Tim/.rvm/rubies/ruby-1.9.3-p545/bin/ruby extconf.rb
checking for main() in -lstdc++... yes
checking for ruby/encoding.h... yes
creating Makefile
make clean
make
compiling unf.cc
g++: error: unrecognized command line option '-Wshorten-64-to-32'
make: *** [unf.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/Tim/.rvm/gems/[email protected]/gems/unf_ext-0.0.6 for inspection.
Results logged to /Users/Tim/.rvm/gems/[email protected]/extensions/x86_64-darwin-12/1.9.1/unf_ext-0.0.6/gem_make.out
我不知道爲什麼會發生這種情況,有沒有人願意幫忙?
謝謝! PS:我發現實際上很久以前我把默認編譯器設置爲g ++而不是clang。這很重要嗎?