[英]How to get newer version of Ruby into gem environment
I've installed Ruby 2.2.2 with rbenv. 我已经用rbenv安装了Ruby 2.2.2。 However when I run
但是当我跑步时
gem env
it says that I am using 2.0.0. 它说我正在使用2.0.0。 I read on a different question to run
我读了另一个要运行的问题
sudo gem install -n /usr/local/bin --no-ri --no-rdoc bundler
rbenv rehash
bundle --path=vendor/bundle
However, when running the last line, I receive the error: 但是,在运行最后一行时,我收到错误消息:
Could not locate Gemfile or .bundle/ directory
How do I get the system to use Ruby 2.2.2? 如何使系统使用Ruby 2.2.2?
EDIT: I printed out the contents of my .bash_profile and it had the following two lines: 编辑:我打印出我的.bash_profile的内容,它具有以下两行:
export PATH
export PATH="$HOME/.rbenv/bin:$PATH"
Is it bad that there is a blank export PATH? 空白的导出路径是否很糟糕? If so, how do I remove it?
如果是这样,如何删除它?
It turns out RVM was still present in the system. 事实证明,RVM仍然存在于系统中。 All I had to do was run:
我要做的就是运行:
rvmsudo rvm implode
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.