My Oracle Support Banner

Attempting to Rebuild a RPM Using 'rpmbuild --rebuild' Fails with "gcc: error trying to exec 'cc1': execvp: No such file or directory" (Doc ID 2041493.1)

Last updated on MAY 26, 2021

Applies to:

Linux OS - Version Oracle Linux 4.4 and later
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
Linux x86


 On Oracle Linux, when attempting to rebuild a rpm e.g. for a kernel driver, the rpmbuild command fails with the following error:


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.