Learnings
New Learning
About The App
Hire Me
Writing Samples
Edit Learning
Title
Body
Context: `gem install bundler:2.6.7` failed again with `Gem::FilePermissionError`. The command was still running in the context of the system Ruby, attempting to write to protected system directories (`/Library/Ruby/Gems/2.6.0`). Resolution: I had to ensure my terminal session correctly activated the `rbenv` Ruby version (3.2.2) *before* running `gem install bundler -v 2.6.7` and subsequent `bundle install`. Learning: Persistent permission errors during `gem install` strongly indicate the wrong Ruby environment is active. I learned to verify my `rbenv` (or similar) setup and activation (`ruby -v`, `which ruby`, `which gem`). Using `rbenv exec gem install ...` can sometimes bypass activation issues but doesn't fix underlying environment problems if my shell init is broken.
Learned on (YYYY-MM-DD)
Tags
Add comma-separated tags. They help filter learnings later.
Back to Learnings