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 7021165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:24:52+00:00 2026-05-27T23:24:52+00:00

I want to run a Rails app on Heroku so I installed PostgreSQL on

  • 0

I want to run a Rails app on Heroku so I installed PostgreSQL on my Snow Leopard machine using Homebrew. Currently, brew installs 9.1.2 into /usr/local/Cellar/postgresql. After some research, I discovered that the free, shared version of Heroku requires 8.3.x. While homebrew-alt doesn’t have 8.3, it does have 8.4 so I downloaded it instead and it installed into /usr/local/Cellar/postgresql8. I then confirmed that I am able to create and run databases on each version. Thinking that I could use “brew [link | unlink] to switch back and forth, I ran “brew unlink postgresql8” and then “brew link postgresql”. However, running the latter command results in this error:

Linking /usr/local/Cellar/postgresql/9.1.2…
Error: Cannot link postgresql
Another version is already linked: /usr/local/Cellar/postgresql/9.1.2

Is there any way to do this (switch back and forth) or am I misunderstanding how brew link/unlink is supposed to be used?

By the way, “brew list” shows “postgresql” and “postgresql8” so I don’t think it’s the case that I should say “brew link postgresql9”.

Thanks.

  • 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-27T23:24:52+00:00Added an answer on May 27, 2026 at 11:24 pm

    Use brew switch, which is an extension shipped with Homebrew. In your case, you could use 8.4 by running

    $ brew switch postgresql 8.4
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to run an instance of wordpress within my rails app. I currently
I have a rails app I want to run on heroku to test. I
I currently run my Rails app using: jruby --1.9 -J-XX:+CMSClassUnloadingEnabled -J-XX:+UseConcMarkSweepGC -J-XX:MaxPermSize=256m -S rails
I want to run a static code analysis over my Rails app. Is there
I'm working on a rails app and using spine, I want to use the
I am using Ernie Miller's Metasearch in a rails 3 app and have run
For a Rails 3.1 app, I want to develop locally using SQLite and deploy
I want to be able to deply a jruby rails 3.1 app to Heroku.
I want to run a web application on php and mysql, using the CakePHP
I want to run an Apache on my local machine since I can only

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.