Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invenio-saml installation fails on macOS [SOLVED] #17

Closed
phette23 opened this issue Sep 19, 2023 · 1 comment
Closed

invenio-saml installation fails on macOS [SOLVED] #17

phette23 opened this issue Sep 19, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@phette23
Copy link
Member

Writing this as a note here because it's a lot of extraneous details for our docs, plus it should eventually be resolved upstream. Basically, due to xmlsec/python-xmlsec#252 / xmlsec/python-xmlsec#254 pipenv install invenio-saml will fail when it tries to build the C extensions for the xmlsec dependency of invenio-saml. xmlsec says to brew install pkg-config libxmlsec1 libxml2 (libxml2 is a dep of libxmlsec1 so it's not needed) but it's not compatible with the libxmlsec1 > 1.3 that's in homebrew. So we need to install an older libxmlsec1 with the steps below.

First, open App Store, start installing XCode. libxmlsec1@1.2.37 requires a full XCode and not just the command line tools to build. While that's happening...

brew install pkg-config
brew tap homebrew/core # core may not be tapped under new brew JSON APIs
brew install libxmlsec1
brew tap-brew $USER/local # create temporary tap, $USER can also just be random string
brew extract --version=1.2.37 libxmlsec1 $USER/local
brew rm libxmlsec1
brew edit $USER/local/libxmlsec1
# change download url to https://www.aleksey.com/xmlsec/download/older-releases/xmlsec1-1.2.37.tar.gz
brew install --overwrite $USER/local/libxmlsec1@1.2.37
pipenv install invenio-saml==1.0.0a4

After that's done, brew update commands will throw an error because the $USER/local tap lacks a remote. You can brew rm libxmlsec1@1.2.37 && brew untap $USER/local if you won't need to reinstall invenio-saml.

@phette23 phette23 added the bug Something isn't working label Sep 19, 2023
@phette23 phette23 self-assigned this Feb 25, 2024
@phette23
Copy link
Member Author

This should be fixed now, try to reinstall without the local xmlsec formula.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant