rbenv - How to get newer version of Ruby into gem environment -
i've installed ruby 2.2.2 rbenv. when run
gem env
it says using 2.0.0. read on different question run
sudo gem install -n /usr/local/bin --no-ri --no-rdoc bundler rbenv rehash bundle --path=vendor/bundle
however, when running last line, receive error:
could not locate gemfile or .bundle/ directory
how system use ruby 2.2.2?
edit: printed out contents of .bash_profile , had following 2 lines:
export path export path="$home/.rbenv/bin:$path"
is bad there blank export path? if so, how remove it?
if have ruby 2.2.2 installed already, can use renv global
rbenv global 2.2.2
check out documentation here.
Comments
Post a Comment