jekyll: Unable to install with --pre under Ubuntu: Asks for Ruby >= 2.0.0 when it’s 2.2.0

Although I have Ruby 2.2 installed, the installation of Jekyll 3.0.0.beta is aborted due to the required ruby version being 2.0.0.

philipp@RAUMBASIS:~$ git --version
git version 2.3.2
philipp@RAUMBASIS:~$ sudo gem cleanup
[sudo] password for philipp: 
Cleaning up installed gems...
Clean Up Complete
philipp@RAUMBASIS:~$ sudo gem install jekyll --pre
Fetching: jekyll-3.0.0.pre.beta1.gem (100%)
ERROR:  Error installing jekyll:
    jekyll requires Ruby version >= 2.0.0.
philipp@RAUMBASIS:~$ ruby -v
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
philipp@RAUMBASIS:~$ 

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

drop the sudo and try: gem install jekyll --pre - when you run with sudo it goes to system ruby so you would need to check sudo ruby -v and sudo gem -v