mastodon.zunda.ninja is one of the many independent Mastodon servers you can use to participate in the fediverse.
Zundon is a single user instance as home of @zundan as well as a test bed for changes of the code.

Administered by:

Server stats:

1
active users

古いRubyを使うためOpenSSL 1.1.1をXubuntu 22.04に入れる
https://zenn.dev/zunda/scraps/327d99f850a8ad

とりあえずruby-3.0.4を使えるようにできました。

Zenn古いRubyを使うためOpenSSL 1.1.1をXubuntu 22.04に入れる
zunda

$ rbenv local 2.5.0
$ ruby -ropenssl -e 'puts "hi"'
:
/home/zunda/.rbenv/versions/2.5.0/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': libssl.so.1.1: cannot open shared object file: No such file or directory - /home/zunda/.rbenv/versions/2.5.0/lib/ruby/2.5.0/x86_64-linux/openssl.so (LoadError)

とかして動かない子をどんどん消しとこ。

$ LD_LIBRARY_PATH=/opt/openssl-1.1.1/lib ruby -ropenssl -e 'puts "hi"'
hi

すれば動くんだけど面倒だしね。