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

  • Home
  • SEARCH
  • 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 7764567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:56:43+00:00 2026-06-01T14:56:43+00:00

For a new project I’m trying to run postgres locally. Mac Lion has Postgres

  • 0

For a new project I’m trying to run postgres locally.

Mac Lion has Postgres installed (9.1.2). I modified my path in .bash_profile (per another SO thread) so now I have no trouble creating a database or user using the psql utility.

I uninstalled and re-installed the pg gem (0.13.2) using env ARCHFLAGS="-arch x86_64" gem install pg per the excellent blog at http://blog.willj.net/2011/05/31/setting-up-postgresql-for-ruby-on-rails-development-on-os-x/

My Gemfile uses the pg gem for development, test, and production. I’ve run bundle install.

My database.yml looks like this (and the username and database names are correct and I verified I can access the database fr that username using the psql utility):

development:
 adapter: postgresql
  encoding: unicode
  database: ddchart_development
  pool: 5
  username: ddchart
  password:

(same for test and production, except _test and _production. Password is blank, right?)

When I run bundle exec rake db:migrate it aborts:

rake aborted!
couldn't parse YAML at line 8 column 10

Any help would be appreciated!

  • 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-01T14:56:45+00:00Added an answer on June 1, 2026 at 2:56 pm

    If you pasted the code correctly, there are errors in the code. For example, there’s only one space before “adapter”, but two before following lines.

    In YAML, indentation matters.

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

Sidebar

Related Questions

Working on a new project I've run into a major roadblock that has brought
I came aboard a new project with a new company and we are trying
I have a new project in which I am trying to do the following:
I created a new project of type Asp.net MVC 4 I installed the package
I have a (new) project and it has a web service reference. It has
I've started a new project in WPF 4 (.NET 4) and trying to see
I just started a new project which has previously been developed in Eclipse. I
I have a new project that I am trying to get up and running
I have a new project that has a bit of code at the beginning
A new project with some interesting requirements has arrived on my desk. I need

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.