RUNLOCALAIv38
->Will it run?Best GPUCompareTroubleshootStartLearnPulseModelsHardwareToolsBench
Run check
RUNLOCALAI

Independently operated catalog for local-AI hardware and software. Hand-written verdicts. Source-cited claims. Reproducible commands when we have them.

OP·Fredoline Eruo
DIR
  • Models
  • Hardware
  • Tools
  • Benchmarks
TOOLS
  • Will it run?
  • Compare hardware
  • Cost vs cloud
  • Choose my GPU
  • Prompting kits
  • Quick answers
REF
  • All buyer guides
  • Learn local AI
  • Methodology
  • Glossary
  • Errors KB
  • Trust
EDITOR
  • About
  • Author
  • How we make money
  • Editorial policy
  • Contact
LEGAL
  • Privacy
  • Terms
  • Sitemap
MAIL · MONTHLY DIGEST
Get monthly local AI changes
Monthly recap. No spam.
DISCLOSURE

Some links on this site are affiliate links (Amazon Associates and other first-class retailers). When you buy through them, we earn a small commission at no extra cost to you. Affiliate links do not influence our verdicts — there are cards we rate highly that we don't have affiliate relationships with, and cards that sell well that we refuse to recommend. Read more →

© 2026 runlocalai.coIndependently operated
RUNLOCALAI · v38
Errors / Build / compile failures / llama.cpp build fails: nvcc not found
Build / compile failures

llama.cpp build fails: nvcc not found

GGML_USE_CUDA defined but nvcc not found in PATH
By Fredoline Eruo · Last verified Jun 12, 2026

Cause

Building llama.cpp with CUDA requires the full CUDA Toolkit (nvcc compiler), not just the GPU driver. The driver alone is enough to RUN CUDA programs, but you need the toolkit to COMPILE them.

Solution

Check if nvcc exists:

which nvcc
nvcc --version

Install the CUDA Toolkit:

Linux (Ubuntu):

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt update && sudo apt install cuda-toolkit-12-6

Then add to PATH:

echo 'export PATH=/usr/local/cuda/bin:$PATH' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc
source ~/.bashrc

Windows: Install the CUDA Toolkit installer from developer.nvidia.com/cuda-downloads. Use the visual studio integration option. Open the "x64 Native Tools Command Prompt for VS" — nvcc will be on PATH there.

Build llama.cpp:

make clean
GGML_CUDA=1 make -j

Skip CUDA if you don't actually need it (CPU-only build is fast and works):

make -j

Related errors

  • llama.cpp build fails: nvcc not found / CUDA toolkit missing
  • llama.cpp CUDA build: unsupported GNU version! gcc versions later than X are not supported
  • exllamav2 ImportError: cannot import name 'ExLlamaV2' / undefined symbol
  • flash-attn install fails on Windows / no precompiled wheel

Did this fix it?

If your case was different, email Contact support with what you saw and we'll update the page. If it worked but took different commands on your platform, we want to know that too.