[GH-ISSUE #4130] Docker Build is failing because libcurl-httpd24 .so.4 cannot be loaded #2566

Closed
opened 2026-04-12 12:53:33 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @SoniCoder on GitHub (May 3, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/4130

Originally assigned to: @dhiltgen on GitHub.

What is the issue?

2.330 Submodule 'llama.cpp' (https://github.com/ggerganov/llama.cpp.git) registered for path '../llama.cpp'
2.341 + git submodule update --force ../llama.cpp
3.575 Cloning into '/go/src/github.com/ollama/ollama/llm/llama.cpp'...
3.630 /opt/rh/rh-git227/root/usr/libexec/git-core/git-remote-https: error while loading shared libraries: libcurl-httpd24
.so.4: cannot open shared object file: No such file or directory

OS

Linux

GPU

Nvidia

CPU

AMD

Ollama version

commit is e9ae607ece

Originally created by @SoniCoder on GitHub (May 3, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/4130 Originally assigned to: @dhiltgen on GitHub. ### What is the issue? 2.330 Submodule 'llama.cpp' (https://github.com/ggerganov/llama.cpp.git) registered for path '../llama.cpp' 2.341 + git submodule update --force ../llama.cpp 3.575 Cloning into '/go/src/github.com/ollama/ollama/llm/llama.cpp'... 3.630 /opt/rh/rh-git227/root/usr/libexec/git-core/git-remote-https: error while loading shared libraries: libcurl-httpd24 .so.4: cannot open shared object file: No such file or directory ### OS Linux ### GPU Nvidia ### CPU AMD ### Ollama version commit is e9ae607ece49384f391e7e52e32a58addb336095
GiteaMirror added the dockerbug labels 2026-04-12 12:53:33 -05:00
Author
Owner

@dhiltgen commented on GitHub (May 3, 2024):

I haven't been able to reproduce. I did a docker system prune and repulled the base layers, but ./script/build_docker.sh still works. Can you provide some more details on how you're building?

<!-- gh-comment-id:2093509307 --> @dhiltgen commented on GitHub (May 3, 2024): I haven't been able to reproduce. I did a `docker system prune` and repulled the base layers, but `./script/build_docker.sh` still works. Can you provide some more details on how you're building?
Author
Owner

@jmorganca commented on GitHub (May 7, 2024):

Hi @SoniCoder is this using the Dockerfile in this repo? https://github.com/ollama/ollama/blob/main/Dockerfile if so, it should have that library. If not, you may need to install libcurl before building Ollama in a container

<!-- gh-comment-id:2098969983 --> @jmorganca commented on GitHub (May 7, 2024): Hi @SoniCoder is this using the Dockerfile in this repo? https://github.com/ollama/ollama/blob/main/Dockerfile if so, it should have that library. If not, you may need to install libcurl before building Ollama in a container
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#2566