解决LinuxMint17 切换到Ruby2.2版本不成功问题

因为博客迁移,移植一些原博客,写做日期:2015/04/07
原文地址 http://www.icoding.net/rvm-is-not-a-function.htmlhtml

最近开始学习Ruby,但在安装Ruby2.2的时候,出现了好多小问题,而后Google搜索了许多答案,费了很多时间,因此特别写出来记录一下,同时也但愿可以帮助遇到相同问题的小伙伴。
由于我用的是Linuxmint操做系统,属于Ubuntu系列。以前一直以为这个发行版本可能不支持Ruby的高版本,但内心有种很不微妙的感受,遂决定解决这个问题。shell

安装 RVM 后,执行rvm install 2.2.0命令,(若是安装ruby2.2存在问题,请点击这里)下载并成功安装Ruby2.2后,执行以下命令:ruby

~$ rvm use 2.2.0 --default

RVM is not a function, selecting rubies with 'rvm use ...' will not work.

You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.

按照提示咱们只须要执行命令bash --login,而后在执行rvm use 2.2.0 --default便可。若是想知道为何,能够点击这个连接https://rvm.io/integration/gnome-terminabash

最后,祝君成功!学习

相关文章
相关标签/搜索