Answer the question
In order to leave comments, you need to log in
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
I found a solution!
You need to run the command:
ridk exec pacman -S mingw-w64-x86_64-postgresql
And reinstall the pg gem.
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 questionAsk a Question
731 491 924 answers to any question