Category: Postgresql

How To Fix Error “checking for libpq-fe.h… no” While Installing PG Gem on Ubuntu & Mac

To resolve this error on Ubuntu just run : $ sudo apt-get install libpq-dev And on Mac : gem install pg -v ‘0.20.0’ — –with-pg-config=/Applications/Postgres.app/Contents/Versions/11/bin/pg_config Just change the pg gem version and PostgreSQL version depending on your need.

How to Install PostgreSQL For Local Rails Development On Ubuntu 19.04

Before install PostgreSQL we need to update apt package list to do so : sudo apt update After that we can install PostgreSQL and dependencies : sudo apt install postgresql postgresql-contrib To switch into Postgres account : sudo -i -u postgres Now you can access PostgreSQL prompt by running command : psql Exit out of […]

Scroll to Top