Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c++

fedora

I'm studying qt on platform Fedora linux, It threw a g++ error as below while I make a sample cpp

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

Would who indicate how to do for me please?

like image 488
xinshouke Avatar asked Jan 06 '16 01:01

xinshouke


2 Answers

You need to install redhat-rpm-config which is required by some of the qt switches, probably:

sudo dnf install redhat-rpm-config

From AskFedora.

like image 148
Jakuje Avatar answered Nov 18 '22 23:11

Jakuje


According to this topic installation of the package redhat-rpm-config should fix this problem.

/usr/lib/rpm/redhat/redhat-hardened-cc1 is included in the package redhat-rpm-config. I had a similiar issue on a local development system and installing this package solved the issue for me.

like image 16
Slava Avatar answered Nov 19 '22 00:11

Slava