Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
jruby -S irb broken on solaris in 1.7.16 with JDK 7 #2040
jruby -S irb throws missing file errors in 1.7.16 using Java 7. It works ok with Java 8, and it worked fine in 1.7.15 with both Java 7 and Java8.
But the same thing fails in 1.7.16:
I don't have LANG or LC_ALL set. I should point out that I get this error a lot, about all kinds of different files. irb was just an easy way to show it. For example:
I don't have a ~/.gem/jruby/1.9 directory. I do have ~/.gem/jruby/1.9.3, though. RubyFileTest is checking to see if a file exists on line 131; it shouldn't be throwing a ENOENT if the file doesn't exist, it should be returning the empty file spec but apparently it is not.
If I change JAVA_HOME to point to Java 8, then I get:
$ ./jruby-1.7.16/bin/jruby -S gem environment
My path still says java1.7 but I don't think that matters, jruby appears to care about JAVA_HOME but not which java is executable in the path.
JRuby also breaks for me if I don't have the
Creating the directory fixes Rubygems in JRuby.
referenced this issue
Oct 19, 2014
@mulvaney could you verify that it also fixed on solaris ?