使用rbenv设置全局ruby版本失败

时间:2013-05-10 10:05:05

标签: ruby ruby-on-rails-3

现在我正在尝试使用rbenv安装ruby,而在安装ruby之后将其设置为global.But当我输入“ruby -v”时,我得到了以下文字:

root@AY1211020841143c65372:~# rbenv install 1.9.3-p392
Downloading yaml-0.1.4.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/36c852831d02cf90508c29852361d01b
Installing yaml-0.1.4...
Installed yaml-0.1.4 to /root/.rbenv/versions/1.9.3-p392

Downloading ruby-1.9.3-p392.tar.gz...
-> http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz

Installing ruby-1.9.3-p392...

Installed ruby-1.9.3-p392 to /root/.rbenv/versions/1.9.3-p392

root@AY1211020841143c65372:~# 
root@AY1211020841143c65372:~# 
root@AY1211020841143c65372:~# rbenv global 1.9.3-p125
rbenv: version `1.9.3-p125' not installed
root@AY1211020841143c65372:~# rbenv global 1.9.3-p392
root@AY1211020841143c65372:~# ruby -v
The program 'ruby' can be found in the following packages:
 * ruby1.8
 * ruby1.9.1
Try: apt-get install <selected package>

0 个答案:

没有答案