Install Nokogiri 1.6.1 under Ruby 2.0.0p353 (rvm based installation) fails (OSX Mavericks)?

后端 未结 5 1116
终归单人心
终归单人心 2020-12-19 06:51

I\'ve tried to install Nokogiri 1.6.1 under Ruby and RVM but is failing with the following error:

Gem::Installer::ExtensionBuildError: ERROR: Failed to build         


        
5条回答
  •  一整个雨季
    2020-12-19 07:34

    I wrote a post on this after dealing with it myself. No need for homebrew.

    There was a few issues I ran into, the first one being that the development tools cannot be found, and the second one that the libxml is too old.

    Run the following commands in the rubyconsole:

    $ sudo xcode-select -switch /Library/Developer/CommandLineTools
    $ gem uninstall nokogiri libxml-ruby
    $ gem install nokogiri
    

提交回复
热议问题