Hey,
new to the Ruby world, I was following a tutorial that uses Sqlite3, and I already have PostgreSQL installed on my machine. My question is how can I set up PostgreSQL with Ruby via terminal.
Hey,
new to the Ruby world, I was following a tutorial that uses Sqlite3, and I already have PostgreSQL installed on my machine. My question is how can I set up PostgreSQL with Ruby via terminal.
There is a gem named pg
. Try to install it with gem install pg
.
It is a wrapper around libpq
(the PostgreSQL library).
In a system as Ubuntu, with postgres installed, you could add what is needed to compile it with:
apt install libpq-dev
pg README has examples of how to use it.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs