Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

missing ~/.rbenv/shims in PATH #877

Copy link
Copy link

Description

@lkfken
Issue body actions

I followed the instructions and here is the output.

vagrant@vagrant-ubuntu-trusty-64:~$ rbenv install 2.3.0
Downloading ruby-2.3.0.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0.tar.bz2
Installing ruby-2.3.0...
Installed ruby-2.3.0 to /home/vagrant/.rbenv/versions/2.3.0

vagrant@vagrant-ubuntu-trusty-64:~$ ruby -v
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
vagrant@vagrant-ubuntu-trusty-64:~$ rbenv local 2.3.0
vagrant@vagrant-ubuntu-trusty-64:~$ ruby -v
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
vagrant@vagrant-ubuntu-trusty-64:~$ rbenv which ruby
/home/vagrant/.rbenv/versions/2.3.0/bin/ruby
vagrant@vagrant-ubuntu-trusty-64:~$ ruby -v
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]

as you could see, the ruby is not 2.3.0 but 1.9.3[system]

eventually, I notice my .bashrc

export PATH="$HOME/.rbenv/bin:$PATH"

and according to the README, the path should contain '~/.rbenv/shims'. Therefore, I add it to the PATH in .bashrc

export PATH="$HOME/.rbenv/bin:~/.rbenv/shims:$PATH"

and rbenv is working again.

Therefore, I suggest to revise Installation/Step2 to export the path as above. Thank you.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.