Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
OrganizationAdvent CalendarQiitadon (β)
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

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

More than 3 years have passed since last update.


  • 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
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]
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away