弊ぼっちのAptfileからlibidn12を消すとidn-rubyがライブラリを見つけられない
rake aborted!
LoadError: libidn.so.12: cannot open shared object file: No such file or directory - /app/vendor/bundle/ruby/3.3.0/gems/idn-ruby-0.1.5/lib/idn.so (LoadError)
<internal:/app/vendor/ruby-3.3.4/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/app/vendor/ruby-3.3.4/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/app/config/application.rb:23:in `<top (required)>'
/app/Rakefile:6:in `<top (required)>'
の、ビルド環境にlibidn12とlibidn2-devの両方が居てlibidn12側で拡張ライブラリを作るのに実行環境にlibidn12が居ないからわね。
https://devcenter.heroku.com/articles/stack-packages
ウソですリリースできてなかた
LoadError: libidn.so.12: cannot open shared object file: No such file or directory - /app/vendor/bundle/ruby/3.3.0/gems/idn-ruby-0.1.5/lib/idn.so (LoadError)
あれ、復活した。なんでだろう。素人なのできちんとバックアップもとらずにUbuntu22.04.1から22.04.2に"do-release-upgrade"したらMastodonが動かなくなってしまって、PostgreSQLが12.xから14.xになったりrubyあたりもへんなことになって冷や汗をかいた。journalctlで状況を確認したら"libidn.so.11"が無いと怒られていたので、"libidn.so.12.6.3"にシンボリックリンクを作ってごちゃごちゃやっていたら復活した。
ここで示されているのとlibidnのディレクトリは違うけど、先月投稿されたこちらの質問と回答が参考になった。
LoadError: libidn.so.11: cannot open shared object file: No such file or directory
Oh...fxxk
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.