Error map

mach-o file, but is an incompatible architecture macOS: dlopen: mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')

macOS · layer 6, Platform & cloud

Open the full error page →

Centre: this error. First ring: errors it is linked with (9). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

mach-o file, but is an incompatible architecture — macOS: dlopen: mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64') (macOS)mach-o file…No Xcode or CLT — gyp: No Xcode or CLT version detected! (npm)No Xcode or CLTHomebrew: No available formula with the name — Homebrew: Error: No available formula with the name "x". Did you mean ...? (macOS)Homebrew: No availa…Your Command Line Tools are too outdated — Homebrew: Error: Your Command Line Tools (CLT) are too outdated. Update them from Software Update / Please update to the latest macOS (macOS)Your Command Line T…Homebrew Cask: It seems there is already an App at — Homebrew: Error: It seems there is already an App at '/Applications/Chrome.app' (macOS)Homebrew Cask: It s…zsh: bad CPU type in executable — macOS (Apple Silicon): zsh: bad CPU type in executable: ./tool (macOS)zsh: bad CPU type i…dyld: Library not loaded — macOS: dyld[123]: Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib — Reason: tried: ... (no such file) (macOS)dyld: Library not l…dyld: Symbol not found — macOS: dyld: Symbol not found: _SecTrustCopyCertificateChain — Expected in: /System/Library/Frameworks/Security.framework (macOS)dyld: Symbol not fo…Rosetta 2 not installed — macOS: Rosetta is not installed — softwareupdate --install-rosetta failed / Install Rosetta to open Intel apps (macOS)Rosetta 2 not insta…Nokogiri: could not find a platform gem / libxml2 build error — Bundler: Your bundle only supports platforms ["x86_64-linux"] but your local platform is arm64-darwin / Could not find gem 'nokogiri (1.16.0-arm64-darwin)' (Ruby / Rails)Nokogiri: could not…gyp ERR! — gyp ERR! build error / node-gyp rebuild failed (npm)gyp ERR!cb() never called — npm ERR! cb() never called! (npm)cb() never calledsharp module — Error: Could not load the "sharp" module using the linux-x64 runtime (npm)sharp modulezsh: command not found: brew — macOS: zsh: command not found: brew (Homebrew not on PATH on Apple Silicon) (macOS)zsh: command not fo…Homebrew: Permission denied @ dir_s_mkdir — Homebrew: Error: Permission denied @ dir_s_mkdir - /usr/local/Cellar / /opt/homebrew is not writable (macOS)Homebrew: Permissio…Homebrew: Failed to update / fatal: unable to access — Homebrew: Error: Failure while executing; `git fetch --force origin` exited with 128 / fatal: not in a git directory (macOS)Homebrew: Failed to…invalid active developer path — xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun (iOS)invalid active deve…You have not agreed to the Xcode license agreements — macOS: Agreeing to the Xcode/iOS license requires admin privileges, please run "sudo xcodebuild -license" and then retry this command (macOS)You have not agreed…xcode-select: error: tool 'xcodebuild' requires Xcode — macOS: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance (macOS)xcode-select: error…Apple could not verify "x" is free of malware — macOS: “app” cannot be opened because Apple cannot check it for malicious software / Apple could not verify “app” is free of malware that may harm your Mac (macOS)Apple could not ver…"x" can't be opened because it is from an unidentified developer — macOS: “app” can’t be opened because it is from an unidentified developer (macOS)"x" can't be opened…zsh compinit: insecure directories — zsh: compinit: insecure directories, run compaudit for list. Ignore insecure directories and continue [y] or abort compinit [n]? (macOS)zsh compinit: insec…exec format error — exec /usr/local/bin/docker-entrypoint.sh: exec format error (Docker)exec format errorzsh: no matches found — zsh: no matches found: package[extra] (glob pattern not matched) (macOS)zsh: no matches fou…launchctl: Load failed: 5: Input/output error — macOS: Bootstrap failed: 5: Input/output error / launchctl load: Load failed: 5: Input/output error (macOS)launchctl: Load fai…error while loading shared libraries — error while loading shared libraries: libX.so.N: cannot open shared object file: No such file or directory (Linux)error while loading…GLIBC_2.xx not found — /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (Linux)GLIBC_2.xx not foundld: library not found for -lssl — macOS: ld: library 'ssl' not found / ld: library not found for -lssl (clang: error: linker command failed) (macOS)ld: library not fou…ArgumentError: missing keyword / unknown keyword — Ruby: ArgumentError: missing keyword: :name / unknown keyword: :nmae (Ruby / Rails)ArgumentError: miss…LoadError: cannot load such file — Ruby: LoadError: cannot load such file -- nokogiri (or: cannot load such file -- bundler/setup) (Ruby / Rails)LoadError: cannot l…Bundler: Could not find gem in locally installed gems — Bundler: Could not find gem 'rails (~> 7.1)' in locally installed gems / Could not find rails-7.1.0 in any of the gem sources listed in your Gemfile (Ruby / Rails)Bundler: Could not …

Directly related (9)

No Xcode or CLTnpm

gyp: No Xcode or CLT version detected!

node-gyp on macOS can’t find the Xcode Command Line Tools to compile native modules.

Homebrew: No available formula with the namemacOS

Homebrew: Error: No available formula with the name "x". Did you mean ...?

Homebrew can't find a formula or cask with that name in the taps it knows.

Your Command Line Tools are too outdatedmacOS

Homebrew: Error: Your Command Line Tools (CLT) are too outdated. Update them from Software Update / Please update to the latest macOS

Homebrew requires a newer Command Line Tools version than the one installed.

Homebrew Cask: It seems there is already an App atmacOS

Homebrew: Error: It seems there is already an App at '/Applications/Chrome.app'

A cask install failed because the app is already installed manually (or a leftover exists).

zsh: bad CPU type in executablemacOS

macOS (Apple Silicon): zsh: bad CPU type in executable: ./tool

You ran an Intel (x86_64) program on an Apple Silicon Mac without Rosetta 2 (or an arm64 binary on an Intel Mac).

dyld: Library not loadedmacOS

macOS: dyld[123]: Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib — Reason: tried: ... (no such file)

A program needs a dynamic library that is missing or was moved/removed (often after a Homebrew upgrade).

dyld: Symbol not foundmacOS

macOS: dyld: Symbol not found: _SecTrustCopyCertificateChain — Expected in: /System/Library/Frameworks/Security.framework

A program was built for a newer macOS (or different library version) than the one running, so a function it needs isn't there.

Rosetta 2 not installedmacOS

macOS: Rosetta is not installed — softwareupdate --install-rosetta failed / Install Rosetta to open Intel apps

An Intel app (or Docker/Android emulator) needs Rosetta 2 but it's not installed on this Apple Silicon Mac.

Nokogiri: could not find a platform gem / libxml2 build errorRuby / Rails

Bundler: Your bundle only supports platforms ["x86_64-linux"] but your local platform is arm64-darwin / Could not find gem 'nokogiri (1.16.0-arm64-darwin)'

The lockfile has no Nokogiri build for the current platform (precompiled "native" gems are per platform).

Two steps away (21)

gyp ERR!npm

gyp ERR! build error / node-gyp rebuild failed

A dependency with native C/C++ code couldn’t compile — missing build tools, Python, or an unsupported Node version.

cb() never callednpm

npm ERR! cb() never called!

An old npm crash during install — usually network/cache corruption.

sharp modulenpm

Error: Could not load the "sharp" module using the linux-x64 runtime

sharp’s native binary for this OS/CPU isn’t installed — usually node_modules installed on another platform (Mac → Linux/Docker).

zsh: command not found: brewmacOS

macOS: zsh: command not found: brew (Homebrew not on PATH on Apple Silicon)

Homebrew is installed in /opt/homebrew on Apple Silicon Macs, which isn’t on PATH until you add its shellenv line.

Homebrew: Permission denied @ dir_s_mkdirmacOS

Homebrew: Error: Permission denied @ dir_s_mkdir - /usr/local/Cellar / /opt/homebrew is not writable

Homebrew can't write to its prefix because the folders are owned by another user or root.

Homebrew: Failed to update / fatal: unable to accessmacOS

Homebrew: Error: Failure while executing; `git fetch --force origin` exited with 128 / fatal: not in a git directory

`brew update` couldn't fetch the Homebrew repositories — network, a broken git state or safe.directory problems.

invalid active developer pathiOS

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun

The Xcode Command Line Tools are missing or broken — typical right after a macOS update.

You have not agreed to the Xcode license agreementsmacOS

macOS: Agreeing to the Xcode/iOS license requires admin privileges, please run "sudo xcodebuild -license" and then retry this command

A new Xcode (or CLT) version needs its license accepted before command-line tools run.

xcode-select: error: tool 'xcodebuild' requires XcodemacOS

macOS: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

A command needs the full Xcode app, but `xcode-select` points to the Command Line Tools only.

Apple could not verify "x" is free of malwaremacOS

macOS: “app” cannot be opened because Apple cannot check it for malicious software / Apple could not verify “app” is free of malware that may harm your Mac

Gatekeeper blocked an app that is not notarized by Apple.

"x" can't be opened because it is from an unidentified developermacOS

macOS: “app” can’t be opened because it is from an unidentified developer

Gatekeeper refuses to open an app that isn't signed with a registered Developer ID.

zsh compinit: insecure directoriesmacOS

zsh: compinit: insecure directories, run compaudit for list. Ignore insecure directories and continue [y] or abort compinit [n]?

zsh refuses to load completions from directories owned by another user or writable by others.

exec format errorDocker

exec /usr/local/bin/docker-entrypoint.sh: exec format error

The container tried to run a binary built for a different CPU architecture (arm64 vs amd64) — or a script with a broken shebang /…

zsh: no matches foundmacOS

zsh: no matches found: package[extra] (glob pattern not matched)

zsh treats `[ ]`, `*` or `?` in an argument as a glob and fails when nothing matches, unlike bash which passes the text through.

launchctl: Load failed: 5: Input/output errormacOS

macOS: Bootstrap failed: 5: Input/output error / launchctl load: Load failed: 5: Input/output error

launchd couldn't load a LaunchAgent/Daemon plist — it's invalid, already loaded, or has the wrong ownership/permissions.

error while loading shared librariesLinux

error while loading shared libraries: libX.so.N: cannot open shared object file: No such file or directory

The program needs a shared library (.so) that isn’t installed or isn’t on the loader’s search path.

GLIBC_2.xx not foundLinux

/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found

The binary was built on a newer Linux than the one you run it on, and needs a newer glibc than your system has.

ld: library not found for -lsslmacOS

macOS: ld: library 'ssl' not found / ld: library not found for -lssl (clang: error: linker command failed)

The linker can't find OpenSSL (or another library) because Homebrew libraries aren't on its search path.

ArgumentError: missing keyword / unknown keywordRuby / Rails

Ruby: ArgumentError: missing keyword: :name / unknown keyword: :nmae

A method requiring keyword arguments was called without them, or with a misspelt keyword.

LoadError: cannot load such fileRuby / Rails

Ruby: LoadError: cannot load such file -- nokogiri (or: cannot load such file -- bundler/setup)

`require` couldn't find the file/gem — it isn't installed, not in the Gemfile, or the load path is wrong.

Bundler: Could not find gem in locally installed gemsRuby / Rails

Bundler: Could not find gem 'rails (~> 7.1)' in locally installed gems / Could not find rails-7.1.0 in any of the gem sources listed in your Gemfile

A gem from the Gemfile/Gemfile.lock isn't installed (or isn't available at that version).