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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:52:38+00:00 2026-05-28T07:52:38+00:00

My environment: Mac OS X v10.7.2 with Xcode 4.2.1 I am trying to build

  • 0

My environment: Mac OS X v10.7.2 with Xcode 4.2.1

I am trying to build ruby 1.9.3 on Lion with Xcode 4.2.1. I understand there’s an issue with the llvm-based gcc compiler that comes with Xcode 4.2.1. But I’m trying to work around it by following these instructions, http://goo.gl/Sc39g. I was able to get a little farther along, but then ran into these 2 problems:

  1. #error Please add -D_FILE_OFFSET_BITS=64 to your compile flags!
  2. fatal error: ‘sys/statfs.h’ file not found

The complete configure output is here: http://cl.ly/2q2G3p3r3S133i0U1i1e (the errors are all the way in the bottom)

Please advise. Thanks in advance.

P.S. I’ve read the list of similar/related questions, but none seem to address these 2 particular errors, or I missed them as my eyes are starting to glaze over from all the things I’ve tried to get this build to work. If this question has already been answered, please point me to the answer, and accept my apologies for the duplication.

  • 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-05-28T07:52:39+00:00Added an answer on May 28, 2026 at 7:52 am

    Have you tried to add the flag?

    $ make clean
    $ ./configure --with-gcc=clang --prefix=$HOME/.rbenv/versions/1.9.2-p290 CFLAGS=-D_FILE_OFFSET_BITS=64
    

    Did you install macfuse? If yes is this thread useful?

    Or if you don’t mind installing gcc and brew, you should have more luck compiling ruby with rbenv or rvm. This article show you how to install 1.9.3 with gcc and rbenv.

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

Sidebar

Related Questions

my ruby environment in my mac Leopard is all messed up. And I want
I am trying to setup my dev environment on my Mac (running Mac OS
How do I get the command-line build tools installed with the current Xcode/Mac OS
I recently started a new job where the office environment is Mac-based, but I
I am new to MAC environment. Is there any way that I can convert
if mono touch is available than why we should use mac environment(sdk,xcode+Interface Builder)? what
I am trying to integrate Netbeans 6.9 or 7 into my development environment (Mac
I am using Xcode 3.2.5 with the LLVM 1.6 compiler. Some of my classes
Why does this happen? ruby script/console Loading development environment (Rails 2.0.2) >> exit jay-z-mac-pro:justinz$
My environment: Mac OSX 10.6 Snow Leopard Ruby 1.9.2p0 Rails 3.0.0 thinking-sphinx (2.0.0.rc1) Sphinx

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.