Failed to build gem native extension when install RedCloth-4.2.9 install Linux

前端 未结 8 2100
清酒与你
清酒与你 2020-12-23 15:14

I want to install Octopress in my computer. I try to do it like

Octopress document.

When I run

bundle install

相关标签:
8条回答
  • 2020-12-23 15:46

    it apears you are not using rvm for managing your ruby installation. I think best would be to try rvm, here's a very good guide, you can stop without installing rails: ruby with rvm

    Then simply

    $gem install RedCloth
    

    Unmanaged ruby gems are a pain, I try to avoid them.

    0 讨论(0)
  • 2020-12-23 15:47

    None of the answers worked on my Ubuntu 14.04.1 LTS. Upgrade to ruby 2.0 fixed the problem for me:

    sudo apt-get install ruby2.0 ruby2.0-dev
    sudo ln -s /usr/bin/ruby2.0 /usr/bin/ruby
    sudo ln -s /usr/bin/gem2.0 /usr/bin/gem
    sudo gem install bundler
    
    0 讨论(0)
提交回复
热议问题