While updating Ansible pip package on Fedora 24 today, I got the following error message

gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory

I believe I came across this problem before when I installed a ruby gem on Centos 6 a short while back. Unfortunately, I already forgot how I’d solved it. So here’s a note to remind myself or anyone who’s having the same issue.

We need to install a package called: redhat-rpm-config.

Ref: