本文介绍了在pkg-config搜索路径REDHAT6.5中找不到软件包libffi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试运行与专有软件安装相关的setup.py,它依赖于libffi.
I am trying to run setup.py related to a proprietary software installation and it has dependencies on libffi.
由于其Redhat 6.5的python版本是2.6,所以我安装了python 2.7.
Since its Redhat 6.5 the python version was 2.6 and i installed python 2.7.
libffi已经安装,当我创建一个virtualenv并尝试通过运行setup.py尝试安装软件时,出现以下错误:
libffi was already installed and when i create a virtualenv and try installing the software by running the setup.py i get the following error:
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
我的查询是如何修改pkg-config搜索路径.指向libffi.pc?
My query is how do we modify the pkg-config search path.to point to libffi.pc?
推荐答案
安装后尝试:
sudo apt-get install libffi6 libffi-dev
这篇关于在pkg-config搜索路径REDHAT6.5中找不到软件包libffi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!