前提・実現したいこと
Ruby Gemがインストールできません。
色んなコマンドを試していますが上手くいきません。
どうしたら良いでしょうか。
発生している問題・エラーメッセージ
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /var/lib/gems/2.3.0 directory.
該当のソースコード
Ruby
1vagrant@vagrant-ubuntu-trusty-32:~/myblog$ gem install bundler 2ERROR: While executing gem ... (Gem::FilePermissionError) 3 You don't have write permissions for the /var/lib/gems/2.3.0 directory. 4
試したこと
1)sudo gem update --system
2)sudo gem uninstall cocoapods
sudo gem install cocoapods
3)gem install bundler
4) # chown -R rubyusername:rubyusername /var/lib/gems
5)sudo chmod -R a+w gems
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。