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

raspberry 4 compatibility #265

Closed
dfa1 opened this issue Jun 2, 2020 · 0 comments
Closed

raspberry 4 compatibility #265

dfa1 opened this issue Jun 2, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@dfa1
Copy link
Collaborator

dfa1 commented Jun 2, 2020

Problem
When running hosh on raspberry pi 4, a dumb terminal is created because of:

            Suppressed: java.lang.LinkageError: Unable to load library from /home/pi/.hawtjni/jansi/libjansi-18328913208579177227.so
                    at org.fusesource.hawtjni.runtime.Library.load(Library.java:526)
                    at org.fusesource.hawtjni.runtime.Library.extractAndLoad(Library.java:330)
                    at org.fusesource.hawtjni.runtime.Library.doLoad(Library.java:227)
                    ... 8 more
            Caused by: java.lang.UnsatisfiedLinkError: /home/pi/.hawtjni/jansi/libjansi-18328913208579177227.so: /home/pi/.hawtjni/jansi/libjansi-18328913208579177227.so: cannot open shared object file: No such file or directory (Possible cause: can't load IA 32-bit .so on a ARM-bit platform)
                    at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
                    at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
                    at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
                    at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
                    at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2627)
                    at java.base/java.lang.Runtime.load0(Runtime.java:768)
                    at java.base/java.lang.System.load(System.java:1834)
                    at org.fusesource.hawtjni.runtime.Library.load(Library.java:522)
                    ... 10 more

Looks like JAnsi is not shipped with arm support.

Solution
Upgrade JAnsi or switch back to JNA.

Benefit
hosh is working in raspberry pi

@dfa1 dfa1 self-assigned this Jun 2, 2020
@dfa1 dfa1 added the bug Something isn't working label Jun 2, 2020
dfa1 added a commit that referenced this issue Jun 2, 2020
@dfa1 dfa1 closed this as completed in 4f97d0b Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant