unable to install nokogiri in ubuntu 12.04

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

    Since I stumbled upon this, here's what I did to resolve:

    sudo apt-get install ruby1.9.1-dev
    
    0 讨论(0)
  • 2021-02-13 03:56

    On 14.0.4, using RVM, you need:

    sudo apt-get install -y libgmp-dev
    
    0 讨论(0)
  • 2021-02-13 03:56

    Install ruby via rvm and then install below libs:

    sudo apt-get install libxslt-dev libxml2-dev
    

    now try to install gem without sudo:

    gem install nokogiri
    
    0 讨论(0)
  • 2021-02-13 04:00

    apt-get install libxslt-dev libxml2-dev -y && export NOKOGIRI_USE_SYSTEM_LIBRARIES=1 && gem install --verbose nokogiri

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

    Try this:

    # nokogiri requirements
    sudo apt-get install libxslt-dev libxml2-dev
    gem install nokogiri
    
    0 讨论(0)
  • 2021-02-13 04:13

    for Centos / Redhat, try this: sudo yum install libxslt-devel libxml2-devel

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