ruby-install
ruby-install copied to clipboard
Need to check for any openjdk
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!
Is there a workaround for this other than installing openjdk 7?
In fact there is one. Changing "apt: openjdk-7-jdk" on the dependencies file to openjdk 8 will make it work.
You can also
$ apt-get install openjdk-8-jdk
$ ruby-install jruby --no-install-deps