The Ruby openssl extension was not compiled. Missing the OpenSSL lib?
ということでOpenSSL関連らしい。
環境
OSX10.9
流れ
まず確認して
$ rbenv install -l
...
1.9.3-rc1
2.0.0-dev
2.0.0-p0
2.0.0-p195
2.0.0-preview1
...
2系をインストール
$ rbenv install 2.0.0-p195
Downloading ruby-2.0.0-p195.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/0672e5af309ae99d1703d0e96eff8ea5
Installing ruby-2.0.0-p195...
BUILD FAILED
Inspect or clean up the working tree at /var/folders/x5/q1xgqxbs4cx6__g7t072wg080000gn/T/ruby-build.20140614211418.64987
Results logged to /var/folders/x5/q1xgqxbs4cx6__g7t072wg080000gn/T/ruby-build.20140614211418.64987.log
Last 10 log lines:
installing default gems: /Users/takoji/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0 (build_info, cache, doc, gems, specifications)
bigdecimal 1.2.0
io-console 0.4.2
json 1.7.7
minitest 4.3.2
psych 2.0.0
rake 0.9.6
rdoc 4.0.0
test-unit 2.0.0.0
The Ruby openssl extension was not compiled. Missing the OpenSSL lib?
OpenSSLがないと。でもHomebrewですでにインストール済み。
ここでいろいろ議論されてた。
https://github.com/sstephenson/ruby-build/issues/377
環境変数でbrewのopensslの方を見るように変えた。
$ CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl`" rbenv install 2.0.0-p195
Downloading ruby-2.0.0-p195.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/0672e5af309ae99d1703d0e96eff8ea5
Installing ruby-2.0.0-p195...
Installed ruby-2.0.0-p195 to /Users/ryo/.rbenv/versions/2.0.0-p195
完了