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

overcoming Mac OS X installation errors #12

Closed
phette23 opened this issue Apr 16, 2015 · 1 comment
Closed

overcoming Mac OS X installation errors #12

phette23 opened this issue Apr 16, 2015 · 1 comment
Assignees
Labels

Comments

@phette23
Copy link

First off, thanks so much for this work! There's a real lack of good COUNTER/SUSHI tooling and I can't wait to try pycounter out.

This isn't an active issue (feel free to close immediately), but documentation in case you get questions or issues related to installation on Mac OS X. pip at first reported it couldn't find a matching version ("Could not find a version that satisfies the requirement pycounter (from versions: 0.5a1, 0.5a2)"), and then the lxml extension wouldn't build ("fatal error: 'libxml/xmlversion.h' file not found" "error: command 'cc' failed with exit status 1"). Here's how I got around these problems:

pip version

Upgrade pip to latest, pip install pip --upgrade, should work. Didn't try with pip3.

lxml compilation

  • have XCode command-line tools installed so you have a compiler, xcode-select --install
  • install libxml2 and libxslt (via homebrew), brew install libxml2 libxslt
  • since OS X already ships with those libraries, they're not symlinked by default, override that with brew link libxml2 libxslt --force
  • now pycounter will install & the lxml dependency builds
  • undo the symlinking with brew unlink libxml2 libxslt, just in case it affects other software

Not sure if that'll ever come in handy, but if other users have the same issue it might help. Thanks again!

@Wooble
Copy link
Member

Wooble commented Apr 16, 2015

Good point; I doubt pip install lxml will actually work on most platforms out of the box; I don't think even most linux distros will include the appropriate devel packages needed in a base install. I will update the documentation to point out the needs for lxml's dependencies.

I believe the version problem is because some earlier versions of pip didn't like to install pre-release software.

I will investigate both and update the docs.

@Wooble Wooble added the docs label Apr 16, 2015
@Wooble Wooble self-assigned this Apr 16, 2015
Wooble added a commit that referenced this issue Apr 17, 2015
…to 0.5 (so pip won't complain about it not being a released version). Fixes issue #12.
@Wooble Wooble closed this as completed Apr 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants