[GH-ISSUE #8085] ollama : /usr/lib64/libstdc++.so.6: version GLIBCXX_3.4.25 not found - Kylin Linux glibc++ version incompatible with official builds #5167

Open
opened 2026-04-12 16:17:05 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @ouber23 on GitHub (Dec 13, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/8085

Originally assigned to: @dhiltgen on GitHub.

What is the issue?

when run ollama the error has happend as follow:
ollama : /usr/lib64/libstdc++.so.6: version GLIBCXX_3.4.25 not found

OS

No response

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @ouber23 on GitHub (Dec 13, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/8085 Originally assigned to: @dhiltgen on GitHub. ### What is the issue? when run ollama the error has happend as follow: ollama : /usr/lib64/libstdc++.so.6: version GLIBCXX_3.4.25 not found ### OS _No response_ ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the linuxbug labels 2026-04-12 16:17:05 -05:00
Author
Owner

@dhiltgen commented on GitHub (Dec 13, 2024):

@ouber23 please share more details about which version of Ollama you're running, how you installed it, and what linux distro you're running.

<!-- gh-comment-id:2541936162 --> @dhiltgen commented on GitHub (Dec 13, 2024): @ouber23 please share more details about which version of Ollama you're running, how you installed it, and what linux distro you're running.
Author
Owner

@ouber23 commented on GitHub (Dec 16, 2024):

@ouber23 please share more details about which version of Ollama you're running, how you installed it, and what linux distro you're running.

@ouber23 please share more details about which version of Ollama you're running, how you installed it, and what linux distro you're running.

  1. I have tried two version 0.5.1 and 0.4.x , the same error when i run ollama serve
  2. the step of installed it : a) download the arm64 pkg: ollama-linux-arm64.tgz b) tar -C /usr -xzf ollama-linux-arm64.tgz
    c) add a ollama user: sudo useradd -r -s /bin/false -m -d /usr/share/ollama ollama d) add the service config file: /etc/systemd/system/ollama.service d) the config some: sudo systemctl xxx ollama
  3. the oper sys infomations: operating system: Kylin Linux Advanced Server V10(Sword); Kernel: Linux 4.19.90-24.4.v2101.ky10.aarch64; architecture: arm64
<!-- gh-comment-id:2544265101 --> @ouber23 commented on GitHub (Dec 16, 2024): > @ouber23 please share more details about which version of Ollama you're running, how you installed it, and what linux distro you're running. @ouber23 please share more details about which version of Ollama you're running, how you installed it, and what linux distro you're running. 1. I have tried two version 0.5.1 and 0.4.x , the same error when i run ollama serve 2. the step of installed it : a) download the arm64 pkg: ollama-linux-arm64.tgz b) tar -C /usr -xzf ollama-linux-arm64.tgz c) add a ollama user: sudo useradd -r -s /bin/false -m -d /usr/share/ollama ollama d) add the service config file: /etc/systemd/system/ollama.service d) the config some: sudo systemctl xxx ollama 3. the oper sys infomations: operating system: Kylin Linux Advanced Server V10(Sword); Kernel: Linux 4.19.90-24.4.v2101.ky10.aarch64; architecture: arm64
Author
Owner

@dhiltgen commented on GitHub (Jan 6, 2025):

It looks like Kylin Linux has an incompatible C++ library version compared to Rocky Linux 8 and the GCC v10 toolchain we use to compile the official binary releases. Until we can find a fix, you should be able to build from source so that it links against the C++ library version available on your distro.

https://github.com/ollama/ollama/blob/main/docs/development.md

<!-- gh-comment-id:2573756197 --> @dhiltgen commented on GitHub (Jan 6, 2025): It looks like Kylin Linux has an incompatible C++ library version compared to Rocky Linux 8 and the GCC v10 toolchain we use to compile the official binary releases. Until we can find a fix, you should be able to build from source so that it links against the C++ library version available on your distro. https://github.com/ollama/ollama/blob/main/docs/development.md
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#5167