LoginSignup
1
0

More than 5 years have passed since last update.

gem install rails が実行できない

Posted at
gem install rails --version='4.2.6' 

を行うと、エラーが出たで。

ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied @ rb_sysopen - /Users/〜〜〜

rails newを行うと、permission denied と怒られてしまった。。。。

試しに、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 を打て!と言うことなんでしょう。
なので、

$ sudo gem install rails

実行して、
bundle update + bundle install してみた


動き申した!!!
やったね!

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