Gem::FilePermissionError: You don't have write permissions for the /var/lib/gems/3.1.0 directory. #6760
-
Thank you for contributing to the Describe the problem as clearly as you canWhile trying to install prereqs for blue_hydra on kali linux I run into an issue where bundle install does not work which means I am unable to download sqlite3 (one of the required dependencies). The reason it gives me is that there is a lock on one of the gemfiles and I don't have permissions to write. I've tried every update and command online that I can find, but nothing seems to work. Did you try upgrading RubyGems?tried to update ruby gems and received this error message: ERROR: Your RubyGems was installed trough APT, and upgrading it through RubyGems itself is unsupported. If you really need the latest version of RubyGems (tip: you usually don't), then you need to install RubyGems (and Ruby) manually, maybe using tools like ruby-install, rvm, etc. Post steps to reproduce the problem338 sudo apt-get update Which command did you run?bundle install What were you expecting to happen?I expected it to install all the needed dependencies, but instead gave me an error message saying it was unable to install sqlite3 do to not having write permissions on the /var/lib/gems/3.1.0 directory. What actually happened?Gem::FilePermissionError: You don't have write permissions for the /var/lib/gems/3.1.0 directory. Run
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Try |
Beta Was this translation helpful? Give feedback.
Try
export GEM_HOME=$HOME/.gem/ruby/3.1.0/