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

libpthread.so.0: cannot open shared object file: No such file or directory #69

Open
Kawata0210 opened this issue Oct 25, 2022 · 4 comments

Comments

@Kawata0210
Copy link

The error

~/nukkit/Nukkit $ ./mvnw
/data/data/com.termux/files/usr/share/jdk8/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

@Kawata0210
Copy link
Author

Fix?

@Kawata0210 Kawata0210 changed the title I'm trying to run nukkit libpthread.so.0: cannot open shared object file: No such file or directory Oct 25, 2022
@Valen-H
Copy link

Valen-H commented Nov 4, 2022

Got this error too for jadx

@nexxii04
Copy link

The error

~/nukkit/Nukkit $ ./mvnw /data/data/com.termux/files/usr/share/jdk8/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

run this if you have aarch64 architecture

cp ./$PREFIX/share/glib/libpthread.so.0 $JAVA_HOME/lib/aarch64/

for arm architecture

cp ./$PREFIX/share/glib/libpthread.so.0 $JAVA_HOME/lib/arm/

@ivivanov-bg
Copy link

an option is to add /data/data/com.termux/files/usr/share/glib to LD_LIBRARY_PATH

LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib:/data/data/com.termux/files/usr/share/glib

But they I get:

/data/data/com.termux/files/usr/share/jdk8/bin/java: error while loading shared libraries: libdl.so: cannot open shared object file: No such file or directory

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