Installing Ruby via RVM fails to configure

I’m trying to install Ruby via RVM by running rvm install 1.9.3 but am getting a bunch of errors:

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/kuzjaved/.rvm/usr, please read /Users/kuzjaved/.rvm/log/ruby-1.9.3-p327/yaml/configure.log

Error running make, please read /Users/kuzjaved/.rvm/log/ruby-1.9.3-p327/yaml/make.log

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/kuzjaved/.rvm/rubies/ruby-1.9.3-p327 --with-opt-dir=/Users/kuzjaved/.rvm/usr, please read /Users/kuzjaved/.rvm/log/ruby-1.9.3-p327/configure.log

There has been an error while running configure. Halting the installation.

I’v then tried:

rvm install 1.9.3 --with-gcc=clang

Same errors here too! What’s going on and how can I fix it?

  • Would it be worth migrating a ruby install to RVM?
  • Is there a utility for converting RVM default.gems files to Bundler Gemfiles?
  • Problem installing Ruby 1.9.2 on Mac OS Lion
  • error while installing ruby 1.9.3 using rvm
  • bundle install failed due to Bundler::GemspecError: Could not read gem at
  • Installing a gem (rvm_gem) from a private gem repository with Chef?
  • Error during rails installation Ubuntu 12.04
  • Using Bundler, RVM and RubyGems
  • 6 Solutions collect form web for “Installing Ruby via RVM fails to configure”

    If you want to make the whole process simpler, download RailsInstaller for OSX from

    It is bundled with all the common packages needed for a full Rails stack; All dependencies are covered for a generic rails installation.

    Get home-brew.Then

    brew install ruby 

    Make sure Xcode is installed, and all the command line plugins too.

    RVM isn’t the only Ruby version manager. There’s plenty of others, see here. There’s also chruby, which isn’t on that list.

    To uninstall RVM, run rvm implode and restart the Terminal.

    RVM comes with a command that describes what you need for ruby:

    rvm requirements

    It should be displayed to you on first ruby installation, but if you missed it you can always read it again.

    Also the output you posted includes paths to additional log files, you did not show them – I guess there are some clues that would show what is wrong.

    Finally I do online support for RVM users here:

    $ rvm requirement
    Unrecognized command line argument: 'requirement' ( see: 'rvm usage' )

    My edit to replace rvm requirement by rvm requirements in mpapis answer has been quickly rejected.
    I am sorry to have to insist. I’m using a recent version rvm 1.16.6.

    Maybe you can try with rbenv (before you should get rid off rvm, launching command rvm implode and removing rvm settings from ~/.bash_profile, ~/.profile or ~/.bashrc:

    Get Homebrew and launch the following commands:

    brew install rbenv 
    brew install ruby-build
    echo 'eval "$(rbenv init -)"' >> ~/.bashrc

    Exit from Terminal and reopen it. Then you can install a ruby with

    rbenv install 1.9.3-p327

    or your preferred ruby, finding it from rbenv install --list

    Ruby is the best programming language in the world - Ruby on Rails.