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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:31:07+00:00 2026-06-14T05:31:07+00:00

I inherited a Ruby on Rails project. It was delivered all zipped up so

  • 0

I inherited a Ruby on Rails project. It was delivered all zipped up so as a first step, I want to get it running on my desktop Mac:

script/server

=> Booting WEBrick…
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:74:in establish_connection': Please install the postgresql adapter:gem install activerecord-postgresql-adapter` (no such file to load — pg) (RuntimeError)

So, I try to install the activerecord-postgresql-adapter gem and then get this:

$ sudo  gem install activerecord-postgresql-adapter
Password:
Building native extensions.  This could take a while...
ERROR:  Error installing activerecord-postgresql-adapter:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can’t find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h

Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/pg-0.14.1 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/pg-0.14.1/ext/gem_make.out

How can I get this required gem installed?

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-14T05:31:08+00:00Added an answer on June 14, 2026 at 5:31 am

    Assuming you are familiar with rails and got it installed properly, you need to use macports to install postgre’s driver, before you can use any gem for it.

    There are instructions here, or (more recent, uses brew) here

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

Sidebar

Related Questions

I have an inherited app, running on Rails 3 in Ruby 1.9, and its
My env: ruby-1.9.2-preview3; rails-3.0.0.beta3 class PostFather < ActiveRecord::Base def self.inherited(subclass) end end class Post
I have two application servers running Ruby on Rails sharing the same MySQL database
It is known that in Ruby, class methods get inherited: class P def self.mm;
Hi I'm new in ruby and rails and I want to create a new
I've been trying to install Shoulda script/plugin install git://github.com/thoughtbot/shoulda.git but all I get is:
I've just inherited a website built with Ruby on Rails. I have never used
I have an existing Ruby On Rails, which works fine (I inherited it). I
I'm new to ruby on rails, and I've inherited a codebase. Right now I
I inherited a shell-script application that is a combination of kshell scripts, awk, and

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.