micro-ROS.github.io
micro-ROS.github.io copied to clipboard
Ubuntu 22.04 bundle install errors
Issue template
- Hardware description: N/A
- RTOS: N/A
- Installation type: docs
- Version or commit hash:
master192c1b3d45dd5dec9718f79645c2251ca61f2b13
Steps to reproduce the issue
Follow jekyll instructions to and try to build the site. First install ruby: https://wiki.openstack.org/wiki/RubyGems#:~:text=5%20SuSE%20Linux-,Ubuntu,'Install'%2C%20thats%20it.
Then, try to install the bundle
ryan@ryan-sp3:~/Development/ardu_ws/src/micro-ROS.github.io$ bundle install
Bundler 2.4.10 is running, but your lockfile was generated with 2.1.4. Installing Bundler 2.1.4 and restarting using that version.
Fetching gem metadata from https://rubygems.org/.
Fetching bundler 2.1.4
Installing bundler 2.1.4
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
Fetching gem metadata from https://rubygems.org/.........
nokogiri-1.13.6-x86_64-linux requires ruby version < 3.2.dev, >= 2.6, which is incompatible with the current version, ruby 3.2.2p53
When downgrading, there was also this error
ERROR: Error installing jekyll:
The last version of sass-embedded (~> 1.54) to support your Ruby & RubyGems was 1.61.0. Try installing it with `gem install sass-embedded -v 1.61.0` and then running the current command again
sass-embedded requires RubyGems version >= 3.3.22. The current RubyGems version is 3.1.6. Try 'gem update --system' to update RubyGems itself.
Expected behavior
No errors during bundle install
Actual behavior
There are many dependency errors
Additional information
Here is my workaround:
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'eval "$(~/.rbenv/bin/rbenv init - bash)"' >> ~/.bashrc
source ~/.bashrc
# Now, add the rbenv installer
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
rbenv install 2.7.8
rbenv global 2.7.8
# Install jekyll and bundler
gem install jekyll bundler
# Install the dependencies for the site
bundle install
# Build and serve the site locally
bundle exec jekyll serve
Futher Info
If you need exact versions to bring about this conflict, I can reproduce it in Ubuntu 22.04 docker conrtainer