Failure when installing xcode-install: jwt requires Ruby 2.1
I am trying to install xcode-install (2.0.9, 2.1.1, 2.3.1) and getting weird dependency issues.
Based on RubyGems xcode-install requires only Ruby >= 2.0.0. But unfortunately I get the following errors:
ERROR: Error installing xcode-install: jwt requires Ruby version >= 2.1
I do not want to update Ruby to some newer version as it is not that easy. Could it be that the dependencies changed and xcode-install requires Ruby 2.1?
The weird thing is that 4 months ago I installed version 2.0.9 and it worked without problems. So it seems that one of the dependencies is not pinning to a specific version and requires now a new Ruby.
@martinm82 I have used rbenv as here https://jasoncharnes.com/install-ruby/ and add these lines to file ~/.bash_profile
export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv init -)"