Skip to content
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 version set for command bundle" when trying to add Ruby 2.5.5 to my toolchest #127

Closed
cobbr2 opened this issue Jul 19, 2019 · 15 comments

Comments

@cobbr2
Copy link

cobbr2 commented Jul 19, 2019

I've tried this several times, so my guess is that there's something I'm just doing wrong, but: I install ruby-2.5.5, update my .tool-versions. ruby --version finds the right Ruby. But bundle can't be found. Reshim doesn't work. Ubuntu 18.04, asdf version 0.7.3:

rcobb@rcobb-t480:~/warehouse$ bundle --version
asdf: No version set for command bundle
you might want to add one of the following in your .tool-versions file:

ruby ruby-2.5.1
ruby 2.5.3
ruby 2.6.2
ruby 2.5.1
ruby 2.3.8
ruby ruby-2.3.8
ruby 2.3.4
rcobb@rcobb-t480:~/warehouse$ asdf uninstall ruby 2.5.5 && asdf install ruby 2.5.5
Downloading ruby-build...
...
Installing ruby-2.5.5...
Installed ruby-2.5.5 to /home/rcobb/.asdf/installs/ruby/2.5.5


rcobb@rcobb-t480:~/warehouse$ bundle --version
asdf: No version set for command bundle
you might want to add one of the following in your .tool-versions file:

ruby ruby-2.5.1
ruby 2.5.3
ruby 2.6.2
ruby 2.5.1
ruby 2.3.8
ruby ruby-2.3.8
ruby 2.3.4

rcobb@rcobb-t480:~/warehouse$ asdf reshim
rcobb@rcobb-t480:~/warehouse$ bundle --version
asdf: No version set for command bundle
you might want to add one of the following in your .tool-versions file:

ruby ruby-2.5.1
ruby 2.5.3
ruby 2.6.2
ruby 2.5.1
ruby 2.3.8
ruby ruby-2.3.8
ruby 2.3.4
rcobb@rcobb-t480:~/warehouse$ ruby --version
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]
rcobb@rcobb-t480:~/warehouse$ asdf list ruby
  2.1.5
  2.3.4
  2.3.8
  2.5.1
  2.5.3
  2.5.5
  2.6.2
  ruby-2.3.8
rcobb@rcobb-t480:~/warehouse$ asdf --version
v0.7.3

Am I doing something wrong? Thanks!

@cobbr2
Copy link
Author

cobbr2 commented Jul 19, 2019

Yes. I'm failing to install bundler!

@cobbr2 cobbr2 closed this as completed Jul 19, 2019
@betogrun
Copy link

I'm still facing this same error.
@cobbr2 did you manage to solve it?

@cobbr2
Copy link
Author

cobbr2 commented Sep 27, 2019 via email

@betogrun
Copy link

betogrun commented Oct 3, 2019

No problems. @cobbr2 can you please reopen this issue?

@Stratus3D
Copy link
Member

My guess is that you haven't yet installed bundler. We are aware that the error message is confusion and have an issue somewhere for this. The error should really say that there is no bundle executable, because there isn't one for the current version.

@betogrun
Copy link

betogrun commented Oct 3, 2019

You are right @Stratus3D.
Running gem install bundler solves the issue.
Thanks!

@ttilberg
Copy link

ttilberg commented Oct 3, 2019

@Stratus3D Can you please review asdf-vm/asdf#557 (comment) with that same mindset? I get something similar, but am trying to explicitly install things to the correct version. Do you feel this is the same, or a different bug? Any insight?

@Stratus3D
Copy link
Member

Hi @ttilberg, I read your other comment, good description of the issue. You are right about that line being a magic comment in the shim. The shim was generated at a time in the past when only Python 3.6.8 offered the ipython executable on your system. Now you have Python 3.7.4 installed and the shim file hasn't been updated to reflect that. Typically asdf reshim will update your shims. Can you try that and see if it has any affect on the contents of your ipython shim file?

@ttilberg
Copy link

ttilberg commented Oct 4, 2019

Thank you @Stratus3D. That fixed it. Sorry for turning this into a customer support thread.

@Stratus3D
Copy link
Member

No worries @ttilberg

@kaka-ruto
Copy link

gem install bundler didn't work for me.

But gem update --system did.

@Dwiga
Copy link

Dwiga commented Aug 25, 2020

gem install bundler didn't work for me.

But gem update --system did.

thanks dude, it works on me

@doshinwills-okta
Copy link

$ asdf global ruby <RUBY_VERSION>

Solved the issue for me

@WaismanDourado
Copy link

Thanks @doshinwills-okta asdf global ruby <RUBY_VERSION> works for me!

@roberttravispierce
Copy link

For those still having this issue in a Rails project, try prefacing the rails command with bundle exec... (e.g. bundle exec rails server)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants