title: Vagrant cannot install nokogiri-dependent plugins
body: <p>I'm trying to install the rackspace plugin for vagrant (1.5.1):</p>
  
  <pre><code>vagrant plugin install vagrant-rackspace
  </code></pre>
  
  <p>But it complains</p>
  
  <blockquote>
    <p>Bundler, the underlying system Vagrant uses to install plugins,
    reported an error. The error is shown below. These errors are usually
    caused by misconfigured plugin installations or transient network
    issues. The error from Bundler is:</p>
    
    <p>An error occurred while installing nokogiri (1.6.1), and Bundler
    cannot continue. Make sure that <code>gem install nokogiri -v '1.6.1'</code>
    succeeds before bundling.</p>
  </blockquote>
  
  <p>However <code>gem install nokogiri -v '1.6.1'</code> and <code>/Applications/Vagrant/embedded/bin/gem install nokogiri -v '1.6.1'</code> both work.</p>
  
  <p>I've looked at a bunch of SO threads and blog posts. Things I've tried that have not worked</p>
  
  <ol>
  <li>Running <code>xcode-select --install</code></li>
  <li>Installing full xcode</li>
  <li>brew install gcc-4.2</li>
  <li>Remove rvm and rvm version of ruby</li>
  <li>Install nokogiri w/ built-in (mac) ruby and vagrant-embedded ruby</li>
  </ol>
  
  <p>Despite the fact that nokogiri installs fine (#5 above) without sudo on both counts, <code>vagrant plugin install vagrant-rackspace</code> still fails...</p>
  
  <p>So, in summary, I <strong>can</strong> install the nokogiri plugin, however I <strong>cannot</strong> install the vagrant rackspace plugin, can you help me get the plugin installed?</p>
  
  <p>Related threads</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/19643153/error-to-install-nokogiri-on-osx-10-9-maverick/19643909#19643909">Error to install Nokogiri on OSX 10.9 Maverick?</a></li>
  <li><a href="https://stackoverflow.com/questions/6753000/nokogiri-error-failed-to-build-gem-native-extension">nokogiri - ERROR: Failed to build gem native extension</a></li>
  </ul>
  
  <p><strong>Full output of</strong> <a href="http://pastebin.com/Y5umhsci" rel="nofollow noreferrer">vagrant plugin install vagrant-rackspace --debug</a></p>