Termux-Java icon indicating copy to clipboard operation
Termux-Java copied to clipboard

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

Open Kawata0210 opened this issue 3 years ago • 4 comments

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 avatar Oct 25 '22 09:10 Kawata0210

Fix?

Kawata0210 avatar Oct 25 '22 09:10 Kawata0210

Got this error too for jadx

Valen-H avatar Nov 04 '22 17:11 Valen-H

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/

nexxii04 avatar Nov 29 '22 13:11 nexxii04

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

ivivanov-bg avatar Feb 25 '23 10:02 ivivanov-bg