Org Web Adapter

pages/fix_xmlsec1_installtion_on_macos.org

ID
03896ad5-e26e-4c30-b0f3-3c25d30bd733

Install surepreme directly on macOS with poetry

https://github.com/xmlsec/python-xmlsec/issues/254

Specifically using this guys tap:

#+begin_src sh

# Install libxmlsec1@1.2.37

brew uninstall libxmlsec1

brew install tvuotila/libxmlsec1/libxmlsec1@1.2.37

# And then undo it

brew uninstall libxmlsec1@1.2.37

brew untap tvuotila/libxmlsec1

#+end_src

Then you have to make sure you're using the Xcode CLI tools:

#+begin_src sh

sudo xcode-select -s /Library/Developer/CommandLineTools

#+end_src

Lastly, make sure openssl and swig are installed and used:

#+begin_src sh

# Install openssl and swig

brew install openssl

brew install swig

# Specifically for fish

env LDFLAGS="-L"(brew --prefix openssl)"/lib" \

CFLAGS="-I"(brew --prefix openssl)"/include" \

SWIG_FEATURES="-cpperraswarn -includeall -I"(brew --prefix openssl)"/include" \

pip install m2crypto

#+end_src