-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Milestone
Description
Problem
- After upgrading from jruby-9.3.3.0 to jruby-9.4.x.x, I don't seem to be able to run my Rails 7.0.4.3 app as usual
- Here's the error, seems that
fficannot find fixposix and libfixposix.dylib, which was added in JRuby-9.4.0.0
Could not open library 'fixposix' : dlopen(fixposix, 0x0005): tried: 'fixposix' (no such file),
'/System/Volumes/Preboot/Cryptexes/OSfixposix' (no such file),
'/opt/homebrew/Cellar/openjdk/20.0.1/libexec/openjdk.jdk/Contents/Home/bin/server/fixposix' (no such file),
'/opt/homebrew/Cellar/openjdk/20.0.1/libexec/openjdk.jdk/Contents/Home/bin/./fixposix' (no such file),
'/opt/homebrew/Cellar/openjdk/20.0.1/libexec/openjdk.jdk/Contents/Home/bin/../lib/fixposix' (no such file),
'/usr/lib/fixposix' (no such file, not in dyld cache),
'fixposix' (no such file)
Could not open library 'libfixposix.dylib' : dlopen(libfixposix.dylib, 0x0005): tried: 'libfixposix.dylib' (no such file),
'/System/Volumes/Preboot/Cryptexes/OSlibfixposix.dylib' (no such file),
'/opt/homebrew/Cellar/openjdk/20.0.1/libexec/openjdk.jdk/Contents/Home/bin/server/libfixposix.dylib' (no such file),
'/opt/homebrew/Cellar/openjdk/20.0.1/libexec/openjdk.jdk/Contents/Home/bin/./libfixposix.dylib' (no such file),
'/opt/homebrew/Cellar/openjdk/20.0.1/libexec/openjdk.jdk/Contents/Home/bin/../lib/libfixposix.dylib' (no such file),
'/usr/lib/libfixposix.dylib' (no such file, not in dyld cache),
'libfixposix.dylib' (no such file), -
I've looked everywhere in the rbenv gem file of subspawn, homebrew/openjdk, but seems that installing new JRuby doesn't seem to automatically build the fixposix binary file to be available for the
ffito open the library required by JRuby 9.4.x.x. -
So I've tried to build it my self using byteit101/subspawn, and it was successfully built

-
Then I go back to my rails project, try to run rspec again just to verify. But now I'm stuck here.

Machine
Apple Macbook Air M1 2020, MacOS Ventura 3.3.1 (a) (22E772610a) (May 1, 2023; 14 days ago)
$ uname -a
Darwin Reydi-M1.local 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:41 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T8103 arm64Installed JRuby via RBenv, seems to be no issue
$ rbenv install jruby-9.4.2.0
To follow progress, use 'tail -f /var/folders/m8/z1jd_cnn6031x3g84vp2hgxw0000gn/T/ruby-build.20230516151022.41309.log' or pass --verbose
Downloading jruby-dist-9.4.2.0-bin.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/c2b065c5546d398343f86ddea68892bb4a4b4345e6c8875e964a97377733c3f1
Installing jruby-9.4.2.0...
Installed jruby-9.4.2.0 to /Users/reydi/.rbenv/versions/jruby-9.4.2.0
Local Env Vars (~/.zshrc), added latest brew install openjdk (20.0.1) to $JAVA_HOME
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)"
export PATH="/bin:/usr/bin:/usr/sbin:/usr/local/bin:${PATH}"
export PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin:${PATH}"
export PATH="${HOME}/.rbenv/bin:${PATH}"
export PATH="/opt/homebrew/bin:${PATH}"
export DYLD_FALLBACK_LIBRARY_PATH=/usr/lib
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
export JAVA_HOME="/opt/homebrew/opt/openjdk"
export JAVA_OPTS="--add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED"Question
I'm wondering if there's something I miss to configure that I have to go through all of this step..
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

