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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:32:28+00:00 2026-06-15T08:32:28+00:00

I’m getting this when trying to install rails using: gen install rails I barely

  • 0

I’m getting this when trying to install rails using: gen install rails
I barely have any idea what I’m doing :/ Trying to learn 🙂

ERROR:  Error installing rails:
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/json-1.7.5 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/json-1.7.5/ext/json/ext/generator/gem_make.out

Thanks in advance!

I’ve tried following directions here (http://rubyonrails.org/download) and here (http://rubygems.org/pages/download).

  • 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-15T08:32:30+00:00Added an answer on June 15, 2026 at 8:32 am

    I’m going to assume that you’re new to Ruby as well, just in case doing so can help others who need this answered. Please don’t take offense.

    It looks like your installation of Ruby is out of date or broken. Mac OSX comes with a default Ruby installed, but I honestly have no idea if it’s complete or out of date because I always install my own.

    Getting a Build Environment Ready

    By default, MacOSX does not have the capacity to build C applications, which is what the “standard” ruby runtime is. So, you need to install a C building toolchain, which in many cases is GCC & friends.

    Without XCode Installed

    1. Find the “Additional Developer Tools” link on the XCode product page
    2. Click it
    3. Find and install the “Command Line Tools” for your version of OSX

    With XCode Installed

    1. Open XCode
    2. Open the Downloads preferences pane
    3. Find the “Command Line Tools” and install them

    Once you’ve installed them, close any open terminal windows before proceeding to ensure that the build tools are in your path.

    Installing Ruby

    There are a few ways to get Ruby going on a new linux system, but the most widely recommended one is to use rvm.

    RVM is a tool which helps install and manage different Ruby environments, so you can easily switch between them and upgrade (or downgrade for a specific project or issue). It’s found here (direct link to the installation instructions) You most likely want to do the first of the Quick guided installs, which will simply install it for your user. It’ll also install the latest stable version of ruby.

    There is a GUI for installing RVM, called JewelleryBox. It’s fairly pretty and will notify you when there’s new versions.

    Once the app itself is installed:

    1. Click Add Ruby in the toolbar
    2. Choose a Ruby version. MRI is the “Official” ruby… It’s the one which kicked everything off. For now, the latest stable is ruby-1.9.3-p327, so pick that one 😉
    3. Make sure the make default checkbox is ticked, then hit the “Install” button.
    4. Hopefully everything worked!

    Installing Rails

    Ruby’s almost ubiquitous means of fetching libraries, including Rails, is with rubygems and the gem command. In this case, gem install rails should get you started. Oh, and make sure you open a new terminal window after installing a new ruby, and check it’s installed with ruby -v.

    Another nice thing

    Bundler is a neat package manager built on top of rubygems. Install it with gem install bundle (oh, and Rails will install it as a dependancy). Its got its docs at this link but for basic, raw rails, you shouldn’t need to do anything with it.

    Good Luck

    Have a blast learning Rails, I hope you find it makes webapp development more fun for you ^_^

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
This could be a duplicate question, but I have no idea what search terms
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have thousands of HTML files to process using Groovy/Java and I need to
I am trying to loop through a bunch of documents I have to put

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.