-
Notifications
You must be signed in to change notification settings - Fork 74
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
setupgcc-7 : command not found #35
Comments
have you install gcc-7 ? |
Indeed, I had not installed gcc-7. Now I have it installed and setupgcc-7 works. However, this doesn't solve my main problem: I cannot run theano with a compiler. It does work on my other phone (samsung g2, armv7, nougat) and it does work without compiler (but too slow).
Ŵhen I install clang or gcc-7, and run theano-cache, I get an error 'python.hc not found'. That goes away with the installation of python-dev, but then I get 'crypt.h not found'. I copied different files crypt.h that I found o.j. the internet to usr/include/python3.6m/ but the best result I can get is ' segmentation fault'.
Any idea? Thank you very much advance!
…On 4 Apr 2018, its-pointless ***@***.***> wrote:
have you install gcc-7 ?
|
Install libcrypt-dev |
I have done so.
>> python
Segmentation fault
Does it work on your phone?
…On 6 Apr 2018, its-pointless ***@***.***> wrote:
Install libcrypt-dev
|
Yes i can't reproduce. |
Sorry, I meant:
Python
>> import theano
Segmentation fault
…On 6 Apr 2018, its-pointless ***@***.***> wrote:
Install libcrypt-dev
|
I just imported then ... no errors |
I want to start from a clean slate. I have the impression that uninstalling termux doesn't remove all files. How can I be sure?
…On 6 Apr 2018, its-pointless ***@***.***> wrote:
I just imported then ... no errors
|
I ran
rm -Rf $HOME $PREFIX
Then uninstalled termux, restarted the phone, reinstalled termux and ran the following script:
pkg upgrade
apt-get -y install curl
# add custom repository from "its pointless"
# cfr. https://wiki.termux.com/wiki/Package_Management#Community_Repositories
curl -L https://its-pointless.github.io/setup-pointless-repo.sh | sh
apt-get -y install scipy clang gcc-7 libcrypt-dev python-dev
setupgcc-7
pip install theano
pip install keras
Still: segmentation fault
Do you see anything fishy?
What else can I try?
…On 6 Apr 2018, its-pointless ***@***.***> wrote:
I just imported then ... no errors
|
Apparently the problem occurs in libc.so
$ cat > tt.py
import theano
$ gdb python
(gdb) run tt.py
Thread 1 "python" received signal SIGSEGV, Segmentation fault.
0x0000007fb7be5f84 in strlen ()
from /system/lib64/libc.so
(gdb)
…On 6 Apr 2018, its-pointless ***@***.***> wrote:
I just imported then ... no errors
|
There is no such command after setting up repository indeed. I am confused. |
Can you tell me how to install gcc-7 only? I have run setup.sh.But I still wonder how to install gcc-7 in this repo.I tried to use the error info is: Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gcc-7 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'gcc-7' has no installation candidate |
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.
The text was updated successfully, but these errors were encountered: