jgem fails to load gem from rubygems on Raspbian #5192
Hardware raspberrypi 3B+
mri irb (jirb also failing)
This might be significant with jruby,
jgem install toxiclibs
The error message is opaque to me, I'm a seasoned linux user, but very new to raspbian OS, from searches I understood that in the past same error had been reported (different OS etc) but it was unclear to me whether it had actually been resolved. I seem to remember seeing something about failure in bit detection. Raspbian is odd in being 32 bit on 64 bit processor (these days) but probably for good reason. I have been developing PiCrate on my 64 bit linux mint machine and never had this problem before (similar setup). PS: as a workaround to install the picrate gem, I used a local install with jgem without issue.
jruby -Xnative.verbose=true -S gem install geomerative
Caused by: java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: /tmp/jffi8383875517230482219.so: /tmp/jffi8383875517230482219.so: cannot open shared object file: No such file or directory
Fetching: geomerative-1.0.2-java.gem (100%)
load at org/jruby/RubyKernel.java:994
The text was updated successfully, but these errors were encountered:
I have seen elsewhere (Gentoo wiki) recommended CFLAGS
# Raspberry Pi 2, or Raspberry Pi 3 running in 32 bit mode: CFLAGS="-O2 -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard"
Further note that PLATFORM from GNUmakefile (libtest) would yield
From what I recall in another issue the probably on an older raspi was that shared libraries could not be loaded from /tmp directories. Not sure how we unpack and load the shared library but maybe we ship proper shared library but the ability to load it is disabled somehow?
You should be able to test the fix from a snapshot build here: https://projectodd.ci.cloudbees.com/view/JRuby/job/jruby-development-dist/lastSuccessfulBuild/artifact/release/