[GH-ISSUE #10251] ollama on linux x86_64 without sudo #68784

Closed
opened 2026-05-04 15:11:05 -05:00 by GiteaMirror · 8 comments
Owner

Originally created by @zhaoclaire on GitHub (Apr 12, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/10251

How can I install Ollama on a linux x86_64 server without sudo? Is there some instruction/documentation somewhere about this? Thanks

Originally created by @zhaoclaire on GitHub (Apr 12, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/10251 How can I install Ollama on a linux x86_64 server without sudo? Is there some instruction/documentation somewhere about this? Thanks
GiteaMirror added the question label 2026-05-04 15:11:05 -05:00
Author
Owner

@rick-github commented on GitHub (Apr 12, 2025):

https://github.com/ollama/ollama/blob/main/docs/linux.md#manual-install

Just change the install target and don't use sudo.

<!-- gh-comment-id:2798923690 --> @rick-github commented on GitHub (Apr 12, 2025): https://github.com/ollama/ollama/blob/main/docs/linux.md#manual-install Just change the install target and don't use sudo.
Author
Owner

@zhaoclaire commented on GitHub (Apr 12, 2025):

Instead of installing it in /usr I put it in my home directory, and running ollama I get

ollama: /lib64/libm.so.6: version GLIBC_2.27' not found (required by ollama) ollama: /lib64/libstdc++.so.6: version GLIBCXX_3.4.25' not found (required by ollama)
ollama: /lib64/libstdc++.so.6: version GLIBCXX_3.4.20' not found (required by ollama) ollama: /lib64/libstdc++.so.6: version CXXABI_1.3.9' not found (required by ollama)
ollama: /lib64/libstdc++.so.6: version CXXABI_1.3.11' not found (required by ollama) ollama: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21' not found (required by ollama)
ollama: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by ollama)

<!-- gh-comment-id:2798931950 --> @zhaoclaire commented on GitHub (Apr 12, 2025): Instead of installing it in /usr I put it in my home directory, and running ollama I get ollama: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by ollama) ollama: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.25' not found (required by ollama) ollama: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by ollama) ollama: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by ollama) ollama: /lib64/libstdc++.so.6: version `CXXABI_1.3.11' not found (required by ollama) ollama: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ollama) ollama: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by ollama)
Author
Owner

@rick-github commented on GitHub (Apr 12, 2025):

What OS are you installing on?

<!-- gh-comment-id:2798933137 --> @rick-github commented on GitHub (Apr 12, 2025): What OS are you installing on?
Author
Owner

@zhaoclaire commented on GitHub (Apr 12, 2025):

I'm using CentOS Linux

<!-- gh-comment-id:2798933852 --> @zhaoclaire commented on GitHub (Apr 12, 2025): I'm using CentOS Linux
Author
Owner

@rick-github commented on GitHub (Apr 12, 2025):

What version?

<!-- gh-comment-id:2798934609 --> @rick-github commented on GitHub (Apr 12, 2025): What version?
Author
Owner

@zhaoclaire commented on GitHub (Apr 12, 2025):

CentOS Linux 7 (Core)

<!-- gh-comment-id:2798935273 --> @zhaoclaire commented on GitHub (Apr 12, 2025): CentOS Linux 7 (Core)
Author
Owner

@rick-github commented on GitHub (Apr 12, 2025):

CentOS Linux 7 was last released on 12 November 2020 and was EOL'd 30 June 2024 so there may be some library issues. You can try locate libm.so.6 or find / -xdev -name libm.so.6 to see if the missing library can be found on your system, then you would just need to set LD_LIBRARY_PATH to the directory for ollama to find the libraries. Failing that, you can try building from source, or installing docker and running ollama in a container.

<!-- gh-comment-id:2798939102 --> @rick-github commented on GitHub (Apr 12, 2025): CentOS Linux 7 was last released on 12 November 2020 and was EOL'd 30 June 2024 so there may be some library issues. You can try `locate libm.so.6` or `find / -xdev -name libm.so.6` to see if the missing library can be found on your system, then you would just need to set `LD_LIBRARY_PATH` to the directory for ollama to find the libraries. Failing that, you can try [building from source](https://github.com/ollama/ollama/blob/main/docs/development.md#linux), or [installing docker](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-centos-7) and running ollama in a container.
Author
Owner

@zhaoclaire commented on GitHub (Apr 12, 2025):

Fixed by building from source, many thanks!

<!-- gh-comment-id:2799065347 --> @zhaoclaire commented on GitHub (Apr 12, 2025): Fixed by building from source, many thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#68784