Understanding Bundler Version Verification Errors

Asked 2 years ago, Updated 2 years ago, 95 views

Thank you for your help.
Creating Rails environment.
Install the bundleer

bundler-v

When you check the version in ,

Traceback (most recent call last):
2:from/home/username/.rbenv/versions/2.5.0/bin/bundler:23:in`<main>'
1: from /home/username/.rbenv/versions/2.5.0/lib/ruby/site_ruby/2.5.0/
      rubybems.rb:308: in 'activate_bin_path'
/home/username/.rbenv/versions/2.5.0/lib/ruby/site_ruby/2.5.0/
rubygems.rb:289:in`find_spec_for_exe':can't find gem bundleer(>=0.a) 
with executable bundleer (Gem::GemNotFoundException)

and the version could not be determined.
Please teach me how to solve this problem.

ruby-on-rails ruby bundler

2022-09-30 19:25

2 Answers

A similar symptom was found in the home StackExchange, but in that case sudogem install bundle seems to have solved it.

https://stackoverflow.com/questions/47026174/find-spec-for-exe-cant-find-gem-bundler-0-a-gemgemnotfoundexception

However, since sudo is not required to operate the rbenv relationship, you probably installed something using sudo where you don't need to use sudo.

Therefore, I think it would be better to delete all of the files below ~/.rbenv and then reinstall them.


2022-09-30 19:25

There seems to be something wrong or missing from the bundle Gem installed for the current version of ruby (2.5.0).

gem install bundleer

I think running will solve this problem. What do you think?


2022-09-30 19:25

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.