Comments (8)
@lukehorvat I was able to get jnr-posix to load JRuby on raspi once but there was some permission issue. We unpack a native lib and we end up putting it in /tmp (jffi shared library). I was not clear on whether there is some security issues with loading .so from /tmp or no actual space on /tmp to unload it. If I put the native files into LD_LIBRARY_PATH then things loaded.
from jnr-posix.
@enebo Which native lib?
from jnr-posix.
@lukehorvat I think what is in lib/jni within our distribution ends up getting put into to /tmp. so adding lib/jni/arm-Linux/lib/jffi-1.2.so in a way if can be seen (like LD_LIBRARY_PATH) should make native load.
from jnr-posix.
Just to rule out some things.
Can you tell me what jnr.posix.util.Platform.getProperty("os.name")
and jnr.ffi.Platform.getNativePlatform().getOS()
return on the raspbian?
It seems there's quite a few hoops to jump through to get full native ffi support on some of these platforms under Java.
from jnr-posix.
digging further into jffi makes me think I'll need to dust off my rasppi.
from jnr-posix.
jnr.posix.util.Platform.getProperty("os.name")
= Linux
jnr.ffi.Platform.getNativePlatform().getOS()
= linux
from jnr-posix.
Yup, definitely time to dust off the rasppi.
from jnr-posix.
I'm going to close this since it seems like loading problems are mostly environmental. If there's anything actionable here, let me know.
from jnr-posix.
Related Issues (20)
- support for opendir/readdir and dirents?
- O_DIRECTORY does not fail on open()
- Error building `jnr-posix`on ppc64le platform HOT 17
- File system failures on Linux PPC HOT 9
- Provide a way to opt into searching the default image for symbols HOT 1
- Windows CI
- jnr.posix.POSIX.kill(long pid, int signal) fails on Windows HOT 2
- WindowsByHandleFileInformation private fields HOT 2
- Struct layout for `LinuxFileStatAARCH64` does not match that on Amazon Graviton2 nodes
- Update jnr-constants to get arch support HOT 2
- Update to JUnit5 and latest Maven Surefire Plugin
- Dup and free filename strings passed to posix_spawn_file_actions_addopen HOT 1
- does jnr-posix work on osx_arm64? HOT 1
- jnr.posix.LinuxPOSIXTest fails on Gentoo ppc64 HOT 1
- NativeClosureProxy - Callable is null HOT 3
- jnr-posix-3.1.16: Test failures seen on x86_64 HOT 7
- jnr-posix tests failed with GLIBC 2.36
- LinuxLibC interface is incompatible with musl libc HOT 2
- fstat is failed on Java 17 HOT 7
- Ask for Java 21 support for com.github.jnr : jnr-posix HOT 1
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 jnr-posix.