Giter Club home page Giter Club logo

Comments (7)

enebo avatar enebo commented on August 25, 2024

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.

 avatar commented on August 25, 2024

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.

enebo avatar enebo commented on August 25, 2024

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.

 avatar commented on August 25, 2024

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.

headius avatar headius commented on August 25, 2024

Original reporter has been ghosted, and other fixes have come in for ARM support, so I'm going to close this.

from jffi.

headius avatar headius commented on August 25, 2024

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.

headius avatar headius commented on August 25, 2024

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)

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.