Skip to content

Instantly share code, notes, and snippets.

@dungdt88
Created December 6, 2023 03:59
Show Gist options
  • Save dungdt88/1596709eeeab212a1d058b8604ef2fe5 to your computer and use it in GitHub Desktop.
Save dungdt88/1596709eeeab212a1d058b8604ef2fe5 to your computer and use it in GitHub Desktop.
Solve issue with xmlsec installation in Mac

Reference: xmlsec/python-xmlsec#254 (comment)

  1. Remove the official formula
brew uninstall libxmlsec1
  1. Download the last known good formula and shove it into /tmp
export DESIRED_SHA="7f35e6ede954326a10949891af2dba47bbe1fc17"
wget -O /tmp/libxmlsec1.rb "https://raw.githubusercontent.com/Homebrew/homebrew-core/${DESIRED_SHA}/Formula/libxmlsec1.rb"
  1. Install the local copy of the last known good formula from /tmp
brew install --formula /tmp/libxmlsec1.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment