【发布时间】:2013-03-15 10:48:26
【问题描述】:
我第一次尝试在我的 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 版本?尝试从 App Store 安装最新版本的 XCode(然后安装开发者工具 .. Xcode / File / Preferences / Downloads / 点击命令行工具旁边的“安装”)
-
如果你使用的是 OSX 10.8,你可以试试this guide
标签: ruby-on-rails macos installation rvm