C
C
carbanak012021-06-02 13:30:51
Ruby on Rails
carbanak01, 2021-06-02 13:30:51

Why can't gem pg install when starting rails server?

Hello!
I start the rails server with the command.
rails s

There was an error while trying to load the gem 'pg'.
I installed the gem successfully, ran the commands Bundle install, bundle update, bundle lock.

What could be the problem? Tell me please =)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
carbanak01, 2021-06-02
@carbanak01

I found a solution!
You need to run the command:
ridk exec pacman -S mingw-w64-x86_64-postgresql
And reinstall the pg gem.

R
Roman Mirilaczvili, 2021-06-02
@2ord

You need to check that there is a line in the Gemfile
gem 'pg'
Then run
bundle install

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question