jekyll -v
)?Jekyll first time install fails even though Ruby V2.2.1 is installed:
$ sudo gem install jekyll
ERROR: Error installing jekyll:
jekyll requires Ruby version >= 2.0.0.
$ ruby -v
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
Ubuntu 14.04
(Please include the content causing the issue, any relevant configuration settings, and the command you ran)
s
Run the following commands and give me the output please:
dpkg --get-selections | grep -i ruby
ll /usr/{,local/}bin | grep -E 'gem|ruby'
dpkg --get-selections | grep -i ruby
libruby1.9.1 install
ruby install
ruby-dev install
ruby1.9.1 install
ruby1.9.1-dev install
I updated to Ruby 2 using curl -sSL https://get.rvm.io | bash -s stable --ruby
. This seems to have worked since $ ruby -v
returns 2.2.1. Sorry, what am I missing.
Ah got it. Turns out I had two version of ruby installed:
sudo ruby -v
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
ruby -v
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
I was trying to instal Jekyll with sudo gem install jekyll
if I just installed to my default users (no root) with gem instal jekyll
install went fine :-)
Thanks for your help :+1:
@glynhudson You should be able to pull down Ruby2.0 on Ubuntu 14.04. It does this weird thing with 1.9.1 because that was back in the days when Ruby Team did it wrong still so you'll have to select the alternative but at that point Ubuntu will have gem2.0 and ruby2.0 available for you.
Most helpful comment
Ah got it. Turns out I had two version of ruby installed:
I was trying to instal Jekyll with
sudo gem install jekyll
if I just installed to my default users (no root) withgem instal jekyll
install went fine :-)Thanks for your help :+1: