OS is WSL1 Ubuntu (18.04) I proceeded with reference to this.
An error occurred while installing nokogiri (1.10.10), and Bundler
cannot continue.
Make sure that `gem install nokogiri -v '1.10.10' --source
'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
rails was resolved to 6.0.3.3, which depends on
actioncable was resolved to 6.0.3.3, which depends on
actionpack was resolved to 6.0.3.3, which depends on
actionview was resolved to 6.0.3.3, which depends on
rails-dom-testing was resolved to 2.0.3, which depends on
nokogiri
It seems that you can change the bundle config
If you are doing bundle install
gem install nokogiri -- --use-system-libraries
bundle install --path if you have vendor / bundle In the config in the app's .bundle
.bundle
BUNDLE_BUILD__NOKOGIRI: "--use-system-libraries"
Is added.
An error occurred while installing bootsnap (1.4.8), and Bundler
cannot continue.
Make sure that `gem install bootsnap -v '1.4.8' --source
'https://rubygems.org/'` succeeds before bundling.
Apparently it would be nice to lower the version
Gemfile
gem 'bootsnap', '<= 1.1.0', require: false
I should have done it with this.
An error occurred while installing msgpack (1.3.3), and Bundler
cannot continue.
Make sure that `gem install msgpack -v '1.3.3' --source
'https://rubygems.org/'` succeeds before bundling.
Apparently
Permission denied @ rb_file_s_rename.....
So messing with gems permissions in the app's venfor / bundle
sudo chown -R username /home/username/testrails/railsapp/vendor/bundle/ruby/2.7.0/gems
The path depends on the environment.
bundle/config
BUNDLE_BUILD__PUMA: "--with-cflags=-Wno-error=implicit-function-declaration"
To .bundle / config
$ bundle config build.puma --with-cflags="-Wno-error=implicit-function-declaration"
You should be able to go either way.
I think there are many causes related to authority, so I think you should check first.
Recommended Posts