LoginSignup
1
2

More than 5 years have passed since last update.

[memo] Ruby2.5.0 / Rails5.1.5 install

Last updated at Posted at 2018-02-20

Ruby install

rbenv install

$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
$ vi ~/.bash_profile
~/.bash_profile
export PATH=$HOME/.rbenv/bin:$PATH
export PATH

eval "$(rbenv init -)"
$ exec $SHELL -l

ruby-build install

$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build

Ruby install

インストール可能バージョンの確認

$ rbenv install --list

Rubyインストール

$ rbenv install -v 2.5.0

利用するRubyバージョンの指定

$ rbenv global 2.5.0

バージョン確認

$ ruby -v
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]

Rails install

Bundler install

$ gem install bundler
$ bundler -v
Bundler version 1.16.1

Rails install

$ gem install rails --no-ri --no-rdoc --version="5.1.5"
$ rails -v
Rails 5.1.5

以上

1
2
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
1
2