F
F
FreezkoSS2017-09-21 09:38:41
Ruby on Rails
FreezkoSS, 2017-09-21 09:38:41

I decided to install the postgresql database, but the gem file is not installed in any way, what should I do?

45390b25c5c74da29c28c042519bfeec.png7d489d2e97014afe80da2646a5c9b1dd.png
the gem itself is added to the gemfile, but not bundle install, not gem install pg, even with the version specified, it doesn’t plow either, what’s the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Andreev, 2017-09-21
@b0nn1e

sudo apt-get install libpq-dev
+

sudo apt-get install postgresql-client
sudo apt-get install postgresql postgresql-contrib

ps: this is from the first link in google. If it doesn't work, try the second one.

F
FreezkoSS, 2017-09-21
@FreezkoSS

group :production do
gem 'pg', '0.17.1'
end
bundle install --without production
Found a solution

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question