Coder Social home page Coder Social logo

Support for Raspberry Pi? about jnr-posix HOT 8 CLOSED

lukehorvat avatar lukehorvat commented on August 18, 2024
Support for Raspberry Pi?

from jnr-posix.

Comments (8)

enebo avatar enebo commented on August 18, 2024

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

lukehorvat avatar lukehorvat commented on August 18, 2024

@enebo Which native lib?

from jnr-posix.

enebo avatar enebo commented on August 18, 2024

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

tduehr avatar tduehr commented on August 18, 2024

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.

tduehr avatar tduehr commented on August 18, 2024

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

from jnr-posix.

lukehorvat avatar lukehorvat commented on August 18, 2024

@tduehr

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

from jnr-posix.

tduehr avatar tduehr commented on August 18, 2024

Yup, definitely time to dust off the rasppi.

from jnr-posix.

headius avatar headius commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.