# Getting error in CERTBOT in CENTOS7 - libffi Package Missing

**URL:** <https://community.letsencrypt.org/t/getting-error-in-certbot-in-centos7-libffi-package-missing/33282>\
**Category:** Server\
**Created:** [May 3, 2017, 7:28am UTC](https://community.letsencrypt.org/t/getting-error-in-certbot-in-centos7-libffi-package-missing/33282 "2017-05-03T07:28:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KalkhandaAkshat](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/kalkhandaakshat/32/13186_2.png) [@KalkhandaAkshat](https://community.letsencrypt.org/u/KalkhandaAkshat)\
**Post date:** [May 3, 2017, 7:28am UTC](https://community.letsencrypt.org/t/getting-error-in-certbot-in-centos7-libffi-package-missing/33282/1 "2017-05-03T07:28:02Z")

</div>

Had a problem while installing Python packages.

# pip prints the following errors:

Collecting argparse==1.4.0 (from -r /tmp/tmp.eDyGRZcc4b/letsencrypt-auto-requirements.txt (line 11))  
Downloading argparse-1.4.0-py2.py3-none-any.whl  
Collecting pycparser==2.14 (from -r /tmp/tmp.eDyGRZcc4b/letsencrypt-auto-requirements.txt (line 17))  
Downloading pycparser-2.14.tar.gz (223kB)  
Collecting cffi==1.4.2 (from -r /tmp/tmp.eDyGRZcc4b/letsencrypt-auto-requirements.txt (line 21))  
Downloading cffi-1.4.2.tar.gz (365kB)  
Complete output from command python [setup.py](http://setup.py) egg\_info:  
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 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  
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 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  
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  
unable to execute gcc: No such file or directory  
unable to execute gcc: No such file or directory

```
    No working compiler found, or bogus compiler options
    passed to the compiler from Python's distutils module.
    See the error messages above.
    (If they are about -mno-fused-madd and you are on OS/X 10.8,
    see http://stackoverflow.com/questions/22313407/ .)

----------------------------------------

```

# Command “python [setup.py](http://setup.py) egg\_info” failed with error code 1 in /tmp/pip-build-aw65ST/cffi You are using pip version 8.0.3, however version 9.0.1 is available. You should consider upgrading via the ‘pip install --upgrade pip’ command.

Certbot has problem setting up the virtual environment.

We were not be able to guess the right solution from your pip  
output.

Consult [https://certbot.eff.org/docs/install.html#problems-with-python-virtual-environment](https://certbot.eff.org/docs/install.html#problems-with-python-virtual-environment)  
for possible solutions.  
You may also find some support resources at [https://certbot.eff.org/support/](https://certbot.eff.org/support/) .

---

<div class="post-metadata">

**Author:** ![ahaw021](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/ahaw021/32/14882_2.png) [@ahaw021](https://community.letsencrypt.org/u/ahaw021)\
**Post date:** [May 3, 2017, 7:46am UTC](https://community.letsencrypt.org/t/getting-error-in-certbot-in-centos7-libffi-package-missing/33282/2 "2017-05-03T07:46:28Z")

</div>

Hi @KalkhandaAkshat

Libffi is a system library needed by python cryptrography library.

[https://cryptography.io/en/latest/installation/](https://cryptography.io/en/latest/installation/)

The error is fairly self evident

> No package 'libffi' found  
> Package libffi was not found in the pkg-config search path.

Below is someone else who had a similar issue issue.

> [@Certbot with Python 2.7.1.2 on Ububtu - Broken Packages](https://community.letsencrypt.org/t/certbot-with-python-2-7-1-2-on-ububtu-broken-packages/28205):
>
> I…

Also note: the category you were after is help. As you are not able to configure or install a couple of other bits of information would have been useful such as the installation method you are using to install certbot. The server section is more about configuring servers with TLS once a cert is obtained.

Also- take appropriate steps before installing or upgrading things as they may break other things.

Andrei

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [June 2, 2017, 7:49am UTC](https://community.letsencrypt.org/t/getting-error-in-certbot-in-centos7-libffi-package-missing/33282/3 "2017-06-02T07:49:24Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
