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

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

Open
ouber23 opened this issue Dec 13, 2024 · 3 comments
Assignees
Labels
bug Something isn't working linux

Comments

@ouber23
Copy link

ouber23 commented Dec 13, 2024

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

@ouber23 ouber23 added the bug Something isn't working label Dec 13, 2024
@dhiltgen
Copy link
Collaborator

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

@dhiltgen dhiltgen self-assigned this Dec 13, 2024
@dhiltgen dhiltgen added the needs more info More information is needed to assist label Dec 13, 2024
@ouber23
Copy link
Author

ouber23 commented 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

@dhiltgen dhiltgen changed the title ollama : /usr/lib64/libstdc++.so.6: version GLIBCXX_3.4.25 not found ollama : /usr/lib64/libstdc++.so.6: version GLIBCXX_3.4.25 not found - Kylin Linux glibc++ version incompatible with official builds Jan 6, 2025
@dhiltgen dhiltgen added linux and removed needs more info More information is needed to assist labels Jan 6, 2025
@dhiltgen
Copy link
Collaborator

dhiltgen commented 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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linux
Projects
None yet
Development

No branches or pull requests

2 participants