New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install with --pre under Ubuntu: Asks for Ruby >= 2.0.0 when it’s 2.2.0 #3558
Comments
That's gotta be a bug in RubyGems? |
I try to update Ruby and RubyGems. After that I’ll try using a different Ruby version with rvm (i.e. 2.1.5). |
This might either be an edge on your system (what do you use to manage your Ruby? I build mine into
|
I updated Ruby via rvm from 2.2.0 to 2.2.1. Also did Next thing. |
What is the value of $GEM_HOME? |
philipp@RAUMBASIS:~$ echo $GEM_HOME
/home/philipp/.rvm/gems/ruby-2.2.1 (Changes accordingly when I do |
For now since I don't know how this bug is existing lets just see if we can work around the edge:
|
philipp@RAUMBASIS:~$ find ${GEM_HOME} -type f -name jekyll.gemspec -exec sed -i 's/10 s/^/#//g' {} \; && gem uninstall jekyll
Remove executables:
jekyll
in addition to the gem? [Yn] y
Removing jekyll
Successfully uninstalled jekyll-2.5.3
philipp@RAUMBASIS:~$ sudo gem install jekyll --pre
[sudo] password for philipp:
ERROR: Error installing jekyll:
jekyll requires Ruby version >= 2.0.0. Got it running under OS X (same Ruby/RubyGems version) in the meantime without issues. |
Also @kleinfreund we provide a jekyll binary for Ubuntu now (with isolated Ruby and packages) in the meantime while I try to figure out how this is happening perhaps you can use that: https://github.com/jekyll/jekyll/releases/tag/v3.0.0.beta2 |
drop the |
@mpapis Yikes, I always felt that this was not the right way to handle things, since installing Ruby Gems on OS X always worked without sudo. Best thing would be to reinstall the whole stuff without sudo, huh? @envygeeks Thanks for you help, I’ll first try to get Ruby/RubyGems to work on Ubuntu without sudo as this seems to be the more logical approach. I’ll come back to the binaries later. |
Alright, it worked. What did I do?
Thank you guys for your help 👍 |
Closing this ticket now then. Glad it's fixed! Thanks @mpapis |
It was the uses of |
Same here. Thanks! |
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.
The text was updated successfully, but these errors were encountered: