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

conda package manager #464

Closed
elehcim opened this issue Sep 18, 2016 · 17 comments
Closed

conda package manager #464

elehcim opened this issue Sep 18, 2016 · 17 comments

Comments

@elehcim
Copy link

elehcim commented Sep 18, 2016

Hello, I'd like to try to install the conda package manager. I'm trying to install it through pip (pip install conda). There are many other dependencies needed by conda. A lot of them can be installed via pip as well, but I'm stuck on the installation of pycosat with the following error:

running build_ext
    building 'pycosat' extension
    creating build/temp.linux-aarch64-3.5
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Os -fPIC -DPYCOSAT_VERSION="0.6.1" -I/data/data/com.termux/files/usr/include/python3.5m -c pycosat.c -o build/temp.linux-aarch64-3.5/pycosat.o
    In file included from pycosat.c:18:
    ./picosat.c:8245:10: fatal error: 'sys/unistd.h' file not found
    #include <sys/unistd.h>
             ^
    1 error generated.
    error: command 'gcc' failed with exit status 1

I'm not an expert of Android NDK. Do you think it's fixable? Is there a way to add the sys/unistd.h header file?
Thank you for this wonderful app

@fornwall
Copy link
Member

Using <sys/unistd.h> does not work on Android. It seems to be a legacy path, I've submitted a pull request to pycosat at conda/pycosat#29.

@MaxGhenis
Copy link

Is there any known way to install conda?

Here were my steps using the recommendation from the conda installation page:

pkg install wget

(restart termux)

wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh

(accept defaults)

...
installing: python-3.6.4-hc3d631a_1 ...
Miniconda3-latest-Linux-x86_64.sh: line 363: /data/data/com.termux/files/home/miniconda3/pkgs/python-3.6.4-hc3d631a_1/bin/python: No such file or directory

@Grimler91
Copy link
Member

@MaxGhenis is you android device x86_64? If not then that particular script isn't the way to go.

@MaxGhenis
Copy link

@Grimler91 yes I'm running a Pixelbook, and this installer worked via crouton.

@scottlittle
Copy link

The latest ARM repo did not work for my Pixel XL. Does anyone know where to get a repo that works for my version of ARM? Or is that something that would have to be built from scratch?

@Hax4us
Copy link
Contributor

Hax4us commented Apr 18, 2018

What you mean by "did not work" ? Please explain your error or problem you are facing

@SDRausty

This comment was marked as spam.

@scottlittle
Copy link

@Hax4us, here's a snippet of installation and error:

... installing: sqlite-3.8.4.1-1 ...
installing: yaml-0.1.6-0 ...
installing: zlib-1.2.8-0 ...
installing: conda-3.16.0-py27_0 ...
installing: pycrypto-2.6.1-py27_0 ...
Miniconda-3.16.0-Linux-armv7l.sh: line 265: /data/data/com.termux/files/home/miniconda/pkgs/python-2.7.10-0/bin/python: No such file or directory
ERROR:
cannot execute native linux-armv7l binary, output from 'uname -a' is:
Linux localhost 3.18.70-gabd44345f20f #1 SMP PREEMPT Wed Mar 14 20:59:04 UTC 2018 aarch64 Android
$

@Grimler91
Copy link
Member

@scottlittle you have a aarch64 device so you shouldn't use a armv7l installation script.

@SDRausty

This comment was marked as spam.

@Grimler91
Copy link
Member

@SDRausty the termux-info output doesn't mention arm, only aarch64. I'm not familiar with pixel xl though, maybe it is one of those that mix arches.

@SDRausty

This comment was marked as spam.

@scottlittle
Copy link

scottlittle commented Apr 18, 2018 via email

@ghost
Copy link

ghost commented Apr 18, 2018

installing: conda-3.16.0-py27_0 ...
installing: pycrypto-2.6.1-py27_0 ...
Miniconda-3.16.0-Linux-armv7l.sh: line 265: /data/data/com.termux/files/home/miniconda/pkgs/python-2.7.10-0/bin/python: No such file or directory

@scottlittle, you can't execute these binaries in Termux due to different ABI. GNU libc needed to run them.

@MaxGhenis
Copy link

Should I file a new issue for my Pixelbook installation problem? It seems like this discussion is for other device types.

@ameybh
Copy link

ameybh commented Sep 8, 2019

@MaxGhenis

ERROR: size of Miniconda3-latest-Linux-x86_64.sh should be     75257002 bytes

I'm getting this after following your steps.

@ghost
Copy link

ghost commented Sep 8, 2019

@ameybhavsar24 You won't be able to use it. Termux doesn't support executables compiled for normal Linux distributions. It will just end with:

Miniconda3-latest-Linux-x86_64.sh: line 363: /data/data/com.termux/files/home/miniconda3/pkgs/python-3.6.4-hc3d631a_1/bin/python: No such file or directory

because of missing linker (/lib/ld-linux-x86-64.so.2).

@ghost ghost locked and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants