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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:32:27+00:00 2026-06-17T22:32:27+00:00

I am new to Ruby, and relatively new to the command line. I am

  • 0

I am new to Ruby, and relatively new to the command line. I am trying to install Jekyll to build a static site, and am having some issues. I have Ruby v. 1.8.7 and Ruby Gems v. 1.8.25 installed, but I get this error when I run:

$ sudo gem install jekyll

I get this:

Building native extensions.  This could take a while...
ERROR:  Error installing jekyll:
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/fast-stemmer-1.0.1 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/fast-stemmer-1.0.1/ext/gem_make.out

Can anyone tell me how to install the header files for ruby? Do I need to install them in a specific directory? Do I need to reinstall Ruby entirely in a different directory, as this is the original installing/setup that came with my Mac?

Update

I have installed XCode and installed RVM, but am unable to get past that point. When I try to install Ruby, I get this:

Daniels-MacBook-Air:~ danielrosenthal$ rvm -v

rvm 1.18.3 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

Daniels-MacBook-Air:~ danielrosenthal$ rvm install 1.8.7
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-1.8.7-p371.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
The provided compiler '/usr/bin/gcc' is LLVM based, it is not yet fully supported by ruby and gems, please read `rvm requirements`.
Daniels-MacBook-Air:~ danielrosenthal$ rvm requirements
Requirements for osx/10.8/x86_64

NOTE: 'ruby' represents Matz's Ruby Interpreter (MRI) (1.8.X, 1.9.X)
             This is the *original* / standard Ruby Language Interpreter
      'ree'  represents Ruby Enterprise Edition
      'rbx'  represents Rubinius

Additional Dependencies:
# For update-system:
Always update your system first!

# For rvm:
Install: bash curl git patch

# For ruby:
Install: osx-gcc-installer libksba openssl libreadline git zlib1g libyaml libsqlite3     sqlite3 libxml2 libxslt autoconf libc6 libgdbm ncurses automake libtool bison pkg-config

# For jruby:
Install: openjdk ant

Can someone please help me figure this one out? Thanks in advance.

  • 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-17T22:32:28+00:00Added an answer on June 17, 2026 at 10:32 pm

    Beyond (or instead of, it depends on the tool) Xcode, you’ll need the Command Line Tools, which can be installed from a preference pane in Xcode. Xcode can be found in the App Store and should be free or very cheap.

    By the way, I highly recommend you don’t mess with the system’s own ruby; install rvm in order to get a fully isolated ruby version (you can pick the version you prefer) where you can install all your gems.

    Once rvm is installed, just do something like:

    rvm install 1.8.7
    rvm use 1.8.7
    gem install jekyll
    

    UPDATE

    If you need gcc to compile a certain version of Ruby, you should install homebrew, and then install gcc using this command:

    brew tap homebrew/dupes && brew install apple-gcc42
    

    Otherwise try installing ruby 1.9.3 which AFAIK should work with LLVM/GCC (I’m not on a Mac right now and cannot check).

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

Sidebar

Related Questions

I’m relatively new to Ruby, Sinatra, and DataMapper, but have a question about DataMapper
I'm having trouble with a regex in Ruby (on Rails). I'm relatively new to
I am relatively new to Ruby, but I am trying to catch a variable
I'm relatively new to Ruby and have limited time therefore I try out simple
I'm relatively new to ruby and I'm trying to figure out the ruby way
I'm relatively new to Ruby on Rails. As of now have this working code
I am relatively new to Ruby, I am trying to open a file in
I'm brand new to ruby and rails and I'm having trouble creating a sign-out
Okay, so I am new to Ruby and I have a strong background in
I'm relatively new to Ruby on Rails. I need to use an iCalendar event

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.