I started getting the same error after updating to OS X El Capitan.
In my case, all I did was to install it:
sudo xcode-select --install
And it works fine for me.
More Related Contents:
- How to install command line tools on OSX Mavericks
- Ruby Gem install Json fails on Mavericks and Xcode 5.1 – unknown argument: ‘-multiply_definedsuppress’
- How to install a gem or update RubyGems if it fails with a permissions error
- Can’t install gems on OS X “El Capitan”
- Why does installing Nokogiri on Mac OS fail with libiconv is missing?
- Mac user and getting WARNING: Nokogiri was built against LibXML version 2.7.8, but has dynamically loaded 2.7.3
- Issue updating Ruby on Mac with Xcode 4.3.1
- Failed to build gem native extension (installing Compass)
- How can I switch to ruby 1.9.3 installed using Homebrew?
- Why do I get a “permission denied” error while installing a gem?
- How to avoid “cannot load such file — utils/popen” from homebrew on OSX
- Avoiding AppleScript through Ruby: rb-appscript or rubyosa?
- Error to install Nokogiri on OSX 10.9 Maverick?
- gem eventmachine fatal error: ‘openssl/ssl.h’ file not found
- How do you uninstall rbenv on macOS?
- ERROR: While executing gem … (Errno::EPERM) Operation not permitted [duplicate]
- ERROR: While executing gem … (Gem::FilePermissionError)
- How to use “RVM –default” on MacOSX
- Flutter pod install problem – undefined method `each_child’ for #
- Mac Rmagick won’t install with Xcode 4.2
- How to install Xcode Command Line Tools
- How to generate a random string in Ruby
- How do I copy a hash in Ruby?
- what is the functionality of “&: ” operator in ruby? [duplicate]
- Ruby Array Initialization [duplicate]
- What does ‘Monkey Patching’ exactly Mean in Ruby?
- Best way to convert strings to symbols in hash
- When is `eval` in Ruby justified?
- Shortcut to make case/switch return a value
- What is a regex to match a string NOT at the end of a line?