Ruby 1.9.3のインストールについて

諸事情からRubyの1.9.3をrbenvを使いインストールしようとしたが、私の環境のArch Linux (Antergos) では少々つまづくポイントがあったのでメモ。

エラーメッセージは以下のようになっていて、

BUILD FAILED (Antergos Linux using ruby-build 20180822)

Inspect or clean up the working tree at /tmp/ruby-build.20180911160152.13741
Results logged to /tmp/ruby-build.20180911160152.13741.log

次のようにすることで解決した。

$ curl -fsSL https://gist.github.com/FiveYellowMice/c50490693d47577cfe7e6ac9fc3bf6cf.txt | PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig:/usr/lib/pkgconfig rbenv install --patch 1.9.3-p551

参考文献