You are not logged in.
Hello,
Since the newest ruby update (2.5.0) my whole system went crazy and everything that has something to do with ruby is burning.
When I try to update my jekyll instance I get this error:
Traceback (most recent call last):
12: from /home/jekyll/.gem/ruby/2.5.0/bin/jekyll:23:in `<main>'
11: from /home/jekyll/.gem/ruby/2.5.0/bin/jekyll:23:in `load'
10: from /home/jekyll/.gem/ruby/2.5.0/gems/jekyll-3.7.0/exe/jekyll:11:in `<top (required)>'
9: from /home/jekyll/.gem/ruby/2.5.0/gems/jekyll-3.7.0/lib/jekyll/plugin_manager.rb:50:in `require_from_bundler'
8: from /usr/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler.rb:107:in `setup'
7: from /usr/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:20:in `setup'
6: from /usr/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:108:in `block in definition_method'
5: from /usr/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/definition.rb:226:in `requested_specs'
4: from /usr/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/definition.rb:237:in `specs_for'
3: from /usr/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/definition.rb:170:in `specs'
2: from /usr/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/spec_set.rb:82:in `materialize'
1: from /usr/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/spec_set.rb:82:in `map!'
/usr/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/spec_set.rb:88:in `block in materialize': Could not find public_suffix-2.0.5 in any of the sources (Bundler::GemNotFound)
Somebody an idea? When I search the web for this gem I find it and then I try to install it via `gem install post_suffix -v 2.0.5` this works as well. But when I do this I just get another error that some gem wasn't found (I can install this manually as well).
What is the problem here? I really don't want to install every single dependency manually.
Last edited by Shibumi (2018-01-11 13:10:26)
Offline
The easiest and the best way to install ruby packages is Quarry binary repository https://wiki.archlinux.org/index.php/Ruby#Quarry
*otherwise* if you do not want to use quarry you need to update all the packages you installed from `gem`/AUR. In this situation I would personally start with clean /home/jekyll/.gem/ Save /home/jekyll/.gem/ somewhere (e.g. mv /home/jekyll/.gem/ /tmp/myoldgem) and then reinstall all the packages anew.
Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster
Offline
Well, I usually need to update the gem path in my $PATH environment variable when changing ruby minor versions (2.2 -> 2.3 -> 2.4 -> 2.5), otherwise it could not find the gems.
After changing the $PATH, a "bundle update" would fix it.
Offline
Thx for the answers. I fixed it with using a Gemfile instead of global installed gems.
The Problem was that one of my deploy scripts (written in bash) used a global version of jekyll (that seem to be broken.. I have no clue why yet).
Using bundler solved that issue for me.
Offline