繁体   English   中英

无法在Mac OSX 10.6.8 Snow Leopard上安装Ruby

[英]Trouble Installing Ruby on Mac OSX 10.6.8 Snow Leopard

我刚刚安装了Ruby Version Manager 1.10.2并试图安装Ruby 1.9.2并且我收到以下错误:

ayman-al-abdullahs-macbook:~ Terminal$ rvm install 1.9.2
Fetching yaml-0.1.4.tar.gz to /Users/Terminal/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/Terminal/.rvm/src
Configuring yaml in /Users/Terminal/.rvm/src/yaml-0.1.4.
Error running ' ./configure --prefix="/Users/Terminal/.rvm/usr"  ', please read      /Users/Terminal/.rvm/log/ruby-1.9.2-p290/yaml/configure.log
Compiling yaml in /Users/Terminal/.rvm/src/yaml-0.1.4.
Error running 'make ', please read /Users/Terminal/.rvm/log/ruby-1.9.2- p290/yaml/make.log


Database file /Users/Terminal/.rvm/config/packages does not exist.

Installing Ruby from source to: /Users/Terminal/.rvm/rubies/ruby-1.9.2-p290, this may take a while depending on your cpu(s)...

ruby-1.9.2-p290 - #fetching 
ruby-1.9.2-p290 - #extracting ruby-1.9.2-p290 to /Users/Terminal/.rvm/src/ruby-1.9.2- p290
ruby-1.9.2-p290 - #extracted to /Users/Terminal/.rvm/src/ruby-1.9.2-p290
ruby-1.9.2-p290 - #configuring 
Error running ' ./configure --prefix=/Users/Terminal/.rvm/rubies/ruby-1.9.2-p290 -- enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/Terminal/.rvm/usr    ', please read /Users/Terminal/.rvm/log/ruby-1.9.2-p290/configure.log
There has been an error while running configure. Halting the installation.

我打开了.rvm / log / ruby​​-1.9.2-p290 / configure.log我收到以下错误:

[2012-02-10 21:14:02]  ./configure --prefix=/Users/Terminal/.rvm/rubies/ruby-1.9.2-p290   --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/Terminal/.rvm/usr 
configure: WARNING: unrecognized options: --with-libyaml
checking build system type... i386-apple-darwin10.8.0
checking host system type... i386-apple-darwin10.8.0
checking target system type... i386-apple-darwin10.8.0
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/Users/Terminal/.rvm/src/ruby-1.9.2-p290':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

我试过rm文件并重新安装它,我仍然得到同样的错误。

有没有人知道这可能是什么?

谢谢!

更新 更新

修复!

从Apple下载xcode需要您成为开发人员(99美元)或者为10.7版本(需要Lion)支付5美元。

我能够购买专门为Snow Leapard(4.0.2)制作的旧版XCode。 下载并安装Ruby版本1.9.3后,它运行得很好。

谢谢大家的帮助!

让我知道是否有其他人遇到同样的问题,我很乐意引导您完成我的终端步骤(保存终端日志)。

看来你没有gcc。 安装Apple Developer Tools。

我修好了它!

从Apple下载xcode需要您成为开发人员(99美元)或者为10.7版本(需要Lion)支付5美元。

我能够购买专门为Snow Leapard(4.0.2)制作的旧版XCode。 下载并安装Ruby版本1.9.3后,它运行得很好。

谢谢大家的帮助!

让我知道是否有其他人遇到同样的问题,我很乐意引导您完成我的终端步骤(保存终端日志)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM