[GH-ISSUE #14350] MLX dynamic library not available warning on Apple Silicon (Homebrew install) #55840

Closed
opened 2026-04-29 09:47:40 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @IGurkovskiy on GitHub (Feb 21, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/14350

On every ollama list and ollama run llama3:latest command I get a warning:

2026/02/21 19:53:40 WARN MLX dynamic library not available error="failed to load MLX dynamic library (searched: [/opt/homebrew/Cellar/ollama/0.16.3/bin /Users/igorgurkovskiy/build/lib/ollama])"

Models run normally, but the warning appears every time.
Environment
	•	OS: macOS (Apple Silicon, M‑series)
	•	Install method: Homebrew
	•	Ollama version: 0.16.3 (from  brew reinstall ollama )
	•	MLX version: 0.30.5 (from  brew install mlx )
	•	Output of  brew --prefix :
	•	 brew --prefix ollama  →  /opt/homebrew/opt/ollama 
	•	 brew --prefix mlx  →  /opt/homebrew/opt/mlx 
What I expected to happen
Since  mlx  is installed via Homebrew and  libmlx.dylib  is present, I expected Ollama to detect and use the MLX backend without warnings.
What actually happens
Even after reinstalling Ollama and MLX, and after exporting:

export DYLD_LIBRARY_PATH=/opt/homebrew/opt/mlx/lib:$DYLD_LIBRARY_PATH

I still get:

WARN MLX dynamic library not available error="failed to load MLX dynamic library (searched: [/opt/homebrew/Cellar/ollama/0.16.3/bin /Users/igorgurkovskiy/build/lib/ollama])"

Ollama appears to search only in these two hardcoded paths and does not look into the standard Homebrew  mlx  prefix.
Additional details
	•	 libmlx.dylib  exists at  /opt/homebrew/opt/mlx/lib/libmlx.dylib .
	•	Ollama itself is installed in  /opt/homebrew/Cellar/ollama/0.16.3  and symlinked via  /opt/homebrew/opt/ollama .
	•	Models such as  llama3:latest  and  ministral-3:latest  run successfully; only the MLX warning is shown.
Questions
	•	Is there a recommended way to configure the MLX search path for the Homebrew install?
	•	Should Ollama automatically look for  libmlx.dylib  in  /opt/homebrew/opt/mlx/lib  on Apple Silicon?
	•	Is this expected behavior (just a harmless warning), or a misconfiguration/bug?

Thank you!
Originally created by @IGurkovskiy on GitHub (Feb 21, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/14350 On every `ollama list` and `ollama run llama3:latest` command I get a warning: ```text 2026/02/21 19:53:40 WARN MLX dynamic library not available error="failed to load MLX dynamic library (searched: [/opt/homebrew/Cellar/ollama/0.16.3/bin /Users/igorgurkovskiy/build/lib/ollama])" Models run normally, but the warning appears every time. Environment • OS: macOS (Apple Silicon, M‑series) • Install method: Homebrew • Ollama version: 0.16.3 (from  brew reinstall ollama ) • MLX version: 0.30.5 (from  brew install mlx ) • Output of  brew --prefix : •  brew --prefix ollama  →  /opt/homebrew/opt/ollama  •  brew --prefix mlx  →  /opt/homebrew/opt/mlx  What I expected to happen Since  mlx  is installed via Homebrew and  libmlx.dylib  is present, I expected Ollama to detect and use the MLX backend without warnings. What actually happens Even after reinstalling Ollama and MLX, and after exporting: export DYLD_LIBRARY_PATH=/opt/homebrew/opt/mlx/lib:$DYLD_LIBRARY_PATH I still get: WARN MLX dynamic library not available error="failed to load MLX dynamic library (searched: [/opt/homebrew/Cellar/ollama/0.16.3/bin /Users/igorgurkovskiy/build/lib/ollama])" Ollama appears to search only in these two hardcoded paths and does not look into the standard Homebrew  mlx  prefix. Additional details •  libmlx.dylib  exists at  /opt/homebrew/opt/mlx/lib/libmlx.dylib . • Ollama itself is installed in  /opt/homebrew/Cellar/ollama/0.16.3  and symlinked via  /opt/homebrew/opt/ollama . • Models such as  llama3:latest  and  ministral-3:latest  run successfully; only the MLX warning is shown. Questions • Is there a recommended way to configure the MLX search path for the Homebrew install? • Should Ollama automatically look for  libmlx.dylib  in  /opt/homebrew/opt/mlx/lib  on Apple Silicon? • Is this expected behavior (just a harmless warning), or a misconfiguration/bug? Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#55840