Please confirm you have...
I'm trying to follow the CONTIBUTING.md documentation but I'm stuck on some strange error.
Even if I run gem install bundler -v "~>1.10" (and Ruby installs Bundler 1.17.3), I get this error message when I try to do script/bootstrap:
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
bundler (~> 1.10)
Current Bundler version:
bundler (2.1.4)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
Could not find gem 'bundler (~> 1.10)' in any of the relevant sources:
the local ruby installation
I'm using Ubuntu 20.04 LTS on Windows Subsystem for Linux (WSL).
Gemfile (which as I expected, brought lots of other problems).I'm not very familiar with Linux, so, sorry if it's a dumb issue. What am I missing here?
This should do the trick:
Gemfile.lock file if it exists in the linguist directorygem install bundler -v 1.17.3bundler _1.17.3_CONTRIBUTING.md with script/bootstrapThat worked at some level but then I got this error:
An error occurred while installing charlock_holmes (0.7.7), and Bundler cannot continue.
Make sure that gem install charlock_holmes -v '0.7.7' --source 'https://rubygems.org/' succeeds before bundling.
I tried to run the suggested command: gem install charlock_holmes -v '0.7.7' --source 'https://rubygems.org/'
But then I got:
ERROR: Error installing charlock_holmes:
ERROR: Failed to build gem native extension.
Ruby-dev and make are also installed and updated:
ruby-dev is already the newest version (1:2.7+1).
make is already the newest version (4.2.1-1.2).
It seems that g++ isn't installed. If I can get this to work, I'll give feedback. Thanks!
Edit: After installing g++ and charlock_holmes successfully, I was able to run script/bootstrap. Thanks again, @lildude!
Most helpful comment
That worked at some level but then I got this error:
An error occurred while installing charlock_holmes (0.7.7), and Bundler cannot continue. Make sure that gem install charlock_holmes -v '0.7.7' --source 'https://rubygems.org/' succeeds before bundling.I tried to run the suggested command:
gem install charlock_holmes -v '0.7.7' --source 'https://rubygems.org/'But then I got:
ERROR: Error installing charlock_holmes: ERROR: Failed to build gem native extension.Ruby-dev and make are also installed and updated:
ruby-dev is already the newest version (1:2.7+1).make is already the newest version (4.2.1-1.2).It seems that g++ isn't installed. If I can get this to work, I'll give feedback. Thanks!
Edit: After installing g++ and charlock_holmes successfully, I was able to run
script/bootstrap. Thanks again, @lildude!