Installing Llama cpp python on Debian with no git installed throws an error
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- cmake, git, python
- Domain
- build-system
Research direction
The error occurs during CMake configuration in vendor/llama.cpp/ggml/CMakeLists.txt at line 277, where find_program looks for git. Examine the CMakeLists.txt to understand why git is required in version 0.3.7+. Check if the dependency is mandatory or can be made optional. The fix likely involves modifying the CMake logic to handle systems without git, possibly by providing a fallback or skipping a git-dependent step. Test the build on a Debian system without git installed.
Written by the indexing model from the issue text.
Description
Prior to version 0.3.7 I had no issues installing llama cpp python on my embedded single board computer which is running debian. Git is not installed on the image I'm using. When I run pip install llama-cpp-python==0.3.6 --break-system-packages everything works fine, but when I try to install the latest version I get the following error.
-- Adding CPU backend variant ggml-cpu: -mcpu=cortex-a76.cortex-a55+crypto+dotprod+noi8mm+nosve
CMake Error at vendor/llama.cpp/ggml/CMakeLists.txt:277 (find_program):
Could not find GIT_EXE using the following names: git, git.exe
-- Configuring incomplete, errors occurred!
*** CMake configuration failed
After installing git the issue is fixed. It's an easy fix so it's not a big deal, but I would rather not install unnecessary dependencies on my lightweight image, and am also wondering why this changed.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 1.5k
- Avg merge
- 23m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from abetlen/llama-cpp-python
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
abetlen/llama-cpp-python#2352 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
abetlen/llama-cpp-python#2211 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
abetlen/llama-cpp-python#2210 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
abetlen/llama-cpp-python#2145 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
abetlen/llama-cpp-python#2135 · 4 reactions ·
All issues in abetlen/llama-cpp-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100