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

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

railsをインストールできない

More than 3 years have passed since last update.

はじめに

よし、Rubyのバージョンを上げたからrailsを触るぞ!ってなったときにはまったこと。

前回のRubyバージョンアップする記事はこちら↓
MacのRubyをrbenvでバージョンアップする
※上の記事にはすでにコマンド追加をしてます

Railsをインストール

まずはrailsがあるか確認

$ rails -v

Rails is not currently installed on this system. To get the latest version, simply type:

    $ sudo gem install rails

You can then rerun your "rails" command.

ないですね。ということで、コマンド打っていきます。

$ sudo gem install rails

〜略〜

installが終わったので確認。

$ rails -v

Rails is not currently installed on this system. To get the latest version, simply type:

    $ sudo gem install rails

You can then rerun your "rails" command.

どうした。おい。

Rails is not currently installed on this system. To get the latest version, simply type:

なんだか怪しげな感じなのでぐぐりました。はい。
以下のコマンドを打てばうまくいきました。

$ gem install railties && rbenv rehash
$ brew install rbenv ruby-build

 Successfully installed railties-5.1.3
 Parsing documentation for railties-5.1.3
 Done installing documentation for railties after 0 seconds
 1 gem installed

$ rails -v
 Rails 5.1.3

おお!

できた。

終わりに

先人の方たちに感謝してますm(_ _)m

まだまだ頑張る。

35
Help us understand the problem. What is going on with this article?
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
smarthr
社会の非合理を、ハックする。

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
35
Help us understand the problem. What is going on with this article?