📑
centOSにrbenv install バージョン するとCan't locate FindBin.pm in ~
エラーメッセージ
$ rbenv install 2.5.1
# ~略~
Downloading openssl-1.1.1t.tar.gz...
->
# ~略~
Installing openssl-1.1.1t...
BUILD FAILED (CentOS Stream 9 using ruby-build 20230428)
# ~略~
Operating system: x86_64-whatever-linux2
Can't locate FindBin.pm in @INC (you may need to install the FindBin module) (@INC contains: /home/userName/FindBin.pm /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ./Configure line 15.
解決したコマンド
sudo yum install perl perl-FindBin perl-open perl-YAML perl-File-HomeDir perl-Unicode-LineBreak
そもそもperlが無かったので、こちらを実行して解決。
参考記事
Discussion