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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -