8
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

またThe Ruby openssl extension was not compiled. Missing the OpenSSL lib?かよ

Posted at

端末また調子が悪くになってきた。。。

Rubyは1.9.3を使ってますので、最新にしちゃうかなと思ったが、2.2.0をインストールするとエラーが出ました。

Cloning https://github.com/ruby/ruby.git...
Installing ruby-2.2.0-dev...

BUILD FAILED

Inspect or clean up the working tree at /var/folders/0n/18bwv5x16t7gy319d5wbn9480000gn/T/ruby-build.20140718233658.48380
Results logged to /var/folders/0n/18bwv5x16t7gy319d5wbn9480000gn/T/ruby-build.20140718233658.48380.log

Last 10 log lines:
                              bigdecimal 1.2.5
                              io-console 0.4.2
                              json 1.8.1
                              psych 2.0.5
                              rake 10.3.2
                              rdoc 4.1.0
installing bundle gems:       /Users/liubin/.rbenv/versions/2.2.0-dev/lib/ruby/gems/2.2.0 (build_info, cache, doc, extensions, gems, specifications)
installing rdoc:              /Users/liubin/.rbenv/versions/2.2.0-dev/share/ri/2.2.0/system
installing capi-docs:         /Users/liubin/.rbenv/versions/2.2.0-dev/share/doc/ruby
The Ruby openssl extension was not compiled. Missing the OpenSSL lib?

こちらを調べんでんですけと試しながら下記の手順で何とか無事にインストール出来ました。

brew uninstall openssl
brew --prefix openssl
brew install openssl
brew link openssl --force
brew --prefix openssl
CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl`" rbenv install 2.2.0-dev
8
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?