-
Hi! It seems like my llama.cpp can't use libcurl in my system. When I try to pull a model from HF, I get the following: I'm on Ubuntu, and have the following modules installed:
(abridged) Is this the curl used in Any ideas? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Can you double check that the llama.cpp version that you build used the If using cmake this would look something like this: $ cmake -S . -B build -DLLAMA_CURL=ON Or if using make: $ make LLAMA_CURL=1 Also, if I remember correctly you might need the $ sudo apt install libcurl4-openssl-dev |
Beta Was this translation helpful? Give feedback.
-
Why this is not in BUILD.md ? And this seems to be required, not optional. Why this is not in Makefile? (latest github version 18.2.2025) |
Beta Was this translation helpful? Give feedback.
-
Since this discussion didn't have any solutions one might be looking for on windows, I installed vcpkg git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
bootstrap-vcpkg.bat Then I installed libcurl vcpkg install curl:x64-windows Then I integrated vcpkg so that libs can be automatically found vcpkg integrate install From there it emitted a cmake file I could pass to cmake via a -D
And then I built llama.cpp git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build -DLLAMA_CURL=ON -DGGML_CUDA=ON -DCMAKE_TOOLCHAIN_FILE=C:/code/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build build --config Release You might get away with using ninja, but I don't think it really matters since most of the time compiling is spent in .cu (cuda) files. |
Beta Was this translation helpful? Give feedback.
Can you double check that the llama.cpp version that you build used the
LLAMA_CURL
flag?If using cmake this would look something like this:
$ cmake -S . -B build -DLLAMA_CURL=ON
Or if using make:
$ make LLAMA_CURL=1
Also, if I remember correctly you might need the
libcurl4-openssl-dev
package as well.$ sudo apt install libcurl4-openssl-dev