Photo by Dayne Topkin on Unsplash
Recently I've been tipping my toes into Ruby/Rails water and I wanted to give the Rails Event Store a try. When I tried to install the gems on Ubuntu, I got an error:
find_executable: checking for pg_config... no
when installing the pg
Ruby gem on Ubuntu. Here's how I handled it.
The reason for that is quite obvious: the installer tries to refer a library named pg_config
which doesn't exist on my system.
It's also quite obvious it will be included in the postgresql
package, but I'm running Postgres in Docker for ages, so I don't want to install Postgres just for the sake of this.
Long story short, just install the following packages using apt
:
sudo apt install postgresql-client libpq5 libpq-dev │
And with that installed you can install the Rails Event Store dependencies without installing Postgres.