安装ruby 2.0.0 rvm

时间:2013-11-25 11:41:20

标签: ruby-on-rails ruby rvm

如何使用rvm安装ruby我在安装ruby 2.0.0和ruby 1.9.3时出错:

rvm install 2.0.0-p195

Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p195.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' already are up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/sergey-chechaev/.rvm/rubies/ruby-2.0.0-p195, this may take a while depending on your cpu(s)...
ruby-2.0.0-p195 - #downloading ruby-2.0.0-p195, this may take a while depending on your connection...
ruby-2.0.0-p195 - #extracted to /Users/sergey-chechaev/.rvm/src/ruby-2.0.0-p195 (already extracted)
ruby-2.0.0-p195 - #configuring........
Error running './configure --prefix=/Users/sergey-chechaev/.rvm/rubies/ruby-2.0.0-p195 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --without-tcl --without-tk --enable-shared',
please read /Users/sergey-chechaev/.rvm/log/1385379217_ruby-2.0.0-p195/configure.log
There has been an error while running configure. Halting the installation.

rvm install 1.9.3

Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p484.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' already are up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/sergey-chechaev/.rvm/rubies/ruby-1.9.3-p484, this may take a while depending on your cpu(s)...
ruby-1.9.3-p484 - #downloading ruby-1.9.3-p484, this may take a while depending on your connection...
ruby-1.9.3-p484 - #extracted to /Users/sergey-chechaev/.rvm/src/ruby-1.9.3-p484 (already extracted)
ruby-1.9.3-p484 - #configuring........
Error running './configure --prefix=/Users/sergey-chechaev/.rvm/rubies/ruby-1.9.3-p484 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --without-tcl --without-tk --enable-shared',
please read /Users/sergey-chechaev/.rvm/log/1385379545_ruby-1.9.3-p484/configure.log
There has been an error while running configure. Halting the installation.

我不知道会发生什么。我也安装了brew install autoconf automake libtool pkg-config apple-gcc42 libyaml readline libxml2 libxslt libksba openssl sqlitexcode

2 个答案:

答案 0 :(得分:3)

您只能从here下载命令行工具(需要注册) 并从rvm安装ruby。

答案 1 :(得分:2)

从appstore下载最新的Apple Xcode。打开Xcode并从首选项安装命令行工具。尝试运行rvm并再次安装ruby。