I am trying to run setup.py related to a proprietary software installation and it has dependencies on libffi.
Since its Redhat 6.5 the python version was 2.6 and i installed python 2.7.
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
My query is how do we modify the pkg-config search path. to point to libffi.pc?
Libffi will install under /usr/local by default.
Package: libffi-devel description: The libffi library provides a portable, high level programming interface to various calling conventions. This allows a programmer to call any function specified by a call interface description at run-time.
try after installing:
sudo apt-get install libffi6 libffi-dev
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With