Skip to content

Instantly share code, notes, and snippets.

@truedat101
Last active February 14, 2026 06:55
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 weary 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)
@truedat101
Copy link
Copy Markdown
Author

Noting, this was useful when trying to build the obscure library called ingle (which is one letter off from ningle)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment