Reputation: 2447
I'm trying to set up rbenv:
https://github.com/sstephenson/rbenv#section_2
I have this working with one problem: I have to use rbenv exec
before everything
So now to do bundle exec I do:
rbenv exec bundle exec
How do I get around this?
Edit
After running rbenv rehash I get:
$ ➔ rbenv rehash
$ ➔ rails s
bash: /usr/local/bin/rails: /usr/local/bin/ruby: bad interpreter: No such file or directory
Upvotes: 4
Views: 4215
Reputation: 2447
Silly really:
I forgot to run exec $SHELL
so my PATH was not updated. Initially the strings:
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
were put into .bash_profile, but should have been in .bashrc. After fixing this I forgot to reopen/run the above command!
Thanks to @Dylan Markov in the comments for pointing me in the right direction :)
Upvotes: 5