1
我想在我的Mac上第一次在rails上安裝Ruby。在Mac上安裝Ruby on Rails失敗
我跑我的終端窗口下面的命令 -
rvm install 2.0.0
,但我不斷收到此錯誤。
Error running './configure --prefix=/Users/tusharmathur/.rvm/rubies/ruby-2.0.0-p0 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libxml2:/usr/local/opt/libxslt:/usr/local/opt/libksba:/usr/local/opt/openssl:/usr/local/opt/sqlite --disable-install-doc --without-tcl --without-tk --enable-shared',
please read /Users/tusharmathur/.rvm/log/ruby-2.0.0-p0/configure.log
There has been an error while running configure. Halting the installation.
只見configure.log也,這裏是信息 -
[2013-03-15 01:11:06] ./configure
configure: WARNING: unrecognized options: --without-tcl, --without-tk
checking build system type... i386-apple-darwin12.2.1
checking host system type... i386-apple-darwin12.2.1
checking target system type... i386-apple-darwin12.2.1
checking whether the C compiler works... no
configure: error: in `/Users/tusharmathur/.rvm/src/ruby-2.0.0-p0':
configure: error: C compiler cannot create executables
See `config.log' for more details
您使用的是什麼OSX版本?嘗試從應用程序商店安裝最新版本的XCode(然後安裝開發人員工具.. Xcode /文件/首選項/下載/單擊命令行工具旁邊的「安裝」) – Jamsi 2013-03-15 11:30:30
如果您使用的是OSX 10.8,則可以嘗試[本指南](http://simonewebdesign.it/blog/how-to-setup-osx-for-ruby-on-rails/) – Simone 2013-03-15 11:50:37