Closed todd-a-jacobs closed 2 years ago
For the record, TruffleRuby and Rubinius won't even compile under ruby-install. While they are separate bugs, TruffleRuby installs fine under ruby-build as well, but I think JRuby is much important to fix, so I didn't file those detailed bugs yet. I'm happy to do so if desired.
@todd-a-jacobs seeing as how I cannot reproduce this issue on Linux, this sounds like a macOS + Java issue. Can you reproduce the issue by installing JRuby manually without ruby-install? If so, then this is an upstream issue.
$ wget https://repo1.maven.org/maven2/org/jruby/jruby-dist/9.2.19.0/jruby-dist-9.2.19.0-bin.tar.gz
$ tar -xzvf jruby-dist-9.2.19.0-bin.tar.gz
$ cd jruby-9.2.19.0
$ ./bin/jruby -e "p 1 + 1"
2
Same goes for TruffleRuby and Rubinius issues. If you cannot compile them manually without ruby-install
, than that's an upstream or environment issue (likely related to the version of LLVM or Xcode).
This issue has gone away as of jruby-9.3.4.0 under macOS 11.6.5 and Homebrew 3.4.9-31-gb4f7dbc, so I'm gone to mark this as closed. It doesn't matter to me whether it was solved here, upstream, or in one of the build dependencies. It may also work in other configurations as well, but it certainly works with this one, so unless someone else is having issues I'm marking it resolved.
Description
Running
ruby-install jruby
appears to work, but installs a version of jruby-9.2.19.0 that consistently reports a Java-related problem when callingchruby
orirb
, whether compiled under Fish or Bash:Installing the same version of JRuby using ruby-build under Bash (not Fish) with the same user-configured build options results in a working JRuby that does not exhibit the error.
Steps To Reproduce
Steps to reproduce the bug:
set -Ux RUBY_CONFIGURE_OPTS (printf -- '--with-openssl-dir="%s"' (brew --prefix openssl@1.1))
ruby-install jruby
chruby jruby
irb
Expected Behavior
JRuby should build and and run without significant errors, more or less. It should also result in a functional Ruby being installed. It should certainly not be less capable of compiling or linking JRuby, Rubinius, or TruffleRuby (which also have issues, but won't even compile) than ruby-build.
Actual Behavior
Environment