以下のページの通り実行したらインストールできた。
https://gist.github.com/jpinnix/3186304
$export CPPFLAGS=-I/opt/X11/include
$CC=/usr/local/bin/gcc-4.2 rbenv install 1.8.7-p371
More than 5 years have passed since last update.
以下のページの通り実行したらインストールできた。
https://gist.github.com/jpinnix/3186304
$export CPPFLAGS=-I/opt/X11/include
$CC=/usr/local/bin/gcc-4.2 rbenv install 1.8.7-p371
Register as a new user and use Qiita more conveniently