Alex Zaitsev
Alex Zaitsev

Reputation: 1781

install jekyll in linux mint

I tried to install jekyll on my Linux heavenpc 3.16.0-38-generic #52~14.04.1-Ubuntu SMP Fri May 8 09:43:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
I have appropriate suplementary packages installed:

god@heavenpc ~ $ ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
god@heavenpc ~ $ rvm -v
rvm 1.27.0 (master) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
god@heavenpc ~ $ gem -v
2.5.1

But can't install jekyll:

god@heavenpc ~ $ gem install jekyll
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /home/god/.rvm/gems/ruby-2.3.0 directory.
god@heavenpc ~ $ sudo gem install jekyll
ERROR:  Error installing jekyll:
    jekyll requires Ruby version >= 2.0.0.

I have another ruby but it is not default (and rvm doesn't show it):

god@heavenpc ~ $ whereis ruby
ruby: /usr/bin/ruby /usr/bin/ruby2.0 /usr/lib/ruby /usr/bin/X11/ruby /usr/bin/X11/ruby2.0 /usr/share/man/man1/ruby.1.gz
god@heavenpc ~ $ cd /usr/bin/ && ./ruby -v
ruby 1.9.3p551 (2014-11-13) [x86_64-linux] Brightbox
god@heavenpc /usr/bin $ rvm list rubies

rvm rubies

=* ruby-2.3.0 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

Seems that this not default ruby is used while installing jekyll. I tried all approaches i've googled but nothing helped.

Upvotes: 1

Views: 601

Answers (1)

user3723506
user3723506

Reputation:

Add write permissions to .rvm folder chown -R god ~/.rvm. Then try gem install jekyll

sudo gem install jekyll is using the system wide ruby in your case. So, another option is to update ruby using apt-get and then do sudo gem install jekyll.

Upvotes: 2

Related Questions