Skip to content

Instantly share code, notes, and snippets.

@zeusdeux
Created December 6, 2025 11:07
Show Gist options
  • Select an option

  • Save zeusdeux/f1ac76e7c6d46cd4980356830d10932d to your computer and use it in GitHub Desktop.

Select an option

Save zeusdeux/f1ac76e7c6d46cd4980356830d10932d to your computer and use it in GitHub Desktop.
When emacs inevitably fails to load due to an upgrade to icu4c (which provides libicui18n.<ver>.dylib) which is needed by libxml2 which is in turn needed by emacs, do the following to make it all work again
brew tap railwaycat/emacsmacport
brew update
# CLEANUP
brew uninstall emacs-mac
# remove dependencies that emacs has and let emacs-mac install them
brew rm --ignore-dependencies gnutls tree-sitter pkg-config
# remove the copied over version from the emacs-mac installed via homebrew
rm -fr /Applications/Emacs.app
# REINSTALL (build from source)
brew install emacs-mac --with-xwidgets --with-starter --with-native-compilation --with-librsvg --with-imagemagick
cp -a $(brew --prefix)/opt/emacs-mac/Emacs.app /Applications # to make available to spotlight
# Go open Emacs.app from finder manually to unquarantine the app
# Once emacs opens via spotlight
# 1. upgrade all installed packages in emacs
# 2. reinstall icon fonts (M-x nerd-icons-install-fonts) used by doom modeline
# 3. M-x recompile-all-packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment