我想安裝Ruby 1.9.2,以便我可以在Ruby中進行在線課程。我剛剛通過OSX升級到Mavericks(10.9.1),以便我可以安裝最新版本的XCode(5.0.2),現在也安裝了它。無法在更新的OS X小牛上安裝Ruby
我確定我必須在這裏丟失一些基本的東西。任何人都可以看看我的終端安裝日誌和錯誤消息在這裏幫助我嗎?我很欣賞任何想法。
dave-morans-macbook:~ davemoran$ rvm install 1.9.2
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.9/x86_64/ruby-1.9.2-p320.
It is not possible to build movable binaries for rubies 1.8-1.9.2, but you can do it for your system only.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Installing macports...
Error running 'requirements_osx_port_install_port',
showing last 15 lines of /Users/davemoran/.rvm/log/1389714845_ruby-1.9.2-p320/port_install.log
checking build system type... i386-apple-darwin13.0.0
checking host system type... i386-apple-darwin13.0.0
checking target system type... i386-apple-darwin13.0.0
checking MacPorts version... 2.2.1
checking for sw_vers... /usr/bin/sw_vers
checking for defaults... /usr/bin/defaults
checking for xcode-select... /usr/bin/xcode-select
checking Mac OS X version... 10.9.1
checking Xcode location... /Applications/Xcode.app/Contents/Developer
checking Xcode version... 5.0.2
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/Users/davemoran/.rvm/src/MacPorts-2.2.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
Requirements installation failed with status: 77.
我試着像這樣的命令輸出:「RVM安裝1.9.2 --with-GCC = GCC-4.2」 ,並得到這樣的:「你要求的建築'gcc-4.2',但它不在你的路上。「我再次猜測我可能錯誤地輸入了命令 – user3194689