雑記まみむメモ

雑記、メモ、技法、話題の騒動などを紹介します。

ERROR: Ruby install aborted due to missing extensions Try running `yum install -y readline-devel` to fetch missing dependencies.がでた

ruby2.0のインストール時rbenvがBUILD FAILEDが発生(20~30分まった気がする)
エラーログはこんな感じ

BUILD FAILED (CentOS release 6.3 (Final) using ruby-build 20160130-6-g9e57fb0)

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

Last 10 log lines:
installing rdoc: /opt/rbenv/versions/2.3.0/share/ri/2.3.0/system
installing capi-docs: /opt/rbenv/versions/2.3.0/share/doc/ruby
The Ruby readline extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Try running `yum install -y readline-devel` to fetch missing dependencies.

Configure options used:
--prefix=/opt/rbenv/versions/2.3.0
LDFLAGS=-L/opt/rbenv/versions/2.3.0/lib
CPPFLAGS=-I/opt/rbenv/versions/2.3.0/include

 

 Try running `yum install -y readline-devel` to fetch missing dependencies.

↑試してみる

yum install -y readline-devel

 

再度インストール実行

rbenv install 2.3.0

 インストール成功

rbenv global 2.3.0

rbenv versions