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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:21:02+00:00 2026-06-14T21:21:02+00:00

Attempting to get Rails running with postgresql on mac osx 10.8 to deploy to

  • 0

Attempting to get Rails running with postgresql on mac osx 10.8 to deploy to heroku. I’m new to mac’s.

Had lots of trouble just getting PostgrSQL installed so I could have botched up something trying all the potential solutions I could find searching on that subject. Which mainly appeared to be permissions and existing OSX installation. for this issue I’m noticing some things that make me think there is some fundamental directory or version conflict that I’m not sure how to resolve yet. But I could be wrong and it is something else! Any direction is appreciated.

retrieving an error such as this:

$ rake db:create:all
could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?

I’m not sure where and why it’s looking for the var directory but ~/var appears to be a link (alias) to /private/var (which has empty pgsql_socket & pgsql_socket_alt directories), /usr/local/var doesn’t have pgsql_socket directory but does have a postgres directory. both of those directories my admin user has read & write permission from the finder get info dialog.

The above error shown is followed by a long stack in the gems 1.8 directory and finishes with this:

Couldn't create database for {"pool"=>5, "database"=>"blog_development", "password"=>nil, "username"=>"USERNAME", "encoding"=>"unicode", "adapter"=>"postgresql"}

so checking:

   $ which psql
/usr/bin/psql

i do remember after installing postgresql i did this:

  initdb /usr/local/var/postgres -E utf8

Confirmed:

$ ps aux | grep postgres
username           346   0.0  0.1  2479616   7724   ??  S     3:08PM   0:00.03 /usr/local/bin/postgres -D /usr/local/var/postgres -r /usr/local/var/postgres/server.log

bundle show yields: pg (0.14.1)

$ postgres --version
postgres (PostgreSQL) 9.2.1

echo $PATH does not show any reference to posgresql.
this app is in a /Users/USERNAME/SUBDIR/APP.

Andy ideas on where i’ve messed up and how i can get this stuff up and running? I’d appreciate any direction. I’ll keep working through stack overflow and google discussions; although my stupidity may be unique!

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-06-14T21:21:04+00:00Added an answer on June 14, 2026 at 9:21 pm

    Add

    host: localhost
    

    to database.yml

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

Sidebar

Related Questions

I am running Rails 3 Beta2 and attempting to get Autotest working with rspec.
I am new to ruby and rails, so I am still attempting to get
I am attempting to get a rails 3.0.5 app up and running at http://blastoserver.com/
I have been attempting to get streaming working in Rails 3.2 on Heroku (see
I am attempting to get rails routes paths via nested resources. I have looked
I'm attempting to get my first hello world rails example going using the rails'
I've been trying to get Rails to play with the new Facebook Graph API.
I'm attempting to get over the hurdle of dynamic form fields in Rails --
I'm attempting to do a bundle update on my rails application but I get
Backstory: New to rails and attempting to install Passenger on a Mediatemple DV server.

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.