Learnings
New Learning
About The App
Hire Me
Writing Samples
Edit Learning
Title
Body
Context: `gem install bundler:2.6.7` failed with `Gem::FilePermissionError` for `/Library/Ruby/Gems/2.6.0`. My shell was using the system Ruby (2.6.x), and installing gems globally requires permissions and is generally discouraged. My project's `.ruby-version` specified 3.2.2. Resolution: I identified that `rbenv` was installed but not properly activated in my shell environment (`PATH` configuration issue in `.zshrc`). Learning: I learned to use a Ruby version manager (`rbenv`) to handle project-specific Ruby versions and avoid modifying the system Ruby installation. I need to ensure the version manager is correctly initialized in my shell configuration (`.zshrc`, `.zprofile`, etc.) and avoid using `sudo gem install`.
Learned on (YYYY-MM-DD)
Tags
Add comma-separated tags. They help filter learnings later.
Back to Learnings