Error installing Nokogiri 1.5.0 with rails 3.1.0 and ubuntu

前端 未结 8 1384
[愿得一人]
[愿得一人] 2020-11-29 03:38

Here is the error running bundle install vendor/gems on server:

Installing nokogiri (1.5.0) with native extensions
Gem::Installer::ExtensionBuildError: ERROR         


        
8条回答
  •  心在旅途
    2020-11-29 03:49

    Just do this:

    sudo apt-get install libxslt-dev libxml2-dev libxml2
    

    then type this in terminal (linux) / cmd(windows):

    export NOKOGIRI_USE_SYSTEM_LIBRARIES=true
    

提交回复
热议问题