Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6695027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:10:19+00:00 2026-05-26T06:10:19+00:00

I am getting this error when running heroku rake db:migrate: Please install the postgresql

  • 0

I am getting this error when running heroku rake db:migrate:

Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (pg   is not part of the bundle. Add it to Gemfile.)

I looked online and found to add the ‘pg’ gem. I added it using gem install pg and also put it in my gem file. I have done a bundle install. When I try and do the command ‘sudo gem install activerecord-postgresql-adapter’, it tells me the gem can not be found.

Also, I added ‘pg’ to my gemfile and tried to run my code on my local machine and it would not run because it could not find pg. I somehow got pg to install and my program works again on my local computer but it still gives me the error when performing heroku rake db:migrate

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:10:19+00:00Added an answer on May 26, 2026 at 6:10 am

    After you’ve added gem 'pg' to your gemfile, you’ll need to also run bundle from the terminal under your application root folder as this will regenerate your ‘Gemfile.lock’ file.

    Then commit your changes, and do a git push heroku that should do the trick.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running Valgrind and I'm getting the following error (this is not the only
I am getting this error when running ./manage.py migrate app_name While loading migration 'whatever.0001_initial':
I am getting this error mysql is not running but lock exist when I
I am getting this error when running a webpage in internet explorer 8 (not
I'm getting this error message whiile running a Webservice I'm working on. it builds,
I'm getting this error when trying to access my webservice running inside tomcat. Caused
I'm running IIS 6.0 on Windows 2003 and started getting this error: Compiler Error
I'm trying to install Rcpp on Ubuntu 10.04 and getting this error (which implies
I am getting this error while running a hadoop pipes program. The program compiles
I'm getting this error while running tomcat 'java.lang.ClassNotFoundException: com.mysql.jdbc.Driver'. I'm using a combination of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.