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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:50:17+00:00 2026-06-11T15:50:17+00:00

I have been trying for hours to set up my local environment correctly so

  • 0

I have been trying for hours to set up my local environment correctly so I could run an app and work on it locally, but it’s just not working…I’ve installed everything that seemed to be required, but for the life of me I just can’t get the rails server to start.

Here’s the code I’m getting back when i try and start the rails server. Any ideas?

localhost:badger user$ rails s

/Users/user/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/pg-0.11.0/lib/pg.rb:4:in `require': cannot load such file -- pg_ext (LoadError)
from /Users/user/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/pg-0.11.0/lib/pg.rb:4:in `<top (required)>'
from /Users/user/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler 1.1.3/lib/bundler/runtime.rb:68:in `require'
from /Users/user/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /Users/user/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in `each'
from /Users/user/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in `block in require'
from /Users/user/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `each'
from /Users/user/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `require'
from /Users/user/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler.rb:119:in `require'
from /Users/user/badger/config/application.rb:7:in `<top (required)>'
from /Users/user/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.0.7/lib/rails/commands.rb:28:in `require'
from /Users/user/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.0.7/lib/rails/commands.rb:28:in `block in <top (required)>'
from /Users/user/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.0.7/lib/rails/commands.rb:27:in `tap'
from /Users/user/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/railties-3.0.7/lib/rails/commands.rb:27:in `<top (required)>'
from script/rails:6:in `require' 
from script/rails:6:in `main'


Right now I’m getting this back…

localhost:badger user$ rails s
=> Booting WEBrick
=> Rails 3.0.7 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.0.7/lib/active_record/connection_adapters/postgresql_adapter.rb:929:in `initialize': FATAL:  password authentication failed for user "edwin" (PGError)

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.0.7/lib/active_record/connection_adapters/postgresql_adapter.rb:929:in `new'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.0.7/lib/active_record/connection_adapters/postgresql_adapter.rb:929:in `connect'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.0.7/lib/active_record/connection_adapters/postgresql_adapter.rb:228:in `initialize'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.0.7/lib/active_record/connection_adapters/postgresql_adapter.rb:25:in `new'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.0.7/lib/active_record/connection_adapters/postgresql_adapter.rb:25:in `postgresql_connection'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:229:in `new_connection'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:237:in `checkout_new_connection'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:191:in `block (2 levels) in checkout'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:187:in `loop'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:187:in `block in checkout'

from /Users/user/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:186:in `checkout'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:94:in `connection'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:317:in `retrieve_connection'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.0.7/lib/active_record/connection_adapters/abstract/connection_specification.rb:97:in `retrieve_connection'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.0.7/lib/active_record/connection_adapters/abstract/connection_specification.rb:89:in `connection'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.0.7/lib/active_record/associations.rb:1806:in `create_has_and_belongs_to_many_reflection'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.0.7/lib/active_record/associations.rb:1411:in `has_and_belongs_to_many'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.0.7/lib/active_record/autosave_association.rb:137:in `has_and_belongs_to_many'

from /Users/user/badger/app/models/user.rb:7:in `<class:User>'

from /Users/user/badger/app/models/user.rb:1:in `<top (required)>'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:454:in `load'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:454:in `block in load_file'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:596:in `new_constants_in'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:453:in `load_file'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:340:in `require_or_load'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:491:in `load_missing_constant'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:183:in `block in const_missing'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:181:in `each'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:181:in `const_missing'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/inflector/methods.rb:124:in `block in constantize'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/inflector/methods.rb:123:in `each'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/inflector/methods.rb:123:in `constantize'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:528:in `block in <class:Reference>'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:538:in `yield'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:538:in `default'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:538:in `get'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/devise-1.4.2/lib/devise/mapping.rb:84:in `to'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/devise-1.4.2/lib/devise/rails/routes.rb:180:in `block in devise_for'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/devise-1.4.2/lib/devise/rails/routes.rb:176:in `each'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/devise-1.4.2/lib/devise/rails/routes.rb:176:in `devise_for'

from /Users/user/badger/config/routes.rb:2:in `block in <top (required)>'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.0.7/lib/action_dispatch/routing/route_set.rb:233:in `instance_exec'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.0.7/lib/action_dispatch/routing/route_set.rb:233:in `draw'

from /Users/user/badger/config/routes.rb:1:in `<top (required)>'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:235:in `load'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:235:in `block in load'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:in `block in load_dependency'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:596:in `new_constants_in'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:in `load_dependency'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:235:in `load'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.0.7/lib/rails/application.rb:127:in `block in reload_routes!'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.0.7/lib/rails/application.rb:127:in `each'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.0.7/lib/rails/application.rb:127:in `reload_routes!'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.0.7/lib/rails/application.rb:120:in `block in routes_reloader'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/file_update_checker.rb:32:in `call'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/file_update_checker.rb:32:in `execute_if_updated'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.0.7/lib/rails/application/finisher.rb:51:in `block (2 levels) in <module:Finisher>'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.0.7/lib/rails/application/finisher.rb:52:in `call'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.0.7/lib/rails/application/finisher.rb:52:in `block in <module:Finisher>'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.0.7/lib/rails/initializable.rb:25:in `instance_exec'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.0.7/lib/rails/initializable.rb:25:in `run'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.0.7/lib/rails/initializable.rb:50:in `block in run_initializers'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.0.7/lib/rails/initializable.rb:49:in `each'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.0.7/lib/rails/initializable.rb:49:in `run_initializers'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.0.7/lib/rails/application.rb:134:in `initialize!'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.0.7/lib/rails/application.rb:77:in `method_missing'

from /Users/user/badger/config/environment.rb:5:in `<top (required)>'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in `require'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in `block in require'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:in `block in load_dependency'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:596:in `new_constants_in'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:in `load_dependency'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in `require'

from /Users/user/badger/config.ru:3:in `block in <main>'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.2.5/lib/rack/builder.rb:46:in `instance_eval'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.2.5/lib/rack/builder.rb:46:in `initialize'

from /Users/user/badger/config.ru:1:in `new'

from /Users/user/badger/config.ru:1:in `<main>'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.2.5/lib/rack/builder.rb:35:in `eval'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.2.5/lib/rack/builder.rb:35:in `parse_file'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.2.5/lib/rack/server.rb:162:in `app'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.2.5/lib/rack/server.rb:253:in `wrapped_app'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.2.5/lib/rack/server.rb:204:in `start'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.0.7/lib/rails/commands/server.rb:65:in `start'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.0.7/lib/rails/commands.rb:30:in `block in <top (required)>'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.0.7/lib/rails/commands.rb:27:in `tap'

from /Users/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.0.7/lib/rails/commands.rb:27:in `<top (required)>'

from script/rails:6:in `require'

from script/rails:6:in `<main>'
  • 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-11T15:50:18+00:00Added an answer on June 11, 2026 at 3:50 pm

    Open config/database.yml and note the username for your development database connection.

    On your terminal type createuser #<the username>, say no to superuser, yes to create db, and no to create roles. (NO, YES, NO).

    Then rake db:create and rake db:migrate.

    Now rails s.

    You should be up and running.

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

Sidebar

Related Questions

This is crazy, I have been trying for hours to get this to work.
have been trying couple of hours now to make my iphone app universal. The
I have been trying to fix this problem for hours. My app keeps crashing
I have been trying for several hours now to get sorl-thumbnail working, but it
I have been trying to graph my data set using GNUPLOT, but so far
I have for the last couple of hours been trying to set up a
I have been trying to find a solution for past few hours but unable
I have been trying to understand this algorithm for past two hours, but can't
I have been trying for hours to find a way to solve the issue,
I have been trying this for hours without success. http://replicaisland.googlecode.com/svn/trunk/ I have added the

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.