unable to install nokogiri in ubuntu 12.04

前端 未结 8 1384
-上瘾入骨i
-上瘾入骨i 2021-02-13 03:36

I am trying to setup rails env on my new ubuntu machine. But I am facing trouble while install nokogiri gem.. I have installed libxslt and libxml2 libs thourgh rvm pkg command a

相关标签:
8条回答
  • 2021-02-13 04:13

    For Ruby 1.9.3 and 2.0, libxslt-dev and libxml2-dev are required.

    sudo apt-get install libxslt-dev libxml2-dev

    0 讨论(0)
  • 2021-02-13 04:19

    this is what worked for me:

    1. install nokogiri's dependencies

      sudo apt-get install libxslt-dev libxml2-dev

    2. make sure nokogiri uses the system libraries

      export NOKOGIRI_USE_SYSTEM_LIBRARIES=1

    3. install nokogiri with the --verbose option, to get a better understanding of any problems

      gem install --verbose nokogiri

    0 讨论(0)
提交回复
热议问题