ollama - 💡(How to fix) Fix Apple M4 /Silicon v0.17.7 - MLX symbol load failure on macOS (mlx_array_item_float16_) during CLI initialization [6 comments, 6 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
ollama/ollama#14663Fetched 2026-04-08 00:33:10
View on GitHub
Comments
6
Participants
6
Timeline
8
Reactions
0
Timeline (top)
commented ×6labeled ×1subscribed ×1

Error Message

Mar 6 2026 02:05:57 - ERROR - generated.c:2302 - CHECK failed: mlx_array_item_float16_ ERROR Failed to load MLX dynamic library symbols path=/Applications/Ollama.app/Contents/Resources/libmlxc.dylib WARN MLX dynamic library not available error="failed to load MLX dynamic library (searched: [/Applications/Ollama.app/Contents/Resources /build/lib/ollama])"

RAW_BUFFERClick to expand / collapse

What is the issue?

Environment

Hardware: Apple M4 Mac

OS: macOS

Ollama version: v0.17.7

Install method: curl https://ollama.com/install.sh | sh

Binary: /usr/local/bin/ollama

No Homebrew version install

Desktop app removed (/Applications/Ollama.app)

Issue

Running any CLI command (e.g. ollama --version) emits:

Mar 6 2026 02:05:57 - ERROR - generated.c:2302 - CHECK failed: mlx_array_item_float16_ ERROR Failed to load MLX dynamic library symbols path=/Applications/Ollama.app/Contents/Resources/libmlxc.dylib WARN MLX dynamic library not available error="failed to load MLX dynamic library (searched: [/Applications/Ollama.app/Contents/Resources /build/lib/ollama])"

Key points

Occurs during CLI initialization, before server start or model loading.

Ollama attempts to load libmlxc.dylib and fails due to missing symbol mlx_array_item_float16_.

Issue persists after removing ~/.ollama, ~/Library/Application Support/Ollama, and reinstalling.

Expected behavior

ollama --version should return the version without attempting MLX runtime initialization or producing symbol-load errors.

Suspected cause

Binary/runtime mismatch between Ollama and the MLX C library (libmlxc.dylib), resulting in a missing exported symbol (mlx_array_item_float16_).

Relevant log output

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

0.17.7

extent analysis

Fix Plan

The fix involves updating the MLX C library to match the Ollama version.

  • Update the libmlxc.dylib to the version compatible with Ollama v0.17.7.
  • Ensure the dynamic library path is correctly set.

Steps

  1. Download the compatible MLX C library: Download the libmlxc.dylib file from the official repository or the Ollama installation package that matches the version of Ollama (v0.17.7).
  2. Replace the existing library: Replace the existing libmlxc.dylib file located in /Applications/Ollama.app/Contents/Resources with the downloaded one.
  3. Update the dynamic library path: Ensure the DYLD_LIBRARY_PATH environment variable includes the path to the libmlxc.dylib file.

export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/Applications/Ollama.app/Contents/Resources

4. **Verify the library load**:
   Use the `otool` command to verify that the `libmlxc.dylib` file is loaded correctly and the `mlx_array_item_float16_` symbol is exported.
   ```bash
otool -L /Applications/Ollama.app/Contents/Resources/libmlxc.dylib

Code Example

To verify the fix, run the following command:

ollama --version

This should return the version without any errors related to loading the MLX dynamic library.

Verification

After applying the fix, the ollama --version command should execute without errors, indicating that the MLX dynamic library is loaded correctly.

Extra Tips

  • Ensure that the libmlxc.dylib file is compatible with the Ollama version to avoid symbol mismatch issues.
  • If the issue persists, try resetting the DYLD_LIBRARY_PATH environment variable and re-applying the fix.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

ollama - 💡(How to fix) Fix Apple M4 /Silicon v0.17.7 - MLX symbol load failure on macOS (mlx_array_item_float16_) during CLI initialization [6 comments, 6 participants]