-
Notifications
You must be signed in to change notification settings - Fork 20
failed to install on macos #140
Comments
I believe libxml2 is keg-only, because Homebrew doesn't want to introduce link-time conflicts with existing system libraries. You may need to tell env CFLAGS="-I$(brew --prefix)/opt/libxml2/include/libxml2" pip install bblfsh Edit: fix missing flag. |
Yes, as explained in the Dependencies section of the readme, this client depends on having libxml2 headers installed. Next version will remove that requirement. |
I think the problem was that they are installed, but Homebrew doesn't automatically link them to the default include path. |
For Mojave MacOS I was able to solve this problem by installing command line tools from /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg |
Thank you for reporting workaround @gregkonushev-okta 🎉 Will close this, if there no objections as a workaround is found AND a it's not worth documenting it elsewhere as @juanjux mentioned - a new version from #128 will not have this dependency at all. |
I just ran into this same issue, and the command that fixed the problem for me was:
From @creachadair It would be helpful if this were added to the README. I do not think #128 fixed this issue. |
I believe #128 removes the dependency, but that the current release doesn't include it yet. We are planning to cut a release including these changes soon, and at that point this workaround should no longer be required. Sorry for the confusion about timing. |
And v3.0.0 release is out now on pypi. |
I have installed
libxml2
frombrew
,but
pip install bblfsh
fails with this error:The text was updated successfully, but these errors were encountered: