[PR #596] [MERGED] update install.sh #10247

Closed
opened 2026-04-12 22:55:49 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/596
Author: @mxyng
Created: 9/25/2023
Status: Merged
Merged: 9/26/2023
Merged by: @mxyng

Base: mainHead: mxyng/install.sh


📝 Commits (3)

  • d294a11 start service on exit instead of immediately
  • d5ad41d fix path for wsl user
  • 5e388f9 check cuda installed before installing

📊 Changes

1 file changed (+12 additions, -1 deletions)

View changed files

📝 scripts/install.sh (+12 -1)

📄 Description

This prevents the service from restarting too early and not detecting GPU before drivers are installed.

Fix PATH for WSL user. WSL preinstalls CUDA toolkit but it's in a non-standard path (/usr/lib/wsl/lib). While this is set for a normal WSL user, it's not set for the ollama user. This change sets PATH of the ollama service to the PATH of the caller


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/596 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 9/25/2023 **Status:** ✅ Merged **Merged:** 9/26/2023 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/install.sh` --- ### 📝 Commits (3) - [`d294a11`](https://github.com/ollama/ollama/commit/d294a11bc9d7e7094870698173e152c32758e63c) start service on exit instead of immediately - [`d5ad41d`](https://github.com/ollama/ollama/commit/d5ad41dd7b95434d313695d48951e01ce0558414) fix path for wsl user - [`5e388f9`](https://github.com/ollama/ollama/commit/5e388f931e4b30a911ee5fe49421e89f6c5f81bb) check cuda installed before installing ### 📊 Changes **1 file changed** (+12 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `scripts/install.sh` (+12 -1) </details> ### 📄 Description This prevents the service from restarting too early and not detecting GPU before drivers are installed. Fix PATH for WSL user. WSL preinstalls CUDA toolkit but it's in a non-standard path (`/usr/lib/wsl/lib`). While this is set for a normal WSL user, it's not set for the ollama user. This change sets PATH of the ollama service to the PATH of the caller --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 22:55:49 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#10247