Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Raspberry Pi? #59

Closed
lukehorvat opened this issue Aug 18, 2015 · 8 comments
Closed

Support for Raspberry Pi? #59

lukehorvat opened this issue Aug 18, 2015 · 8 comments

Comments

@lukehorvat
Copy link

I'm here due to jruby/jruby#3244.

It looks like jnr-posix fails to load native POSIX on Raspbian (Raspberry Pi OS), and I'm not exactly sure why. Unfortunately, I need process killing functionality, which the JavaPOSIX fallback doesn't support.

Are there any steps we can take to make it supported? Happy to lend a hand if necessary.

@enebo
Copy link
Member

enebo commented Aug 18, 2015

@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.

@lukehorvat
Copy link
Author

@enebo Which native lib?

@enebo
Copy link
Member

enebo commented Sep 2, 2015

@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.

@tduehr
Copy link
Contributor

tduehr commented Sep 5, 2015

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.

@tduehr
Copy link
Contributor

tduehr commented Sep 5, 2015

digging further into jffi makes me think I'll need to dust off my rasppi.

@lukehorvat
Copy link
Author

@tduehr

jnr.posix.util.Platform.getProperty("os.name") = Linux
jnr.ffi.Platform.getNativePlatform().getOS() = linux

@tduehr
Copy link
Contributor

tduehr commented Sep 8, 2015

Yup, definitely time to dust off the rasppi.

@headius
Copy link
Member

headius commented Mar 8, 2016

I'm going to close this since it seems like loading problems are mostly environmental. If there's anything actionable here, let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants