`

RVM错误和解决:"RVM is not a function, selecting rubies with 'rvm use ...' will not w

阅读更多

参考网址:http://blog.sina.com.cn/s/blog_9d6e035501010lol.html

 

When you run a rvm command such as

$ rvm use 1.9.3
but receive an error message of
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
This error happens because under RVM's installation directory (normally $HOME/.rvm/bin), there is an executable named 'rvm'; whereas under $HOME/.rvm/scripts directory, there is a script called 'rvm'. By default, the 'rvm' executable is used, which cannot handle many rvm commands such as 'rvm use'. 
 
One should load RVM into a shell session as a function (run the 'rvm' script). To do that, add the following line to '~/.bash_profile':
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" #load RVM into a shell session as a function

PATH=$PATH:$HOME/.rvm/bin #Add RVM to PATH for scripting
Open a new terminal or run the following command to reload /.bash_profile in the current terminal. The problem should be solved.
$ source ~/.bash_profile
分享到:
评论

相关推荐

    rvm2-ui:RVM2 中的抽象用户界面处理

    Rvm2::Ui 示例输出 使用:console处理程序: [ ] Command 1 Log output 1 [x] Command 2 [ ] Command 3 Log output 2 [v] Command 3 [v] Command 1 安装 获得宝石: gem install rvm2-ui 加载它: require...

    rvm-1.29.11.tar.gz

    $ \curl -L https://get.rvm.io | bash -s stable 它会自动创建一个“ $HOME/.rvm ”文件夹,这是 RVM 的工作目录。在此文件夹中,有三个文件夹: scripts 、environments 和 srcs 。 接下来,就输入以下命令,安装...

    rvm-master.tar.gz 包

    借助RVM,您可以在开发、配置项、问答、试运行和生产环境中拥有**完全相同的* *独立环境。不再有隐藏的陷阱:如果它适用于其中一个,它将适用于所有的。使用命名的gemsets,您可以可靠地立即将更改从一个环境推送到另...

    RVM.rar_RVM MATLAB 预测_RVM matlab_RVM 预测_RVM预测_相关向量机RVM

    相关向量机(RVM) 预测 MATLAB小程序

    mvrvm_c.zip_MVRVM_RVM_RVM 预测_RVM!!_RVM分类

    相关向量机RVM用于预测和分类,含有归一化,训练和测试,可以多变量输出,解决海瑟矩阵问题

    rvm.el, 使用rvm管理emacs中的ruby 版本.zip

    rvm.el, 使用rvm管理emacs中的ruby 版本 rvm.el 这个软件包将Emacs与 ruby 版本管理器( rvm ) 集成在一起。注意:这个项目目前未维护。 我们正在寻找一个新的维护者。 安装在加载路径中放置 rvm.el 并将它的放在你的...

    rvm1-ansible:用于安装和管理Ruby版本的官方ansible RVM角色

    rvm1-ansible:用于安装和管理Ruby版本的官方ansible RVM角色

    redis_rvm和windows安装文件.gz

    ruby-2.5.3.tar.gz rubyinstaller-2.2.4-x64.exe rvm-1.29.10.tar.gz

    Ppattern Recognition and Machine Learning

    3.5.1 Evaluation of the evidence function . . . . . . . . . . . . . 166 3.5.2 Maximizing the evidence function . . . . . . . . . . . . . . 168 3.5.3 Effective number of parameters . . . . . . . . . . ...

    rvm-1.29.9.tar.gz

    rvm-1.29.9.tar.gz linux安装包,支持操作系统centos7等linux系统,安装后可在linux系统执行rvm命令

    ruby、rvm离线安装包

    ruby、rvm离线安装包 可用于 redis5.0 以下版本的集群安装部署,解压后,对相关资源进行编译安装即可,应用安装方法可参考:https://blog.csdn.net/qq_42177284/article/details/128924576#3221__236 ruby 版本号为...

    rvm-master.tar.gz

    在学习Ruby on Rails的过程中,不同教程使用的Ruby和Rails版本不一样,为了保持和教程中使用的版本一致,我们可以用RVM(Ruby Version Manager)来控制当前的Ruby/Rails版本,方便切换。

    RVM_matlabToolBox.zip_RVM 核函数_RVM概率预测_RVM程序代码_概率预测_点估计

    相关向量机(RVM)的matlab源程序,包含快速算法,内含代码使用说明。 RVM采取是与支持向量机相同的函数形式稀疏概率模型,对未知函数进行预测或分类。 优点: (1) 不仅仅输出预测目标量的点估计值,还可以输出预测值的...

    rvm-capistrano, rvm/Capistrano 集成 gem.zip

    rvm-capistrano, rvm/Capistrano 集成 gem 描述rvm/Capistrano 集成 gem兼容性带Autolibs的rvm-capistrano 1.3.0 至少需要 RVM 1.19.0 。如果你使用 capistrano 3.0.0,则无法使用这里选项,请将它的扩展到

    RVM-master_RVM_

    RVM的库函数,帮助快速实现RVM,与Sklearn一起用

    RVM验证方法学

    RVM

    rvm-1.29.4.tar.gz

    redis cluster 安装时候需要的rvm-1.29.4.tar.gz ,当出现redis requires Ruby version >= 2.2.2

    RVM和SBL压缩包.rar

    内含稀疏贝叶斯(SBL)MATLAB、python代码以及相关向量机回归代码,一共22个压缩文件,包含实际例子和数据,内容非常丰富,本人科研时候收集整理,以及写论文用到的

    维图PDMS颜色插件(支持rvm颜色).zip

    维图软件的PDMS插件,可快速定义PDMS模型颜色,随便指定颜色.包含了256种真色彩.并能将PDMS模型输出为navisworks支持的rvm格式文件,输出的模型颜色和PDMS颜色完全一致.

    RVM相关向量机实现代码matlab源码

    %Demonstrates the mcrvm algorithm on a toy example (Three class classification problem). Part of the code was %derived from Tipping's matlab code. % @file mcrvm_example.m % Author Arasanathan ...

Global site tag (gtag.js) - Google Analytics