Search code examples
ruby-on-railshomebrewrbenv

Uninstall Ruby, rbenv and homebrew and reinstall Ruby on Rails with RVM on MAC


I'm very new to RoR specially on Mac. I have installed it many times on Ubuntu with RVM and I'm very comfortable with that. Here is what happened on Mac:

I went through instructions as explained here http://goo.gl/zsHcCC then when I got to the point to install Rails with " gem install rails " I got this error:

Error installing rails: ERROR: Failed to build gem native extension.

Now I want to roll-back everything and uninstall rbenv and it's ruby versions and reinstall the Ruby On Rails environment using RVM.

I tried to find how to uninstall Homebrew, RBENV and Ruby, but no success.

Thank you. Sia


Solution

  • Homebrew or Rbenv are very good tools to have as a dev, I would think twice before removing either.

    In this case I doubt they are at fault.

    Can you confirm you have installed the GCC command line utils for OSX by running $ xcode-select --install in your terminal.

    Here is a useful post explaining that process but I find that command generally works fine for me.

    If this succeeds what does your $ gem install rails output next?