Skip to content

Instantly share code, notes, and snippets.

@truedat101
Created November 16, 2025 00:13
Show Gist options
  • Select an option

  • Save truedat101/9cb5dfdb71bd5405ef58aa06f4320792 to your computer and use it in GitHub Desktop.

Select an option

Save truedat101/9cb5dfdb71bd5405ef58aa06f4320792 to your computer and use it in GitHub Desktop.
A gist is a breadcrumb for a wary traveller looking for how to install magicffi (libmagic) on mac os x silicon mac
This fixes a magic.h not found !
brew reinstall libmagic pkgconf
export CPPFLAGS="-I$(brew --prefix)/include $CPPFLAGS"
export LDFLAGS="-L$(brew --prefix)/lib $LDFLAGS"
export PKG_CONFIG_PATH="$(brew --prefix)/lib/pkgconfig:$PKG_CONFIG_PATH"
then run your lisp, and install
(ql:quickload :magicffi)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment