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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:39:16+00:00 2026-06-16T00:39:16+00:00

I have installed XCode 4.5 and command line tools. Then I install the latest

  • 0

I have installed XCode 4.5 and command line tools. Then I install the latest RVM. When I try to install ruby1.9.3, I got the following errors. It seems like the C compiler can’t be executed.

chris$ rvm install ruby

No binary rubies available for: downloads/ruby-1.9.3-p327.
Continuing with compilation. Please read ‘rvm mount’ to get more information on binary rubies.
Fetching yaml-0.1.4.tar.gz to /Users/chris/.rvm/archives
Extracting yaml to /Users/chris/.rvm/src/yaml-0.1.4
Configuring yaml in /Users/chris/.rvm/src/yaml-0.1.4.
Error running ‘env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure –prefix=/Users/chris/.rvm/usr’, please read /Users/chris/.rvm/log/ruby-1.9.3-p327/yaml/configure.log
Compiling yaml in /Users/chris/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/chris/.rvm/usr
Installing Ruby from source to: /Users/chris/.rvm/rubies/ruby-1.9.3-p327, this may take a while depending on your cpu(s)…
ruby-1.9.3-p327 – #downloading ruby-1.9.3-p327, this may take a while depending on your connection…
ruby-1.9.3-p327 – #extracted to /Users/chris/.rvm/src/ruby-1.9.3-p327 (already extracted)
ruby-1.9.3-p327 – #configuring
Error running ‘env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure –enable-shared –disable-install-doc –prefix=/Users/chris/.rvm/rubies/ruby-1.9.3-p327 –with-opt-dir=/Users/chris/.rvm/usr’, please read /Users/chris/.rvm/log/ruby-1.9.3-p327/configure.log
There has been an error while running configure. Halting the installation.

The content in the log file:

2012-12-17 21:46:44] env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure –enable-shared –disable-install-doc –prefix=/Users/chris/.rvm/rubies/ruby-1.9.3-p327 –with-opt-dir=/Users/chris/.rvm/usr
checking build system type… x86_64-apple-darwin11.4.2
checking host system type… x86_64-apple-darwin11.4.2
checking target system type… x86_64-apple-darwin11.4.2
checking whether the C compiler works… no
configure: error: in /Users/chris/.rvm/src/ruby-1.9.3-p327′:
configure: error: C compiler cannot create executables
Seeconfig.log’ for more details

Then I have tried to install the GCC on the https://github.com/kennethreitz/osx-gcc-installer . The error still show up.

I have also tried to change the cmd to rvm install 1.9.3 --with-gcc=clang, but got same errors.

Do I need to set up some environment variable? Or do I miss something?

  • 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-16T00:39:18+00:00Added an answer on June 16, 2026 at 12:39 am

    Are the XCode command-line tools installed? I also use homebrew, but have been able to build ruby-1.9.3 from rvm on Lion and (now) Mountain Lion.

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

Sidebar

Related Questions

I have installed from XCode -> Preferences -> Downloads the Command Line Tools .
I've updated XCode to 4.5 (with iOS 6) and installed latest command line tools.
I have install the latest Xcode but this keep occurring. How could I solve
When executing gem install jekyll on OSX 10.8 with the standalone Command Line Tools
I have installed the developer tools. I can compile code via Xcode and according
I have just installed Sequel using the command sudo macgem install sequel . It
I currently have a target in XCode which calls 'packagemaker' command line tool from
I have a project which I have created in Xcode (starting with the command-line
I have installed Xcode 4.3.1. I am looking for the texturetool that is used
I have a brand new MacBook (air if it matters). I have installed Xcode

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.