Comments (7)
I was able to get it runing on raspberry pi as well as jruby itself (slow...) but I had manually move the lijffi loaded file to not be in /tmp. I don't remember what else I did but it would likely involve either java.library.path or LD_LIBRARY_PATH. I think it was the former.
It was also a year or more ago so the details were fuzzy but the /tmp bit was the main issue.
from jffi.
Hi Enebo,
Can you please elaborate on this line:
but I had manually move the lijffi loaded file to not be in /tmp
I have tried adjusting where Java sets the tmp folder but don't understand what else you could have done?
Thanks
from jffi.
I believe I manually copied what was dumped into /tmp into a sub directory within my home directory and then set -J-Dliibrary.path to that directory. I will have to find my Rasppi to check though...hmm I wonder where it is :)
from jffi.
Hmm, I never see anything in /tmp at all.
Actually, I altered the code in the function loadFromJar() from jffi project so that it just calls: System.loadLibrary("jffi-1.2");
at the beginning of the function with a println()
statement preceding it.
Again, that works fine on my Mac but fails on the Pi.
I wonder why that is? very strange.
Any ideas please? Thanks.
from jffi.
Original reporter has been ghosted, and other fixes have come in for ARM support, so I'm going to close this.
from jffi.
I'm reopening this. I had trouble getting JRuby 9.1.6.0 to load on a Raspberry Pi 3 with current Raspbian. No matter where I put the .so it always says "could not load shared library libjffi-1.2.so: file not found" or something similar.
We also have some minor issues running basic commands without native support loaded. I'll file separate issues for those later.
I managed to get jirb up and going but only by commenting out lines in irb/input-method.rb that attempt to open file descriptors directly.
from jffi.
FWIW, if anyone wants to hack on this I can put my raspi online once I'm home next week.
from jffi.
Related Issues (20)
- How to build win64 JNI? HOT 1
- Varargs support on Apple Silicon HOT 6
- Module name is not being set in base jar
- Can't build cleanly for FreeBSD/powerpc64 HOT 13
- Tests get stuck on aarch64 with openjdk 11 (Alpine Linux) HOT 1
- Update to JUnit5 and latest Maven Surefire Plugin HOT 2
- libjffi-1.2.so file is not present for s390x HOT 4
- Empty library archives? HOT 1
- Segmentation fault executing `Kernel.system("ls -lha")` inside Logstash HOT 5
- JVM crashes on setting callback for GTK3 signals HOT 2
- Issue with Apple Silicon Processor HOT 4
- JVM crash on Ubuntu 21 HOT 9
- Apple notarization failure HOT 12
- Update libffi to a newer version to support LoongArch HOT 2
- UnsatisfiedLinkError on Apple Silicon HOT 1
- s390x CI build not working, just falls back on x86_64 build
- Testsuite failures on 32-bit ARM arches HOT 2
- JFF crashes VM on invokeN0 on i386 and on armhf alltogether
- jffi9396993929588479283.so: /lib64/libc.so.6: version `GLIBC_2.27' not found HOT 55
- Close library HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jffi.