-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No bundle shim; rbenv: bundle: command not found #576
Comments
Having Because
|
gem install bundler -Sartaj |
+1 for |
@genlighten I'm closing this since I hope this information was enough for you to resolve your issue in the meantime. |
Thanks @sigmainfo, solve my problem here! |
I have issued 'rbenv rehash' after installing bundle gem ( gem install bundler ) And I have bundle gem:
But I still do not have bundle executable in rbenv shims
Thus, I can not issue bundle:
This is my output from gem env:
|
@viatcheslavmogilevsky This is because your environment is configured to install gems in the home directory location of rbenv doesn't work well with the user install location since it's hard for it to pick up executables from there. You could try my experimental plugin for this case, run |
Thanks for detailed explanation! |
solve this problem with: gem install bundler |
@hanpanpan200 great thanks |
Hey @mislav. Great work on rbenv! From what I have noticed it looks like if you already have bundler installed in the system gem set then rbenv will not create the bundle shim. I set my ruby version using rbenv and then run |
The problem seems to be that the |
OK so the issue is different to what I thought it was but I have tracked it down. It seems that rbenv does not handle the Running whence on gem and jgem both yield the jruby version I have selected but this does not seem to be the case during execution. |
hi, Does anyone know how to solve this issue ? |
@amauryce Your problem is because you've installed rbenv using Homebrew, but since then you've removed Homebrew, breaking the rbenv install. I suggest that you reinstall rbenv from Homebrew and then run |
@mislav thank you for your answer I 'reinstalled' /usr/local/Cellar (I just copy/paste from another configuration) It sounds that I broke the dependancies of my application : ➜ comint git:(master) bundle install ➜ comint git:(master) cap production deploy But 'rails s' works fine. Do you have an idea ? |
Hi all its works for me 👍 |
@amauryce You seem to be using RVM, which is a Ruby version manager completely different and incompatible with rbenv. We can't provide support if you have problems with RVM. |
What I had to do to fix this issue for me was, make sure I had |
Currently have an issue when i try to bundle install. The results continue in a loop and says the stack level issues. This is the error I get: I've tried rehashing, reinstalling bundler. Currently on: |
+1 for |
For the record: I was having an issue where I solved this issue by running the commands give above: |
Note that |
@mislav I had Note that there was no problem before since my system installation of bundle matched the [edit] |
long time not use ruby on rails |
I hit this same wall today and I needed to set both my local and my global rbenv values to my project's .ruby-version value to be able to run:
|
this work for me. |
|
after installing bundler on ruby 1.9.3 with rbenv, I also needed this (rbenv rehash didn't cut it): |
I'm trying to install rbenv on a machine that previously had rvm installed. I've followed the various instructions to remove all vestiges of rvm. But I have the following problems, which I assume are related:
Trying to install nokogiri 1.6.0 gives an error indicating the bundle command can't find the ruby 1.9.2 version that rbenv says is the current one.
There is no 'bundle' shim in ~/.rbenv/shims
which bundle gives /usr/bin/bundle
rbenv which bundle gives rbenv: bundle: command not found
I've removed /usr/bin from my path as mentioned in a similar issue elsewhere here. Do I need to uninstall and reinstall bundler?
Any and all help or guidance would be greatly appreciated.
Thanks!
Dean Richardson
The text was updated successfully, but these errors were encountered: