bivab / smbus-cffi

Python bindings for Linux SMBus access through i2c-dev using cffi
GNU General Public License v2.0
61 stars 31 forks source link

cffi Install Fails Prior to smbus-cffi Install on Arch Linux #7

Closed guardrex closed 10 years ago

guardrex commented 10 years ago

Not sure if this is your issue or not: During install on Arch Linux, before I get to the step of actually installing smbus-cffi, pip install cffi runs up to a point, then fails with:

c/_cffi_backend.c:13:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
compilation terminated
bivab commented 10 years ago

Hi, cffi requires pkg-config and the development package of libffi to be installed. See cffi issue #106 for some details. Does installing those packages help?

bivab commented 10 years ago

Verified on archlinux, as mentioned above, to install cffi, it is necessary to have pkg-config installed. pkg-config can be installed as a standalone package with pacman -S pkg-config or by installing the base-devel package using pacman -S base-devel.