Comments (7)
same issue here :(
i could fix the libpthread problem by including usr/share/glib in LD_LIBRARY_PATH and it under proot -0
now maven and ant fail to find libdl.so
Android 10.
uname -a: Linux localhost 4.9.186-18864194 #2 SMP PREEMPT Fri Jul 17 17:32:50 KST 2020 aarch64 Android
from termux-java.
@UlyssesZh Lol, I have no idea what was your libpthread library doing in /bin but it should be in /share/glib. Try copying it there and check if it works.
from termux-java.
Closing due to inactivity
from termux-java.
I have the same issue.
I've tried simple hello world and it compiles and runs(unlike the @UlyssesZh experience).
After that I've tried to run maven and got:
/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
I've checked share/glib
path as @MasterDevX mentioned and libpthread.so is present.
Any ideas what to do?
from termux-java.
Hi same issue with me as well, and my libpthread.so is present in share/glib path as well
also i'm trying to do the same as @coarsehorse running mvn [command] via npm maven wrapper
this seems like an issue which would arise when you dont have necessary permissions but i've given the superuser permissions and i've also given termux permission to accesss filesystem storage
any ideas what can we do to fix this? Thanks
also i just noticed java -version gives me an error
: Inconsistency detected by ld.so: dl-open.c 689: _dl_open: Assertion _dl_debug_initialize (0, args.nsid)->rstate == RT_CONSISTENT
failed!
android version 10
from termux-java.
same issue here :(
i could fix the libpthread problem by including usr/share/glib in LD_LIBRARY_PATH and it under proot -0
now maven and ant fail to find libdl.soAndroid 10.
uname -a: Linux localhost 4.9.186-18864194 #2 SMP PREEMPT Fri Jul 17 17:32:50 KST 2020 aarch64 Android
I've found out the libdl.so is lying in the /system/lib directory. After i added /system/lib in LD_LIBRARY_PATH i got "segmentation fault" and "WARNING: linker: Warning: unable to normalize "" messages.
from termux-java.
I am facing the same error as well. I am trying to build the package pyjnius on Termux, but I receive the following error:
$ make
ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 all
Buildfile: /data/data/com.termux/files/home/pyjnius/build.xml
compile:
jar:
test-compile:
all:
BUILD SUCCESSFUL
Total time: 1 second
python setup.py build_ext --inplace -g
/data/data/com.termux/files/usr/share/jdk8/bin/javac: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "/data/data/com.termux/files/home/pyjnius/setup.py", line 93, in <module>
compile_native_invocation_handler(JAVA)
File "/data/data/com.termux/files/home/pyjnius/setup.py", line 83, in compile_native_invocation_handler
subprocess.check_call([
File "/data/data/com.termux/files/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/data/data/com.termux/files/usr/share/jdk8/bin/javac', '-target', '1.7', '-source', '1.7', 'jnius/src/org/jnius/NativeInvocationHandler.java']' returned non-zero exit status 127.
make: *** [Makefile:16: build_ext] Error 1
I did check that the file libpthread.so.0
and libpthread.so
are available in both /data/data/com.termux/files/usr/share/glib
and /data/data/com.termux/files/usr/lib
. Is there anything that can be done to point javac to the right directory?
Here is my system info. I will be able to provide more info if you would need as well.
$ uname -a
Linux localhost 4.4.192-black_caps+ #1 SMP PREEMPT Fri Aug 28 13:50:54 UTC 2020 aarch64 Android
I really appreciate your time. Thanks
from termux-java.
Related Issues (20)
- Error: JNA temporary directory '/tmp' does not exist
- Networking failure HOT 3
- It didn't work. HOT 1
- What does that mean ? HOT 2
- Android 11 termux java fixer HOT 5
- Error while installing HOT 2
- Bad system call HOT 1
- line 45: cd: /share: Not a directory
- Java
- "Bad system call" error HOT 1
- [1] 23205 invalid system call java -version HOT 2
- Not working HOT 1
- 6177 Bad system call
- Gradle not working
- libpthread.so.0: cannot open shared object file: No such file or directory HOT 4
- PaperMC Server not working! HOT 1
- Confused HOT 1
- ./gradlew build doesnt work HOT 1
- Segmentation fault
- --------‐-‐-----pkg install wget && wget https://raw.githubusercontent.com/MasterDevX/java/master/installjava && bash installjava--------------------- HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from termux-java.