Installing Jekyll on Ubuntu 14.04

后端 未结 2 1948
予麋鹿
予麋鹿 2020-12-05 16:40

I\'ve been having some issues installing Jekyll on Ubuntu. Here are some of the versions I have:

trevor~$ ruby -v
ruby 2.2.4p230 (2015-12-16 revision 53155)          


        
相关标签:
2条回答
  • 2020-12-05 16:59

    The error you are getting says it all ERROR: Error installing jekyll: jekyll requires Ruby version >= 2.0.0. You need a version of Ruby that is at least 2.0.0 or greater. I always recommend the latest version unless you need a different version for a specific reason.

    So what you need to do is to compile a newer version of ruby. I recommend the latest version 2.3.0. You can download it from ruby-lang.org/en/download. Compiling isn't as hard as everyone says it is, there is a great write up from Compiling Easy HowTo. Once you have it compiled you should be able to install jekyll with the gem and get it up and running. If you have any problems or get any errors come back and I will do my best to help you.

    0 讨论(0)
  • 2020-12-05 17:00

    I did try installing a couple different versions. Would this cause a
    problem?

    No

    Follow the given step would help.

    1: gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

    2: \curl -sSL https://get.rvm.io | bash # install RVM (development version)

    3: rvm get head # Make Sure RVM up to date

    4: rvm install ruby # will install latest version of ruby

    5: rvm list # Listing install rubies will you get versions of ruby which is installed by RVM

    6: rvm use < ruby-version > # for instances ruby-1.9.3-p125

    7: gem install jekyll

    Edit Update As you edited answer in your senerio

    trevor~$ rvm list
    
    rvm rubies
    
       ruby-2.0.0-p643 [ x86_64 ]
       ruby-2.2.1 [ x86_64 ]
    =* ruby-2.2.4 [ x86_64 ]
    

    rvm use 2.2.1
    gem install jekyll
    

    Would work !!!

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