我想安装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