[GH-ISSUE #7349] add termux compile instructions to web page #66726

Open
opened 2026-05-04 07:58:31 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @fxmbsw7 on GitHub (Oct 25, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7349

pkg ugrade -y golang clang cmake libandroid-execinfo gzip git
git clone https://github.com/ollama/ollama ollama
cd ollama
go generate ./...
go build .
cp ollama ~/../usr/bin

this used to work to 0.3.13 then .14 the err came but i believe u change well , err will be gone , cmd working again ..

greets ..

Originally created by @fxmbsw7 on GitHub (Oct 25, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7349 pkg ugrade -y golang clang cmake libandroid-execinfo gzip git git clone https://github.com/ollama/ollama ollama cd ollama go generate ./... go build . cp ollama ~/../usr/bin this used to work to 0.3.13 then .14 the err came but i believe u change well , err will be gone , cmd working again .. greets ..
GiteaMirror added the buildfeature request labels 2026-05-04 07:58:32 -05:00
Author
Owner

@b9Joker108 commented on GitHub (Oct 27, 2024):

I have tried different ways to install ollama on my unrooted Termux, without success. I tried an analogue of the above, but got errors. I tried to install with the Linux script, but it required root. I rewrote the script and installed the binary script in: ~/.local/bin/olama and the library directory in: ~/.local/lib/olama, but I had problems with incompatible or non-extant C Libraries for Termux. I appreciate that, given that I got this far, I could prolly install it in a proot chroot, but I really want the ollama server to run in my Termux host environment. Any assistance greatly appreciated!

<!-- gh-comment-id:2439776813 --> @b9Joker108 commented on GitHub (Oct 27, 2024): I have tried different ways to install `ollama` on my unrooted Termux, without success. I tried an analogue of the above, but got errors. I tried to install with the Linux script, but it required root. I rewrote the script and installed the binary script in: `~/.local/bin/olama` and the library directory in: `~/.local/lib/olama`, but I had problems with incompatible or non-extant C Libraries for Termux. I appreciate that, given that I got this far, I could prolly install it in a proot chroot, but I really want the `ollama` server to run in my Termux host environment. Any assistance greatly appreciated!
Author
Owner

@replikation commented on GitHub (Feb 5, 2025):

I followed your instructions, @fxmbsw7. It worked for me with commit ad22ace on an Android (Oxygen OS) installed via Termux.

<!-- gh-comment-id:2636210169 --> @replikation commented on GitHub (Feb 5, 2025): I followed your instructions, @fxmbsw7. It worked for me with commit [ad22ace](https://github.com/ollama/ollama/commit/ad22ace439eb3fab7230134e56bb6276a78347e4) on an Android (Oxygen OS) installed via Termux.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#66726