DEV Community

Cover image for Fixing Ollama Installation on Manjaro + NVIDIA
Vitalii Yulieff
Vitalii Yulieff

Posted on

3

Fixing Ollama Installation on Manjaro + NVIDIA

The current Ollama version in Arch is outdated (0.1.44 vs 0.2.1 latest). The official install script doesn't support some Manjaro configurations, but don't worry—I've got the fix!

The Problem 🤔

When I tried running the install script, I got hit with this:

curl -fsSL https://ollama.com/install.sh | sh
# sh: line 252: VERSION_ID: unbound variable
Enter fullscreen mode Exit fullscreen mode

This cryptic error just means you're missing those NVIDIA drivers, and Ollama can't sort that out for you.

Step-by-Step Fix 🏌️

step 1: find your linux kernel verion:

uname -r
# 6.9.5-1-MANJARO
pamac search "linux.*header"
# linux69-headers  6.9.5-1 [Installed]
Enter fullscreen mode Exit fullscreen mode

step 2 install everything you need

pamac install nvidia nvidia-utils cuda linux69-headers
Enter fullscreen mode Exit fullscreen mode

step 3 you might want to restart your Linux just to be on the safe side

step 4 Now, run the install script again:

curl -fsSL https://ollama.com/install.sh | sh
# ollama successfully installs on your Manjaro system!
Enter fullscreen mode Exit fullscreen mode

🏆 Boom! Done!

Troubleshooting 🕵️‍♂️

Here's how you can check the successful installation:

1) Run nvidia-smi and your video card should show up.
2) Make sure that your video card and its device ID are in the OLLAMA's logs

journalctl -u ollama | grep "id=.*NVIDIA"
# ollama[2174]: [...] id=GPU-3a31a7cb-e46b-458c-9a92-ea9708b0c7fa library=cuda compute=8.9 driver=12.4 name="NVIDIA GeForce RTX 4090 Laptop GPU" total="15.7 GiB" available="15.5 GiB"
Enter fullscreen mode Exit fullscreen mode

Quick Note for Wayland + GNOME Users

Even after I installed drivers, my Wayland still uses integrated video graphics.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more