2022-03-29 :-(
_ 飯
鮭を味噌に漬けておいたやつ。
_ tdiary が 500 Internal Server Error だった
You have already activated json 2.5.1, but your Gemfile requires json 2.6.1. Since json is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports json as a default gem. (Gem::LoadError)
/usr/pkg/lib/ruby/gems/3.0.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:309:in `check_for_activated_spec!'
/usr/pkg/lib/ruby/gems/3.0.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:25:in `block in setup'
/usr/pkg/lib/ruby/gems/3.0.0/gems/bundler-2.3.10/lib/bundler/spec_set.rb:136:in `each'
/usr/pkg/lib/ruby/gems/3.0.0/gems/bundler-2.3.10/lib/bundler/spec_set.rb:136:in `each'
/usr/pkg/lib/ruby/gems/3.0.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:24:in `map'
/usr/pkg/lib/ruby/gems/3.0.0/gems/bundler-2.3.10/lib/bundler/runtime.rb:24:in `setup'
/usr/pkg/lib/ruby/gems/3.0.0/gems/bundler-2.3.10/lib/bundler.rb:151:in `setup'
/usr/pkg/lib/ruby/gems/3.0.0/gems/bundler-2.3.10/lib/bundler/setup.rb:20:in `block in <top (required)>'
/usr/pkg/lib/ruby/gems/3.0.0/gems/bundler-2.3.10/lib/bundler/ui/shell.rb:136:in `with_level'
/usr/pkg/lib/ruby/gems/3.0.0/gems/bundler-2.3.10/lib/bundler/ui/shell.rb:88:in `silence'
/usr/pkg/lib/ruby/gems/3.0.0/gems/bundler-2.3.10/lib/bundler/setup.rb:20:in `<top (required)>'
<internal:/usr/pkg/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
<internal:/usr/pkg/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
/home/rin/public_html/tdiary-v5.2.1/lib/tdiary/environment.rb:8:in `<top (required)>'
<internal:/usr/pkg/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
<internal:/usr/pkg/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
/home/rin/public_html/tdiary-v5.2.1/lib/tdiary.rb:25:in `<top (required)>'
<internal:/usr/pkg/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
<internal:/usr/pkg/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
/home/rin/public_html/diary/index.rb:18:in `<main>'
先日 pkgsrc を pkg_rolling-replace した影響だと思う。
bundle で要求するバージョンとシステムの gem のバージョンと整合してないようなのでひたすら gem install していく (CGI つまり apache から起動されるのでシステムの gem が使われるらしい)
% gem list
:
json (default: 2.5.1)
:
% sudo gem install json
Fetching json-2.6.1.gem
Building native extensions. This could take a while...
Successfully installed json-2.6.1
Parsing documentation for json-2.6.1
Installing ri documentation for json-2.6.1
Done installing documentation for json after 5 seconds
1 gem installed
また別の You have already activated <gemname>
が表示されたらそれも gem intall していく。