Learnings
New Learning
About The App
Hire Me
Writing Samples
Edit Learning
Title
Body
Context: `rails new` failed during initial `bundle install` with `ERROR: Failed to build gem native extension.` for the `pg` gem. The `pg` gem requires the PostgreSQL client library (`libpq`) to build its native C extension. Resolution: I installed the client library using `brew install libpq`. Learning: Native extensions for gems often depend on external system libraries. I learned to read the error messages carefully, as they usually suggest the required package and installation command (e.g., `brew install libpq`).
Learned on (YYYY-MM-DD)
Tags
Add comma-separated tags. They help filter learnings later.
Back to Learnings