rvm默认仍然无法正常工作

时间:2015-06-14 17:53:21

标签: ruby rvm

这是一种痛苦。它发生在以前,但仍然无法解决。

[~]$ rvm use 2.1.5
Using /Users/snowcrash/.rvm/gems/ruby-2.1.5
[~]$ rvm get head
Downloading https://get.rvm.io
No GPG software exists to validate rvm-installer, skipping.
Downloading https://github.com/rvm/rvm/archive/master.tar.gz

Upgrading the RVM installation in /Users/snowcrash/.rvm/
    RVM PATH line found in /Users/snowcrash/.mkshrc /Users/snowcrash/.profile /Users/snowcrash/.bashrc /Users/snowcrash/.zshrc.
    RVM sourcing line found in /Users/snowcrash/.profile /Users/snowcrash/.bash_profile /Users/snowcrash/.zlogin.
    Installing rvm gem in 1 gemsetsError running 'command gem install /Users/snowcrash/.rvm/gem-cache/rvm-1.11.3.9.gem --local --no-ri --no-rdoc',
showing last 15 lines of /Users/snowcrash/.rvm/log/1434304025_ruby-2.0.0-p195/gem.install.rvm->=1.11.3.9.log
[2015-06-14 13:47:05] command
current path: /Users/snowcrash/.rvm/src/rvm
GEM_HOME=/Users/snowcrash/.rvm/gems/ruby-2.0.0-p195@global
PATH=/Users/snowcrash/.rvm/gems/ruby-2.0.0-p195@global/bin:/Users/snowcrash/.rvm/rubies/ruby-2.0.0-p195/bin:/Users/snowcrash/.rvm/bin:/Library/Frameworks/Python.framework/Versions/2.6/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/bin:/Users/snowcrash/Library/ec2-api-tools-1.3-24159/bin:/Users/snowcrash/bin:/Users/snowcrash/Library/android-sdk-mac_86:/Users/snowcrash/Library/android-sdk-mac_86/platform-tools:/Users/snowcrash/Library/bin:/usr/local/mysql/bin:/Library/PostgreSQL/9.1/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/snowcrash/bin/gsutil:/usr/local/graphviz-2.14/bin 
GEM_PATH=/Users/snowcrash/.rvm/gems/ruby-2.0.0-p195@global

我检查了.bash_profile文件等,但似乎都使用了2.1.5。 2.0.0来自哪里?

2 个答案:

答案 0 :(得分:1)

如果要设置默认值,则需要执行

rvm --default use 2.1.5

然后ruby -v应该有正确的版本。

Source

答案 1 :(得分:0)

运行以下代码

rvm use 2.1.5 --default

你应该看到

Using ... /ruby-2.1.5

或者您可以输入ruby -v

进行检查
相关问题