6
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

railsコマンドが使えないときにやったこと

Posted at

rails serverができない

railsを起動しようとしてもコマンド実行するたびに下記のメッセージが表示されるので困った。
rails初心者なのでとにかく動かしたい。

$ rails server
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 serverができた!

下記のコマンドを実行したらrails serverが実行できました。

$ gem install railties
$ rbenv rehash

参考サイト

railsをインストールできない
Railsのバージョンがなんかおかしい時はrailtiesをチェック

6
8
1

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
6
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?