现在我正在尝试使用 rbenv 安装 ruby,而在安装 ruby 并将其设置为全局之后。但是当我输入“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>