its-pointless / gcc_termux Goto Github PK
View Code? Open in Web Editor NEWGcc for termux with fortran scipy etc... Use apt for newest updates instructions in README.txt
Gcc for termux with fortran scipy etc... Use apt for newest updates instructions in README.txt
From now on im using apt for updates add deb https://its-pointless.github.io/files/24 termux extras (use https://its-pointless.github.io/files/21 if you are still using android 5 or 6) file with .list suffix in $PREFIX/etc/apt/sources.list.d/ gpg key is https://its-pointless.github.io/pointless.gpg if not installed install gnupg apt-get install gnupg apt-key add pointless.gpg will add the key to apt apt-get update or use https://its-pointless.github.io/setup-pointless-repo.sh use the commands setupclang setupclang and setupgcc-7 to switch compilers nothing complex just moving symlinks around 03/04/2019 r-cran-tidyverse should work consistently except for those using android-5 due to linking issues around librcon.so. Above android-5 the library can see all symbols linked in android-5 that the linker won't let the library see symbols in libR.so since its not directly linked. I am not sure right now the correct way to deal with it. But changing $PREFIX/lib/R/etc/Makeconf to add -LR to ldflags and reinstalling readr package will work for now. 15/01/2019 ns_parse.h for a few missing reolver libs stuff missing in android 5 and 6 so msmtp works. Havent tested as its a 20 minute cut and paste job from musl. also opencv python3 doesn;t work as is but is easy enough to fix its-pointless/its-pointless.github.io#18 will do proper fixes at some point this week. 17/12/2018 added gnat for x86_64 and aarch64, gprbuild and xmlada packages available as well 27/09/2018 Added portaudio and elfutils For port audio to work without issue it requires pulseaudio. It also needs pulseaudio sample rate set to PROPERTY_OUTPUT_SAMPLE_RATE or latency is too high this value can be obtained via termux-audio-info Any issues with this please mention... 14/08/2018 julia updated to 1.0.0 installing packages that link to libs is a bit tricky and requires wiriting deps.jl yourself so they point to installed termux libs. Even if you can compile the libs using julia, without setting LD_LIBRARY_PATH to where julia installed the libs it won't use them causing error. 30/07/2018 fixed a few annoyances with gcc-8 Oz now becomes Os automatically and few warnings that llvm-config add won't cause errors since they are only implemented in clang 30/03/2018 julia is compiling on all archs but must be done on device. see my android-termux branch of julia. Also added an arm build for testing... 20/03/2018 TESTING openblas for x86_64 atom.... 7/02/2018 added povray because ... i don't know. 10/01/2018 updated rustc and rustc-nightlies fixed issues on x86_64 gcc added racket for arm and i686 5/01/2018 changed gcc-7 sources to linaro ... because why not? going to add source so everyone can compile and won't rely on me providing binaries... at all. added gnatmake for arm ( other archs are not likely to come since it requires a sigtramp implentation that is absent on android) added racket ... likely buggy for arm and i686. not working yet on 64 bit archs also adding libboostpython libs which is a pull request for termux/termux-packages 23/12/2017 updated ecl arm and julia for x86_64. both should now work again 20/12/2017 updated cargo for all but i686 updated rustc-nightly for and added for i686. not on x86_64... if i have time i will work on it. Ecl should now compile maxima technically there aren't any "major" dependencies missing for sagemath would have to built on device though... 13/12/2017 added ecl rustc nightly for arm and aarch64. added the cross_config stuff for ecl as well. 28/11/2017 added libgomp for gcc-7 in 7.2.0 and ndk 4.9.x flavours Thanks to @arietal libcairo now works in R. also added julia lang for i686 x86_64. I have no idea how long or if ever arm and aarch64 will take. 19/11/2017 r-cran package 3.4.2-1 uploading, should be working again... enabled openmp because i can. pforth 32 bit fix upload for testing. should get updated scipy and numpy at some point hopefully soon 11/11/2017 rustc now working for x86_64 and i686. The bug with cargo on arm is also fixed. As libgit2 needed to be compiled with -no-integrated-as the fix is statically linked. 08/10/2017 added python 2 versions numpy and scipy 01/10/2017 guile 2.0 and 2.2 added i686 version for 2.0 has threads disabled due to crashing half the time. 2.2 has no such issue as far as I can tell but the build process for 2.2 builds needs some work before a pull request to main repo. 12/09/2017 rustc is broken if you upgraded libllvm to 5.0 to rememdy that install newly added package libllvm-4so should be working from there 08/09/2017 added fixedshe package and command executing it will start a new shell with LD_PRELOAD=$PREFIX/lib/libandroid-fixshebang.so $shell this will cause commands /bin/sh and /usr/bin/env to be redirected making shebangs with those commands work. to change default shell to do this the command fixedshe chsh will work as chsh does. Doing this will enable R and Octave library installs to work correctly first time much more often things like fixedshe octave also work 27/08/2017 added openldap f0r testing need feedback updated gcc to 7.2 added more stuff to x86_64 ans i686 08/08/2017 adding i686 and x86_64 stuff cargo and rusttc octave and R etc also some experimental nodejs 8.2.1 builds ... 29/07/2017 to get cargo for arm working add this to ~/.gitconfig [url "git://github.com/rust-lang/crates.io-index"] insteadOf = https://github.com/rust-lang/crates.io-index 25/07/2017 octave is fixed and back up on repo as well as gmic arm. 24/07/2017 octave isn't working right now ... 23/07/2017 a working gmic binoary for arm required some magic getting it... 22/07/2017 gmic is not working for arm and it appears to be stubborn about it. sorry about that. 17/07/2017 Got almost everything working with the transision to libc++_shared. Updating the apt repo shortyly there are a few packages there that are not not mentioned here... 27/05/2017 added rustc and cargo for arm and aarch64 from @vishalbiswas a bit buggy for now 24/05/2017 Added quantlib. Will be adding R stuff shortly. Mpd-ext is also in repo extended for modpluglib and libgme. So game emulation music plays. Haven't tested that yet should work. just added imgflo ... i haven't tested it if someoen wants to inform me how its screwed i would be thankful. updated now with termux-packages pull requests as well electrum egg added ... updates added boost ledger r-cran the mpv-ext is just mpv with caca enabled and alpine has been updated. Octave seems to be working fairly well... report bugs??? Its less annoying to compile than R so i might fix things that are really broken. The scripts to compile fortran stuff needs a bit of work to be more user friendly and less of a hack. termux gcc resurrected purely because scipy needs it. Don't annoy fornwall if you find a bug since its entirely unsupported. This is a compiler of last resort hecause you need to compile fortran or something needs gcc and only gcc. For scipy to work you need blaslib(openblas, reference blas +lapack or atlas) libgfortran numpy and scipy. If you want to do this yourself its not hard. https://github.com/xianyi/OpenBLAS/wiki/How-to-build-OpenBLAS-for-Android I compiled arm and arm64 tool chain for linux x86_64 (the .tar.bz2 file) so you can extract over the android ndk tool chain for ndk-13 and when termux creates tool chain it should pull stuff in. https://github.com/xianyi/OpenBLAS/wiki/How-to-build-OpenBLAS-for-Android The default makefile for openblas uses hardfp and termux uses softfp so it won't work on termux. Don't use it on arm use either lapack or atlas. Atlas will likely be faster than lapack. LDFLAGS when compiling scipy and numpy for distribution is important. You can compile on android 6.0 and it might not work on 5.1 because the linker is different.
Hi, thanks for providing scipy, numpy and all the other packages. I'm getting an error on "apt update" from this morning:
apt update
Hit:1 http://termux.net stable InRelease
Hit:2 https://its-pointless.github.io/files termux InRelease
Reading package lists... Error!
E: Problem parsing dependency Depends
E: Error occurred while processing libsoup (NewVersion2)
E: Problem with MergeList
/data/data/com.termux/files/usr/var/lib/apt/lists/its-pointless.github.io_files_dists_termux_extras_binary-arm_Packages
E: The package lists or status file could not be parsed or opened.
apt-get clean
didn't help. Please let me know I can provide any more information.
hi the irc guys tell me to report this bug here
i am using your repo in my termux and installed nim
but it dont works when compiling
this is a screenshot showing the errors
also i had use ltrace to trace the compiling, here is a detail logs
c.zip
Hello,
I recently changed my phone. I installed termux and next octave, together with:
pkg install octave octave-dev python make clang gnuplot gnutls ncurses ncurses-dev libgnutls-dev units pkg-config libgfortran
pip install sympy requests slugify
But when running octave-cli
i got the following error:
CANNOT LINK EXECUTABLE "octave-cli": cannot locate symbol "__powisf2" referenced by "/usr/lib/octave/4.2.1/liboctave.so"...
Aborted
Please help!
My phone, Huawei P9 Lite 2017, Android 7.0
Today I did "pkg upgrade" which produced these errors:
$ pkg upgrade
Get:1 http://termux.net stable InRelease [1687 B]
Get:2 https://its-pointless.github.io/files termux InRelease [2061 B]
Get:3 http://termux.net stable/main all Packages [4508 B]
Get:4 http://termux.net stable/main arm Packages [59.4 kB]
Get:5 https://its-pointless.github.io/files termux/extras arm Packages [15.0 kB]
Fetched 82.7 kB in 2s (39.1 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
numpy tsu
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 2075 kB of archives.
After this operation, 160 kB disk space will be freed.
Do you want to continue? [Y/n]
Get:1 http://termux.net stable/main all tsu all 0.4 [1784 B]
Get:2 https://its-pointless.github.io/files termux/extras arm numpy arm 1.13.3-1 [2073 kB]
Fetched 2075 kB in 3s (636 kB/s)
(Reading database ... 23713 files and directories currently installed.)
Preparing to unpack .../numpy_1.13.3-1_arm.deb ...
Unpacking numpy (1.13.3-1) over (1.13.3-1) ...
Preparing to unpack .../apt/archives/tsu_0.4_all.deb ...
Unpacking tsu (0.4) over (0.3) ...
Setting up numpy (1.13.3-1) ...
dpkg (subprocess): unable to execute installed post-installation script (/data/data/com.termux/files/usr/var/lib/dpkg/info/numpy.postinst): No such file or directory
dpkg: error processing package numpy (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up tsu (0.4) ...
Errors were encountered while processing:
numpy
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)
$ pip list
Package Version
---------------- --------
apfft 0.3
cycler 0.10.0
decorator 4.1.2
gmpy 1.17
ipython 6.2.1
ipython-genutils 0.2.0
jedi 0.11.0
matplotlib 2.1.0
mpmath 1.0.0
parso 0.1.0
pexpect 4.2.1
pickleshare 0.7.4
pip 9.0.1
prompt-toolkit 1.0.15
ptyprocess 0.5.2
pyFFTW 0.10.4
Pygments 2.2.0
pyparsing 2.2.0
python-dateutil 2.6.1
pytz 2017.2
scipy 1.0.0rc1
setuptools 28.8.0
simplegeneric 0.8.1
six 1.11.0
sympy 1.1.1
traitlets 4.3.2
wcwidth 0.1.7
Dear,
I successfully ran setup-pointles-repo.sh on my aarch64 (LG G4).
I want to switch to the gcc with setupgcc-7, but it says command not found.
My final aim is to make theano and keras work. On my previous phone (sammsung galaxy 2) it worked.
When I install your scipy, clang and pip install theano then it says "segmentation fault" when importing theano in python.
This seems to be compiler related.
I added its-pointless repository to sources.list, then installed octave package.
Launching octave caused an error where "libtatlas.so" could not be found.
Installing "libatlas" package solved the issue.
I would suggest to add libatlas as a dependency of octave package, if possible.
Anyway, thank you for the good work
Livio
The Julia programming language is a relative newcomer to the field of scientific and technical computation but is already providing very strong competition to Python, MATLAB, or even C.
There are working ARM builds of Julia available from the official page, so perhaps it shouldn't be very hard to port or adapt them to use in Termux. There is a request for adding Julia in the official Termux package repo but it's not clear if or when it will pass. I hope this both could be done and wouldn't cause too much trouble. Thanks in advance.
hi
I am using Python3 scipy on Termux and i am getting the following error:
Traceback (most recent call last):
File "initiate_monitor.py", line 28, in
import batch_monitor
File "/storage/emulated/0/DCIM/test/python/batch_monitor.py", line 45, in
import filter_data
File "/storage/emulated/0/DCIM/test/python/filter_data.py", line 27, in
from eegfilt import eegfilt
File "/storage/emulated/0/DCIM/test/python/eegfilt.py", line 2, in
from filtfilt import filtfilt
File "/storage/emulated/0/DCIM/test/python/filtfilt.py", line 1, in
from scipy.signal import lfilter
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-i686.egg/scipy/signal/init.py", line 321, in
from .filter_design import *
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-i686.egg/scipy/signal/filter_design.py", line 18, in
from scipy import special, optimize, fftpack
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-i686.egg/scipy/optimize/init.py", line 271, in
from ._minimize import * File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-i686.egg/scipy/optimize/_minimize.py", line 30, in
from ._trustregion_krylov import _minimize_trust_krylov
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-i686.egg/scipy/optimize/_trustregion_krylov.py", line 2, in
from ._trlib import (get_trlib_quadratic_subproblem)
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-i686.egg/scipy/optimize/_trlib/init.py", line 1, in
from ._trlib import TRLIBQuadraticSubproblem
File "messagestream.pxd", line 5, in init scipy.optimize._trlib._trlib
ImportError: dlopen failed: cannot locate symbol "messagestream_open_memstream" referenced by "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-i686.egg/scipy/_lib/messagestream.cpython-36m.so"...
When I try to run octave I get this message:
octave: no graphical display found
octave: disabling GUI features
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/bin/octave-cli-4.4.1": cannot locate symbol "__emutls_get_address" referenced by "/data/data/com.termux/files/usr/lib/octave/4.4.1/liboctinterp.so"...
Aborted (core dumped)
Tried a fresh install but got the same message.
Hi,
There's a problem with a dependency of R in last version (Libicu) , is it possible to rebuild the R package ?
Thanks
Hey.Will there be implemented a static library for gcc?(C and C++).
This is good for better compatibility with different Android devices (so you can share programs).
$ pkg update
...
$ cargo
CANNOT LINK EXECUTABLE: library "libssl.so.1.0.0" not found
page record for 0xb6b1102c was not found (block_size=16)
Just wanted to get the latest release of rust stable and cargo, since it has a few new changes including a nice style formatter like gofmt built in. Or well it can be added using rustup component add rustfmt-preview at least. Would definitely love that added
I just did a fresh install with pkg install julia
when i run julia
i get
CANNOT LINK EXECUTABLE DEPENDENCIES: cannot locate symbol "dl_iterate_phdr" referenced by "libunwind.so"...
I'm on Android 5.1.1 ARMv7l
Installed gcc-8 and gcc-7, but I get an error when compiling... (Same error for g++, cc1plus is missing in that case)
gcc main.c
gcc: error trying to exec 'cc1': execvp: No such file or directory
Installation didn't mention any problem:
apt install gcc-8
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
gcc-8
0 upgraded, 1 newly installed, 0 to remove and 0 not upg
raded. Need to get 23.1 MB of archives. After this operation, 89.9 MB of additional disk space will be used.
Get:1 https://its-pointless.github.io/files termux/extr$
s aarch64 gcc-8 aarch64 8.2.0-1 [23.1 MB]
Fetched 23.1 MB in 12s (1871 kB/s)
Selecting previously unselected package gcc-8.
(Reading database ... 21975 files and directories curren
tly installed.)
Preparing to unpack .../gcc-8_8.2.0-1_aarch64.deb ...
Unpacking gcc-8 (8.2.0-1) ...
Processing triggers for man (1.14.4) ...
Setting up gcc-8 (8.2.0-1) ...
Hi! After successful installation of rustc and cargo there is no possibility to use them. It looks like armv7-linux-androideabi tarbet exists, but cannot be installed for some reason. I've tried
rustup install armv7-linux-android
And
rustup install armv7-linux-androideabi
with the same result.
$ rustc
error: no default toolchain configured
$ rustup show
Default host: armv7-linux-android
no active toolchain
$
CANNOT LINK EXECUTABLE "distccd": library "libpopt.so.0" not found
but if you install libpopt it works great.
Thanks for hosting this, I am building on my phones!
Is there anyway to plot graphs in Termux using R?
Is there anyway to install necessary packages in R for Jupyter Notebook?
Hello,
I have to do a fresh install of termux. I installed Octave and Octave-dev and when running Octave I got this error
CANNOT LINK EXECUTABLE DEPENDENCIES: cannot locate symbol "sqrtf" referenced by "libarpack.so"...
Any ideas?
On Nexus 10 tablet (Android 5.1.1 armv7l architecture) trying to import numpy fails like this:
$ python
Python 3.6.6 (default, Jul 21 2018, 02:41:03)
[GCC 4.2.1 Compatible Android (4691093 based on r316199) Clang 6.0.2 (https://a on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
$ python -c "import numpy"
WARNING: linker: multiarray.cpython-36m.so: unused DT entry: type 0x6ffffef5 arg 0x1538
WARNING: linker: umath.cpython-36m.so: unused DT entry: type 0x6ffffef5 arg 0xd08
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/numpy-1.14.5-py3.6-linux-armv7l.egg/numpy/__init__.py", line 142, in <module>
from . import add_newdocs
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/numpy-1.14.5-py3.6-linux-armv7l.egg/numpy/add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/numpy-1.14.5-py3.6-linux-armv7l.egg/numpy/lib/__init__.py", line 8, in <module>
from .type_check import *
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/numpy-1.14.5-py3.6-linux-armv7l.egg/numpy/lib/type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/numpy-1.14.5-py3.6-linux-armv7l.egg/numpy/core/__init__.py", line 34, in <module>
from . import umath
ImportError: dlopen failed: cannot locate symbol "ctan" referenced by "umath.cpython-36m.so"...
$ pip list |grep numpy
numpy 1.14.5
$ apt list | grep numpy
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
numpy/termux,now 1.14.5 arm [installed]
python2-numpy/termux 1.14.5 arm
$ uname -a
Linux localhost 3.4.67-g84ad5a4 #1 SMP PREEMPT Fri Nov 13 21:33:05 UTC 2015 armv7l Android
Of course I am using the proper repository, i.e. https://its-pointless.github.io/files
. Btw, on Android 6.0 aarch64 architecture (LG G4 mobile) everything is working just fine. Any ideas how to fix it on Nexus 10?
it would be great if you add matplotlib and pandas in your repo. i am a newbie python learner and i have got numpy and scipy from your guidelines. now pandas and matplotlib is not installed with apt install way.
Hello
I have tried your R build and it looks great. However, it seems it was built with cairo disabled.
I was trying for 3 days to build it myself and hit a snag with MBCS support. Seems the termux iconv is not suitable for building R. Anyway to make a long story short, would it be possible for you to build R with cairo support?
Thanks. Having attempted this myself, I know this was no walk in the park.
Arie
the message '+fp' is not a recognized feature for this target (ignoring feature)
appears multiple times for every call to rustc
dunno if this is from rust's nightly or for any changes here, guess it's llvm feature releated
When upgrading gcc-7, I get the following error message:
Unpacking gcc-7 (7.2.0-1) over (7.2.0) ...
dpkg: error processing archive /data/data/com.termux/files/usr/var/cache/apt/archives/gcc-7_7.2.0-1_arm.deb (--unpack):
trying to overwrite '/data/data/com.termux/files/usr/share/man/man1/g++.1', which is also in package gcc-6 6.4.0-1
dpkg-deb (subprocess): decompressing archive member: lzma write error: Broken pipe
dpkg-deb: error: subprocess <decompress> returned error exit status 2
Processing triggers for man (1.14.3-1) ...
Errors were encountered while processing:
/data/data/com.termux/files/usr/var/cache/apt/archives/gcc-7_7.2.0-1_arm.deb
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)
Hello, I got this error when trying to plot:
panic: Segmentation fault -- stopping myself... Segmentation fault
Regards,
Hey.Is PGO Disabled in the GCC-8 (7.6) compiler?
I tried to profile one program with the flag -fprofile-generate and -lgcov,but the file .gcda did not appear.Why?
Compiled libraries could not be loaded on othsr devices because it linked with gnustl_shared even ig does nit use STL and c++ at all
I just saw your repos and I would loke to add it in my Termux repos but can you tdll me the exact url??? And I can't can you tell me which .debs are needed for a full gcc installation???
Hi
I had an issue with Scipy package issue #44 #44 (comment)
has a new version of Scipy with the fix released to the repository?
thanks
Could you provide a gcc (aarch64) with openmp support in c/fortran?
When I run rustc
or cargo
, I can only get an error and nothing else:
error: no default toolchain configured
I've installed libllvm-4so
, is there anything else that should be done?
clang
is now 5.0.0 and rustc depends on it, would it be a problem?
Thanks!
hello,
i got the following error when trying to install parallel and miscellaneous octave packages (on octave cli: pkg -forge install package
):
sh: 0: Can't open ./config.status
On Android 5.0, i686, cargo fails with:
CANNOT LINK EXECUTABLE: could not load library "libgit2.so" needed by "cargo"; caused by library "libgit2.so" not found
Immediately after pkg install cargo
. This seems to hint at a missing runtime dependency.
However, manually running pkg install libgit2
and re-running cargo
results in a segfault and no additional output.
Hi,
I was able to install R and R runs well on my Samsung G. Tab S2, Android 7. However, I cannot install any R packages, they all produced 'non-zero exit status'. Do you have any ideas about that?
Thanks,
Quang
test_dense fails in scipy.
python -c 'import scipy; scipy.test("test_dense")'
segfaults.
dpkg: error processing archive /data/data/com.termux/files/usr/var/cache/apt/archives/groff_1.22.3_aarch64.deb (--unpack):
trying to overwrite '/data/data/com.termux/files/usr/bin/soelim', which is also in package man 1.14.3-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
How can I have both man and groff installed?
Via rustup you can normally install extra things like rls
or targets such as wasm32-unknown-unknown
What's the chances of having some of those available :)?
Hi,
After pkg install gcc-8, there is no libgcc_s.so.1. Will this be built in the future? Thanks
Today, I tried using Cargo and got this:
$ cargo run
error: process didn't exit successfully: `rustc -vV` (exit code: 1)
--- stdout
rustc 1.29.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: armv7-linux-androideabi
release: 1.29.0
--- stderr
error: couldn't load codegen backend "/data/data/com.termux/files/usr/lib/rustlib/armv7-linux-androideabi/codegen-backends/librustc_codegen_llvm-llvm.so": "dlopen failed: library \"libLLVM-6.0.so\" not found"
apt show libllvm
says version 7.0, so I guess this might be the problem.
Hi there,
after an update, I was experiencing dead ipython kernel as soon as I would try to make a plot.
Then, I tried also the following MWE
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(range(10))
fig.savefig('temp.png')
which crashes at line 4 with the message Illegal instruction
.
Therefore, starting every time from a clean install of Termux, I tried the following
Scenario 1
install clang python python-dev fftw libzmq libzmq-dev freetype freetype-dev libpng libpng-dev pkg-config
pip install numpy matplotlib
The MWE is working
Scenario 2
pkg install apt curl gnupg pkg-config clang
pkg install freetype freetype-dev libpng libpng-dev libzmq-dev libzmq
curl -L https://its-pointless.github.io/setup-pointless-repo.sh | sh
pkg install python python-dev numpy scipy
pip install matplotlib
The MWE is not working and produces the Illegal instruction
crash.
Is there a way to solve this and have numpy/scipy nicely working with matplotlib?
When trying to cargo build --target wasm32-unknown-unknown
this message appears and linking fails since a few months ago, i kinda of just crossed my fingers and hoped it would go away with a later update but it hasn't so i'm posting :)
How did you build python packages like numpy and scipy which have c sources. Did you do it in docker? can you enumerate the list of steps you have taken or provide a script if you have?
Anytime I try to download a package from the crates registry I get the following error:
invalid Content-Type: application/x-git-upload-pack-advertisement
Manually cloning the crates.io-index
repo works fine.
Hello,
thanks for this work.
I have tried to install octave but I get liboctinterp.so not found, so it seems to lack the liboctave package.
Thanks
Hi, I'm trying to make numpy and pandas work in termux. I followed your instructions, but it seems termux can't access your repository.
$ apt-key add pointless.gpg
OK
$ apt-get update
Hit:1 http://termux.net stable InRelease
Reading package lists... Done
E: The method driver /data/data/com.termux/files/usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?
E: Failed to fetch https://its-pointless.github.io/files/dists/termux/InRelease
E: Some index files failed to download. They have been ignored, or old ones used instead.
step 1.pkg install opencv
=> OK
step 2. import cv2 (python)
=> error
ImportError: ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation.
My guess is that the "/data/data/com.termux/files/usr/python/cv2/python-3.7/cv2.cpython-37m-x86_64-linux-gnu.so" file is wrong.
test1. mv cv2.cpython-37m-x86_64-linux-gnu.so cv2.so (rename)
import cv2 (python)
=> OK
cv2.version
=> '4.0.0'
Cannot build anything with gfortran-7 and libgfortran4 (or libgfortran):
/data/data/com.termux/files/usr/bin/ld: cannot find -lgfortran
Is it possible to install R kernel in Termux?
If yes, how can I do it?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.