在RVM中安装了Ruby1.9.3,但是命令行没有显示rubyv

在RVM中安装了Ruby1.9.3,但是命令行没有显示rubyv

以下是控制台输出:

sergio@sergio-VirtualBox:~$ rvm list

rvm rubies

   ruby-1.9.3 [ i386 ]sergio@sergio-VirtualBox:~$ rvm use 1.9.3Using /usr/share/ruby-rvm/gems/ruby-1.9.3sergio@sergio-VirtualBox:~
   $ ruby -vThe program 'ruby' can be found in the following packages:
 * ruby1.8
 * ruby1.9.1Try: sudo apt-get install <selected package>

那怎么回事?我需要重新启动我的机器吗?还是应该一开始就起作用?我正在使用Ubuntu11.10,任何帮助都是非常感谢的。


幕布斯6054654
浏览 988回答 3
3回答

慕勒3428872

开放航站楼。转到编辑->配置文件首选项。在打开的窗口中选择标题和命令选项卡。将复选框Run命令标记为登录shell。关闭窗口并重新启动终端。查查这位官员链接

凤凰求蛊

今天我遇到了一个类似的问题-我的红宝石版本与我的RVM安装不匹配。>&nbsp;ruby&nbsp;-v ruby&nbsp;2.0.0p481>&nbsp;rvm&nbsp;list rvm&nbsp;rubies &nbsp;&nbsp;&nbsp;ruby-2.1.2&nbsp;[&nbsp;x86_64&nbsp;]=*&nbsp;ruby-2.2.1&nbsp;[&nbsp;x86_64&nbsp;] &nbsp;&nbsp;&nbsp;ruby-2.2.3&nbsp;[&nbsp;x86_64&nbsp;]还有,rvm current失败了。>&nbsp;rvm&nbsp;currentWarning!&nbsp;PATH&nbsp;is&nbsp;not&nbsp;properly&nbsp;set&nbsp;up,&nbsp;'/Users/randallreed/.rvm/gems/ruby-2.2.1/bin'&nbsp;is&nbsp;not&nbsp;at&nbsp;first&nbsp;place...错误消息推荐了这个有用的命令,它为我解决了这个问题:>&nbsp;rvm&nbsp;get&nbsp;stable&nbsp;--auto-dotfiles
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Ruby