Ubuntuにrvmでrubyをインストールしようとしています。シナプスパッケージマネージャーでrvmをインストールしました。
$ which rvm
/usr/bin/rvm
$ rvm --version
rvm 1.6.9 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]
ルビーをインストールしようとしています:
$ rvm install 1.9.2
...
ERROR: Error running 'make ', please read /usr/share/ruby-rvm/log/ruby-1.9.2-p180/make.log
ERROR: There has been an error while running make. Halting the installation.
ログファイルの問題は、openssl に関連しています。
ossl_ssl.c:110:1: error: ‘SSLv2_method’ undeclared here (not in a function)
https://rvm.io/packages/openssl/では、実行するように指示されていますが$ rvm requirements
、エラーが発生します:
$ rvm requirements
ERROR: Unrecognized command line argument: 'requirements' ( see: 'rvm usage' )
同じページで を実行するように求められます$ rvm reinstall 1.9.2 --with-openssl-dir=/usr/local
が、これにより ruby のコンパイル中に同じエラーが発生します。同じページの2番目のアプローチではrvm pkg install openssl
、
$ rvm pkg install openssl
ERROR: Unrecognized command line argument: 'pkg' ( see: 'rvm usage' )
Openssl がインストールされているようです:
$ dpkg --get-selections | grep openssl
openssl install
python-openssl install