LoginSignup
1
0

gemでrailsがインストールできなかった話。

Posted at

レアケースです。

エラー

ERROR:  While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.

原因

俺は馬鹿だからよくわかんねぇけど、rbenv配下のrubyを使わず、システムにあるrubyを使っていることが原因らいい。。

根本原因

/.bash_profile内のhomebrewのパスの指定ミス。
brewのパス→rbenvのパス出通すべきところがrbenvのパス→brewのパスの順になっていた。

解決方法

rbenvはbrewの配下にいるべき人間なので、brewのパスをrbenvのパスの上に持ってくる。
(コマンドの擬人化)

感想

・調べてたら、M1macはみんなzshのシェル使ってる。(不安)
 小学校の家庭科の授業で自分だけおばあちゃんから借りたエプロンを使っているかのような不安。

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