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

Ubuntu 22.04 bundle install errors #403

Open
Ryanf55 opened this issue Apr 7, 2023 · 0 comments
Open

Ubuntu 22.04 bundle install errors #403

Ryanf55 opened this issue Apr 7, 2023 · 0 comments

Comments

@Ryanf55
Copy link

Ryanf55 commented Apr 7, 2023

Issue template

  • Hardware description: N/A
  • RTOS: N/A
  • Installation type: docs
  • Version or commit hash: master 192c1b3

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

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

1 participant