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

前端 未结 8 2234
清酒与你
清酒与你 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:43

    My ubuntu 12.04 solution is install the ruby1.9.1-full version, that can resolve this issue.

    sudo apt-get install ruby1.9.1-full
    

    you can execute command:

    sudo update-alternatives --config ruby
    

    to select the altiernative ruby which you have installed. and then, execute below commands to finish the octopress deploy:

    git clone https://github.com/erizhang/octopress.git octopress
    cd octopress/
    sudo gem install bundler
    sudo gem install RedCloth -v '4.2.9'
    bundle install
    rake install
    

    below commands you can find from octopress deploy guideline page:

    rake setup_github_pages
    sudo rake setup_github_pages
    sudo rake generate
    sudo rake deploy
    

    Hope it's helpful for you, thanks

提交回复
热议问题