Problem with Bundler #268

thelucid opened this Issue Oct 8, 2012 · 6 comments

4 participants


I'm having a problem whereby:

bundle install --without development:test ./vendor/bundle --binstubs bin/ --deployment

is running fine (using ruby version 1.9.3-p194) i.e.

Fetching gem metadata from
Installing rake ( 
Your bundle is complete! It was installed into ./vendor/bundle

...however, rake is then refusing to work:

$ bundle exec rake -T
Could not find rake- in any of the sources
Run `bundle install` to install missing gems.

Running bundle show rake gives me:


...shouldn't this be:


...seeing as I'm using 1.9.3? ...can't get it to work whatever I do.

Any suggestions appreciated (it's on CentOS where I'm having the problem).



I think this is related to #211.

Did you tried to add you bin/ directory to the PATH variable?


Turns out that adding [ -f ~/.bash_profile ] && source ~/.bash_profile to .bashrc makes things work. I'm not an expert on .bash* files and when they get loaded so not sure why this makes it work.


Maybe this is interesting for you: ".bash_profile vs .bashrc"


Ah, thanks.

It should probably be mentioned somewhere in the readme, something like:

# .bashrc
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"

if [ -f ~/.bashrc ]; then
   source ~/.bashrc

I'm happy to submit a documentation patch.


@thelucid: Perhaps referring people to a complete documentation example would be more beneficial.


.bash_profile is for login shells, which is the 99% use-case for rbenv. Please remember to always use a login shell when using rbenv.

@radar radar closed this Dec 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment