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

Cannot install on OS X: C compiler cannot find ffi.h #28

Open
nathancarter opened this issue Mar 15, 2017 · 2 comments
Open

Cannot install on OS X: C compiler cannot find ffi.h #28

nathancarter opened this issue Mar 15, 2017 · 2 comments

Comments

@nathancarter
Copy link

Hello.

Following the directions here to install on OSX (10.11.6), I did this:

  1. Installed Cairo (using Homebrew, as brew install cairo).
  2. Installed ez_setup (using pip, as sudo pip install ez_setup).
  3. Tried to install Gizeh, and failed. Details:

I typed: sudo pip install gizeh
It did:

Collecting gizeh
  Downloading gizeh-0.1.10.tar.gz
Collecting cairocffi (from gizeh)
  Downloading cairocffi-0.8.0.tar.gz (79kB)
    100% |████████████████████████████████| 81kB 1.3MB/s
    Complete output from command python setup.py egg_info:
    c/_cffi_backend.c:15:10: fatal error: 'ffi.h' file not found
    #include <ffi.h>
             ^
    1 error generated.

(Followed by many Python errors that are just a big stacktrace pointing to this C compiler error.)

Did I follow the directions incorrectly? Is there a step missing? Any help appreciated, thanks.

Nathan

@HyggeHacker
Copy link

I've had the same issue on another project. Glad to see you were never responded too :(

@nathancarter
Copy link
Author

Turns out I had both pip and pip3 installed on my system, and replacing all pip calls with pip3 calls seems to have correctly installed Gizeh. Of course, now it's 1.5 years later, so I don't remember what in the world I actually wanted Gizeh for, so I don't intend to test it now. But it installed correctly. I think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants