This is the error that I see
D:\Knowledge Base\ion_knowledge_base> jekyll serve
Your Gemfile lists the gem jekyll (~> 3.8.5) more than once.
You should probably keep only one of them.
Remove any duplicate entries and specify the gem only once.
While it's not a problem now, it could cause errors if you change the version of one of them later.
Traceback (most recent call last):
12: from C:/Ruby27-x64/bin/jekyll:23:in `<main>'
11: from C:/Ruby27-x64/bin/jekyll:23:in `load'
10: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/exe/jekyll:11:in `<top (required)>'
9: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/plugin_manager.rb:52:in `require_from_bundler'
8: from C:/Ruby27-x64/lib/ruby/2.7.0/bundler.rb:149:in `setup'
7: from C:/Ruby27-x64/lib/ruby/2.7.0/bundler/runtime.rb:20:in `setup'
6: from C:/Ruby27-x64/lib/ruby/2.7.0/bundler/runtime.rb:101:in `block in definition_method'
5: from C:/Ruby27-x64/lib/ruby/2.7.0/bundler/definition.rb:226:in `requested_specs'
4: from C:/Ruby27-x64/lib/ruby/2.7.0/bundler/definition.rb:237:in `specs_for'
3: from C:/Ruby27-x64/lib/ruby/2.7.0/bundler/definition.rb:170:in `specs'
2: from C:/Ruby27-x64/lib/ruby/2.7.0/bundler/spec_set.rb:80:in `materialize'
1: from C:/Ruby27-x64/lib/ruby/2.7.0/bundler/spec_set.rb:80:in `map!'
C:/Ruby27-x64/lib/ruby/2.7.0/bundler/spec_set.rb:86:in `block in materialize': Could not find nokogiri-1.10.5-x64-mingw32 in any of the sources (Bundler::GemNotFound)
Related
I have a react native project, and I'm running pod install in the iOS directory of the project, but I'm getting the an error about some gems that aren't found:
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin20/rbconfig.rb:229: warning: Insecure world writable dir /Users/prikshetsharma/.rbenv/shims in PATH, mode 040777
Traceback (most recent call last):
16: from /usr/local/Cellar/cocoapods/1.10.0/libexec/bin/pod:23:in `<main>'
15: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
14: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:303:in `synchronize'
13: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:304:in `block in activate_bin_path'
12: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1420:in `activate'
11: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1438:in `activate_dependencies'
10: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1438:in `each'
9: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1452:in `block in activate_dependencies'
8: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1420:in `activate'
7: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1438:in `activate_dependencies'
6: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1438:in `each'
5: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1452:in `block in activate_dependencies'
4: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1420:in `activate'
3: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1438:in `activate_dependencies'
2: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1438:in `each'
1: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1449:in `block in activate_dependencies'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'minitest' (~> 5.1) among 69 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/usr/local/opt/ruby/lib/ruby/gems/2.7.0:/usr/local/Cellar/cocoapods/1.10.0/libexec', execute `gem env` for more information
How to fix this error?
When run ruby bin/start I am getting this error. Can someone help me understand what to do?
Traceback (most recent call last):
4: from bin/start:4:in `<main>'
3: from bin/start:4:in `require_relative'
2: from /Users/ivana/Desktop/online_projects/NYC Park CLI/lib/environment.rb:3:in `<top (required)>'
1: from /Users/ivana/.rvm/rubies/ruby-2.6.1/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require'
/Users/ivana/.rvm/rubies/ruby-2.6.1/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- pry (LoadError)
22: from bin/start:4:in `<main>'
21: from bin/start:4:in `require_relative'
20: from /Users/ivana/Desktop/online_projects/NYC Park CLI/lib/environment.rb:3:in `<top (required)>'
19: from /Users/ivana/.rvm/rubies/ruby-2.6.1/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:156:in `require'
18: from /Users/ivana/.rvm/rubies/ruby-2.6.1/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:168:in `rescue in require'
17: from /Users/ivana/.rvm/rubies/ruby-2.6.1/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:168:in `require'
16: from /Users/ivana/.rvm/gems/ruby-2.6.1/gems/pry-0.13.1/lib/pry.rb:78:in `<top (required)>'
15: from /Users/ivana/.rvm/rubies/ruby-2.6.1/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
14: from /Users/ivana/.rvm/rubies/ruby-2.6.1/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
13: from /Users/ivana/.rvm/gems/ruby-2.6.1/gems/pry-0.13.1/lib/pry/cli.rb:134:in `<top (required)>'
12: from /Users/ivana/.rvm/gems/ruby-2.6.1/gems/pry-0.13.1/lib/pry/cli.rb:40:in `add_plugin_options'
11: from /Users/ivana/.rvm/gems/ruby-2.6.1/gems/pry-0.13.1/lib/pry/cli.rb:40:in `each'
10: from /Users/ivana/.rvm/gems/ruby-2.6.1/gems/pry-0.13.1/lib/pry/plugins.rb:55:in `load_cli_options'
9: from /Users/ivana/.rvm/rubies/ruby-2.6.1/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require'
8: from /Users/ivana/.rvm/rubies/ruby-2.6.1/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require'
7: from /Users/ivana/.rvm/gems/ruby-2.6.1/gems/pry-byebug-3.7.0/lib/pry-byebug/cli.rb:5:in `<top (required)>'
6: from /Users/ivana/.rvm/rubies/ruby-2.6.1/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
5: from /Users/ivana/.rvm/rubies/ruby-2.6.1/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
4: from /Users/ivana/.rvm/gems/ruby-2.6.1/gems/pry-byebug-3.7.0/lib/pry-byebug/commands.rb:12:in `<top (required)>'
3: from /Users/ivana/.rvm/rubies/ruby-2.6.1/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
2: from /Users/ivana/.rvm/rubies/ruby-2.6.1/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
1: from /Users/ivana/.rvm/gems/ruby-2.6.1/gems/pry-byebug-3.7.0/lib/pry-byebug/commands/exit_all.rb:3:in `<top (required)>'
/Users/ivana/.rvm/gems/ruby-2.6.1/gems/pry-byebug-3.7.0/lib/pry-byebug/commands/exit_all.rb:7:in `<module:PryByebug>': uninitialized constant Pry::Command::ExitAll (NameError)
Turn out, the issue likely stems from your usage of the slightly older pry-byebug 3.7.0 along with the newest pry 0.13.1.
Unfortunately, in pry 0.13.0 there were some changes which require an update of pry-byebug to work with this version. According to the Changelog of pry-byebug 3.9.0, they added initial support for pry 0.13 in this version (and removed support for any older pry version).
Thus, to resolve this issue, you should either upgrade your pry-byebug version to 3.9.0 or downgrade your version of pry to something lower than 0.13. Depending on how exactly you specified the dependencies in your Gemfile, it might be enough to just run the following command to upgrade your version of pry-byebug:
bundle upgrade
I have tried a few different techniques from posts excruciatingly similar to mine, but nothing seems to work.
I am currently running Jekyll 4.0.0, and I have not even gotten to connecting it to github pages. I'm using a tutorial by Mike Dane, and I've followed it to the letter. It's an older tutorial so I assume there have been changes.
I have tried reverting to an older version of Jekyll, (3.8.3, as recommended in the post I found) but that gave me more errors than I started with.
Here is my current error as I try to run bundle exec jekyll serve
jekyll 3.8.6 | Error: The minimal theme could not be found. Traceback (most recent call last):
23: from C:/Ruby27-x64/bin/jekyll:23:in `<main>'
22: from C:/Ruby27-x64/bin/jekyll:23:in `load'
21: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/exe/jekyll:15:in `<top (required)>'
20: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
19: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
18: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
17: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
16: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
15: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/serve.rb:75:in `block (2 levels) in init_with_program'
14: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/serve.rb:93:in `start'
13: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/serve.rb:93:in `each'
12: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/serve.rb:93:in `block in start'
11: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/build.rb:30:in `process'
10: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/build.rb:30:in `new'
9: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:23:in `initialize'
8: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:55:in `config='
7: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:439:in `configure_theme'
6: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:439:in `new'
5: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/theme.rb:12:in `initialize'
4: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/theme.rb:19:in `root'
3: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/theme.rb:82:in `gemspec'
2: from C:/Ruby27-x64/lib/ruby/2.7.0/rubygems/specification.rb:988:in `find_by_name'
1: from C:/Ruby27-x64/lib/ruby/2.7.0/rubygems/dependency.rb:323:in `to_spec' C:/Ruby27-x64/lib/ruby/2.7.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'minimal' (>= 0) among 85 total gem(s) (Gem::MissingSpecError) Checked in 'GEM_PATH=C:/Ruby27-x64/lib/ruby/gems/2.7.0;C:/Users/David/.gem/ruby/2.7.0', execute `gem env` for more information
21: from C:/Ruby27-x64/bin/jekyll:23:in `<main>'
20: from C:/Ruby27-x64/bin/jekyll:23:in `load'
19: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/exe/jekyll:15:in `<top (required)>'
18: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
17: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
16: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
15: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
14: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
13: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/serve.rb:75:in `block (2 levels) in init_with_program'
12: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/serve.rb:93:in `start'
11: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/serve.rb:93:in `each'
10: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/serve.rb:93:in `block in start'
9: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/build.rb:30:in `process'
8: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/build.rb:30:in `new'
7: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:23:in `initialize'
6: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:55:in `config='
5: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:439:in `configure_theme'
4: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:439:in `new'
3: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/theme.rb:12:in `initialize'
2: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/theme.rb:19:in `root'
1: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/theme.rb:81:in `gemspec' C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/theme.rb:84:in `rescue in gemspec': The minimal theme could not be found. (Jekyll::Errors::MissingDependencyException)
Sorry for the big block, but I'm relatively new and not exactly sure what is important. I have verified from multiple tutorials that I've entered the theme into the gem file properly.
I've installed the gem file using `bundle install' and it properly installed it.
I used bundle info jekyll-theme-minimal to install it and have had no luck.
Apologies if there is an identical post to this one, but I have found many with the exact same issue that were solved by something that I had already done. I promise I've searched other posts before making this one.
Note:
Running on Windows 10 Home
gem 3.1.2
ruby 2.7.1p83
doing jekyll -v gives an error, which may be part of the same problem.
Trying to jekyll serve in my project but I have the following issue (with the trance flag -t)
Configuration file: /Users/victor/Documents/Github/vict0rsch/vict0rsch.github.io/_config.yml
Source: .
Destination: ./_site
Incremental build: disabled. Enable with --incremental
Generating...
Traceback (most recent call last):
26: from /usr/local/bin/jekyll:22:in `<main>'
25: from /usr/local/bin/jekyll:22:in `load'
24: from /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/exe/jekyll:15:in `<top (required)>'
23: from /usr/local/lib/ruby/gems/2.6.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
22: from /usr/local/lib/ruby/gems/2.6.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
21: from /usr/local/lib/ruby/gems/2.6.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
20: from /usr/local/lib/ruby/gems/2.6.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
19: from /usr/local/lib/ruby/gems/2.6.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
18: from /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/commands/serve.rb:75:in `block (2 levels) in init_with_program'
17: from /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/commands/serve.rb:93:in `start'
16: from /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/commands/serve.rb:93:in `each'
15: from /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/commands/serve.rb:93:in `block in start'
14: from /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/commands/build.rb:36:in `process'
13: from /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/commands/build.rb:65:in `build'
12: from /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/command.rb:28:in `process_site'
11: from /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/site.rb:69:in `process'
10: from /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/site.rb:166:in `read'
9: from /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/hooks.rb:102:in `trigger'
8: from /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/hooks.rb:102:in `each'
7: from /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/hooks.rb:103:in `block in trigger'
6: from /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-assets-3.0.12/lib/jekyll/assets.rb:24:in `block in <top (required)>'
5: from /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-assets-3.0.12/lib/jekyll/assets.rb:24:in `new'
4: from /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-assets-3.0.12/lib/jekyll/assets/env.rb:48:in `initialize'
3: from /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-assets-3.0.12/lib/jekyll/assets/env.rb:48:in `new'
2: from /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-assets-3.0.12/lib/jekyll/assets/manifest.rb:29:in `initialize'
1: from /usr/local/lib/ruby/gems/2.6.0/gems/sprockets-4.0.0/lib/sprockets/manifest.rb:56:in `initialize'
/usr/local/lib/ruby/gems/2.6.0/gems/jekyll-assets-3.0.12/lib/jekyll/assets/manifest.rb:58:in `find_directory_manifest': wrong number of arguments (given 2, expected 1) (ArgumentError)
I don't even know where to start investigating from here.
Note that I'm aware and have tried this and that questions.
According to https://github.com/envygeeks/jekyll-assets/issues/622 This is actually a problem with sprockets 4.0.0.
You can fix it by forcing the earlier version in your Gemfile:
gem "sprockets", "~> 3.7"
Then run
bundle install
To fetch the new gem and update your Gemfile.lock
This may not be enough: even with gem "sprockets", "~> 3.7" , using ruby 3.0 made it still fail so I had to downgrade to ruby 2.7.3 using rvm
$ curl -sSL https://get.rvm.io | bash
$ source ~/.rvm/scripts/rvm
$ rvm install 2.7
$ rvm use 2.7
$ bundle install
Running ruby scripts from the command line works as it should, but attempting to start the IRB results in a long list of gem dependency errors and a traceback:
Traceback (most recent call last):
5: from /var/lib/snapd/snap/ruby/172/bin/irb:9:in `<main>'
4: from /var/lib/snapd/snap/ruby/172/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
3: from /var/lib/snapd/snap/ruby/172/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
2: from /snap/ruby/172/lib/ruby/2.7.0/rubygems.rb:1397:in `<top (required)>'
1: from /var/lib/snapd/snap/ruby/172/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
/var/lib/snapd/snap/ruby/172/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- rubygems/defaults/operating_system (LoadError)
14: from /var/lib/snapd/snap/ruby/172/bin/irb:9:in `<main>'
13: from /var/lib/snapd/snap/ruby/172/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
12: from /var/lib/snapd/snap/ruby/172/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
11: from /snap/ruby/172/lib/ruby/2.7.0/rubygems.rb:1397:in `<top (required)>'
10: from /var/lib/snapd/snap/ruby/172/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:156:in `require'
9: from /var/lib/snapd/snap/ruby/172/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:161:in `rescue in require'
8: from /snap/ruby/172/lib/ruby/2.7.0/rubygems.rb:204:in `try_activate'
7: from /snap/ruby/172/lib/ruby/2.7.0/rubygems/specification.rb:996:in `find_by_path'
6: from /snap/ruby/172/lib/ruby/2.7.0/rubygems/specification.rb:815:in `stubs'
5: from /snap/ruby/172/lib/ruby/2.7.0/rubygems/specification.rb:932:in `dirs'
4: from /snap/ruby/172/lib/ruby/2.7.0/rubygems.rb:420:in `path'
3: from /snap/ruby/172/lib/ruby/2.7.0/rubygems.rb:374:in `paths'
2: from /var/lib/snapd/snap/ruby/172/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
1: from /var/lib/snapd/snap/ruby/172/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
/snap/ruby/172/lib/ruby/2.7.0/rubygems/path_support.rb:7:in `<top (required)>': uninitialized constant Gem::PathSupport (NameError)
Ruby was already installed on the system and I also installed the ruby snap package, but cannot get it to work. The system and all packages are fully updated. Seeking help from anyone who has encountered a similar problem.