postmodern / ruby-install

Installs Ruby, JRuby, TruffleRuby, or mruby
MIT License
1.91k stars 255 forks source link

Need to check for any openjdk #283

Open MortalCatalyst opened 7 years ago

MortalCatalyst commented 7 years ago

As debian and ubuntu now default to openjdk8 or greater the check for jruby should be of a value greater than 8 otherwise it fails.

Installing dependencies for jruby 9.1.5.0 ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package openjdk-7-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'openjdk-7-jdk' has no installation candidate
!!! Installing dependencies failed!
ssriram commented 6 years ago

Is there a workaround for this other than installing openjdk 7?

ssriram commented 6 years ago

In fact there is one. Changing "apt: openjdk-7-jdk" on the dependencies file to openjdk 8 will make it work.

grzuy commented 6 years ago

You can also

$ apt-get install openjdk-8-jdk
$ ruby-install jruby --no-install-deps