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

后端 未结 5 1120
终归单人心
终归单人心 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:32

    You can try the solution which I used so far to fix the same...

    Remove all older libxml-ruby and nokogiri

    use below command for the same

    sudo gem uninstall nokogiri libxml-ruby
    

    then you can try out the version of nokogiri, was having issue. THat should works perfect.

    sudo gem install nokogiri -v '1.6.1' 
    

    Much similar answer reported by Dan but some little bit change. Thanks.

提交回复
热议问题