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

Missing ffi.h header on Linux build? #16

Open
ceteri opened this issue Jun 8, 2017 · 1 comment
Open

Missing ffi.h header on Linux build? #16

ceteri opened this issue Jun 8, 2017 · 1 comment

Comments

@ceteri
Copy link

ceteri commented Jun 8, 2017

Build errors seem to point to a missing ffi.h header on Linux build?

Running pip install cld2-cffi on my MacBook Pro worked fine. The same run on our Ubuntu server failed with:

Collecting cld2-cffi
  Using cached cld2-cffi-0.1.4.tar.gz
    Complete output from command python setup.py egg_info:
    c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
    compilation terminated.

The full error listing is at error.txt

Taking a cue from #12 I tried some of the compiler flags, although we're already on GCC 5:

$ env | grep "^C"
CFLAGS=-Wno-narrowing
CC=/usr/bin/gcc-5

Using pip install git+https://github.com/GregBowyer/cld2-cffi.git also fails.

System info:

$ uname -a
Linux chomsky 4.4.0-71-generic #92-Ubuntu SMP Fri Mar 24 12:59:01 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

$ python --version
Python 3.5.2

FWIW, was able to run pip install git+https://github.com/aboSamoor/pycld2.git on the same system with no issues, if that helps?

@GregBowyer
Copy link
Owner

apt-get these packages and you should be good

libffi-dev python-dev

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