我正在尝试运行与专有软件安装相关的setup.py,它依赖于libffi.
从它的Redhat 6.5开始,python版本为2.6,我安装了python 2.7.
libffi已经安装,当我创建virtualenv并尝试通过运行setup.py安装软件时,我收到以下错误:
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
c/_cffi_backend.c:15:17: error: ffi.h: No such file or directory
In file included from c/_cffi_backend.c:63:
yum list libffi
Loaded plugins: product-id,refresh-packagekit,security,subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Installed Packages
libffi.x86_64 3.0.5-3.2.el6 @anaconda-RedHatEnterpriseLinux-201311111358.x86_64/6.5
Available Packages
libffi.i686 3.0.5-3.2.el6 rhel-local
最佳答案
安装后尝试:
原文链接:https://www.f2er.com/linux/440469.htmlsudo apt-get install libffi6 libffi-dev