unable to install nokogiri in ubuntu 12.04

前端 未结 8 1370
-上瘾入骨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: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

提交回复
热议问题