[GH-ISSUE #11527] How to run Ollama 0.9.6 or later as a non-administrator user (without exit status 2) #33369

Closed
opened 2026-04-22 15:57:25 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @17g on GitHub (Jul 25, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/11527

Originally assigned to: @dhiltgen on GitHub.

Hi.
I want to use Ollama version 0.9.6 or later portably on Windows10 by placing it on a USB memory stick.
Since I do not want to install Ollama, I plan to use the zip file provided on GitHub. However, for Ollama versions 0.9.6 and later, unless I install the included Microsoft vc_redist.x64.exe with administrator privileges, the Ollama server throws an "exit status 2" error and fails to load models.
On the PC where I want to run Ollama, I do not have administrator privileges, so is there any way to avoid the "exit status 2" error without installing vc_redist.x64.exe?
Placing the required DLL files in the same folder as ollama.exe does not resolve the issue.
The "exit status 2" occurs at the point where the C++ function ggml_load_all_from_path is called via cgo.

regards

ollama_clienr_console.txt
ollama_server_console.txt

Originally created by @17g on GitHub (Jul 25, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/11527 Originally assigned to: @dhiltgen on GitHub. Hi. I want to use Ollama version 0.9.6 or later portably on Windows10 by placing it on a USB memory stick. Since I do not want to install Ollama, I plan to use the zip file provided on GitHub. However, for Ollama versions 0.9.6 and later, unless I install the included Microsoft vc_redist.x64.exe with administrator privileges, the Ollama server throws an "exit status 2" error and fails to load models. On the PC where I want to run Ollama, I do not have administrator privileges, so is there any way to avoid the "exit status 2" error without installing vc_redist.x64.exe? Placing the required DLL files in the same folder as ollama.exe does not resolve the issue. The "exit status 2" occurs at the point where the C++ function ggml_load_all_from_path is called via cgo. regards [ollama_clienr_console.txt](https://github.com/user-attachments/files/21433482/ollama_clienr_console.txt) [ollama_server_console.txt](https://github.com/user-attachments/files/21433481/ollama_server_console.txt)
GiteaMirror added the installwindows labels 2026-04-22 15:57:26 -05:00
Author
Owner

@praneshnikhar commented on GitHub (Jul 26, 2025):

The most reliable solution is to have an administrator install the Microsoft Visual C++ Redistributable for Visual Studio 2015-2022 (x64) on the target machine. Alternative workarounds (like manual DLL placement) are generally unreliable for applications with complex C++ dependencies.

<!-- gh-comment-id:3122032459 --> @praneshnikhar commented on GitHub (Jul 26, 2025): The most reliable solution is to have an administrator install the Microsoft Visual C++ Redistributable for Visual Studio 2015-2022 (x64) on the target machine. Alternative workarounds (like manual DLL placement) are generally unreliable for applications with complex C++ dependencies.
Author
Owner

@17g commented on GitHub (Aug 9, 2025):

I was able to achieve my goal thanks to the changed in v0.11.3 "Statically link C++ libraries on windows for better compatibility." .Thank you so much!

<!-- gh-comment-id:3169626763 --> @17g commented on GitHub (Aug 9, 2025): I was able to achieve my goal thanks to the changed in v0.11.3 "Statically link C++ libraries on windows for better compatibility." .Thank you so much!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#33369