[GH-ISSUE #1851] Failed to add ollama cli to PATH during install #63093

Closed
opened 2026-05-03 11:57:27 -05:00 by GiteaMirror · 8 comments
Owner

Originally created by @vjpr on GitHub (Jan 8, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/1851

How does ollama add to macos PATH?

The install didn't work for me. Where does it modify the PATH?

Originally created by @vjpr on GitHub (Jan 8, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/1851 How does ollama add to macos PATH? The install didn't work for me. Where does it modify the PATH?
GiteaMirror added the questionmacos labels 2026-05-03 11:57:36 -05:00
Author
Owner

@igorschlum commented on GitHub (Jan 8, 2024):

Hi @vjpr when you download ollama app from the homepage of ollama.ia, you move the app to your app folder, double click on it and in the terminal, you can type

Ollama run llama2

Can you give more explanation of what is missing to run.

<!-- gh-comment-id:1881691813 --> @igorschlum commented on GitHub (Jan 8, 2024): Hi @vjpr when you download ollama app from the homepage of ollama.ia, you move the app to your app folder, double click on it and in the terminal, you can type ```markdown Ollama run llama2 ``` Can you give more explanation of what is missing to run.
Author
Owner

@pdevine commented on GitHub (Jan 9, 2024):

@vjpr How did you install ollama?

<!-- gh-comment-id:1883630432 --> @pdevine commented on GitHub (Jan 9, 2024): @vjpr How did you install ollama?
Author
Owner

@vjpr commented on GitHub (Jan 10, 2024):

I installed using downloaded app on macOS.

It asks if I want to add to terminal and I click yes. But I don't see where it was installed to. Running zsh.

<!-- gh-comment-id:1884228319 --> @vjpr commented on GitHub (Jan 10, 2024): I installed using downloaded app on macOS. It asks if I want to add to terminal and I click yes. But I don't see where it was installed to. Running zsh.
Author
Owner

@pdevine commented on GitHub (Jan 10, 2024):

It should be in /Applications/Ollama.app/Contents/Resources/ollama and there should be a symlink to it from /usr/local/bin/ollama. You should check that /usr/local/bin is in your PATH.

<!-- gh-comment-id:1885327008 --> @pdevine commented on GitHub (Jan 10, 2024): It should be in `/Applications/Ollama.app/Contents/Resources/ollama` and there should be a symlink to it from `/usr/local/bin/ollama`. You should check that `/usr/local/bin` is in your PATH.
Author
Owner

@ianschmitz commented on GitHub (Feb 5, 2024):

Indeed i had the same issue as @vjpr. I had to update my PATH variable to add /usr/local/bin.

In my ~/.zprofile i added at the beginning:

export PATH="/usr/local/bin:${PATH}"
<!-- gh-comment-id:1927947933 --> @ianschmitz commented on GitHub (Feb 5, 2024): Indeed i had the same issue as @vjpr. I had to update my `PATH` variable to add `/usr/local/bin`. In my `~/.zprofile` i added at the beginning: ```bash export PATH="/usr/local/bin:${PATH}" ```
Author
Owner

@igorschlum commented on GitHub (Feb 6, 2024):

Hi @ianschmitz are you on MacOS? If you create a new user in your computer, car you reproduce the issue?

<!-- gh-comment-id:1929368975 --> @igorschlum commented on GitHub (Feb 6, 2024): Hi @ianschmitz are you on MacOS? If you create a new user in your computer, car you reproduce the issue?
Author
Owner

@pdevine commented on GitHub (Mar 11, 2024):

@ianschmitz @vjpr did either of you by chance not have brew installed on your system? For whatever reason I already had /usr/local/bin/ in the PATH in my .zshrc file, and now I'm wondering how it got there.

<!-- gh-comment-id:1989420551 --> @pdevine commented on GitHub (Mar 11, 2024): @ianschmitz @vjpr did either of you by chance not have brew installed on your system? For whatever reason I already had `/usr/local/bin/` in the PATH in my `.zshrc` file, and now I'm wondering how it got there.
Author
Owner

@dhiltgen commented on GitHub (Jul 24, 2024):

On a fresh MacOS v12 system (the oldest I have around) /usr/local/bin appears to be in the default users path, so I don't think it's a flawed assumption to install there by default.

@vjpr if you're still having problems, can you share what your shell is, and if you've modified your dot file(s) to alter the default PATH?

<!-- gh-comment-id:2248934329 --> @dhiltgen commented on GitHub (Jul 24, 2024): On a fresh MacOS v12 system (the oldest I have around) `/usr/local/bin` appears to be in the default users path, so I don't think it's a flawed assumption to install there by default. @vjpr if you're still having problems, can you share what your shell is, and if you've modified your dot file(s) to alter the default PATH?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#63093