LoginSignup
2
1

More than 5 years have passed since last update.

rbenvでRuby 2.5.0-devをインストールする

Posted at

動作確認がしたかったので、手近な環境でインストールしてみたら、少々躓いたのでメモします。

  • OS: CentOS 6.8
# ruby-buildを更新
cd ~/.rbenv/plugins/ruby-build/
git pull origin master

# 2.5.0-dev をインストール
rbenv install 2.5.0-dev

# autoconf command not found
# -> autoconf をインストール
sudo yum install autoconf

# 再度 2.5.0-dev をインストール
rbenv install 2.5.0-dev

# Autoconf version 2.67 or higher is required
# -> http://ftp.gnu.org/gnu/autoconf/ より最新版をインストール
sudo yum remove autoconf
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
tar zxfv autoconf-2.69.tar.gz
cd autoconf-2.69
./configure
make
sudo make install

# 再度 2.5.0-dev をインストール
rbenv install 2.5.0-dev

# make: bison: Command not found
# -> bison をインストール
sudo yum install bison

# 再度 2.5.0-dev をインストール
rbenv install 2.5.0-dev

# インストール成功!
rbenv global 2.5.0-dev
ruby -v # ruby 2.5.0dev (2017-04-11 trunk 58313) [x86_64-linux]
2
1
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
2
1