Operating System - Linux
1820198 Members
3977 Online
109620 Solutions
New Discussion

error: cannot create %sourcedir /usr/src/redhat/SOURCES

 
SOLVED
Go to solution
Pando
Regular Advisor

error: cannot create %sourcedir /usr/src/redhat/SOURCES

Dear Gurus,

I am trying to install some packages on my LINUX but i got the error below:

error: cannot create %sourcedir /usr/src/redhat/SOURCES

What does the error means?
Maximum points to all correct answers.
1 REPLY 1
Stuart Browne
Honored Contributor
Solution

Re: error: cannot create %sourcedir /usr/src/redhat/SOURCES

Trying to install an SRC RPM?

Is the 'rpm-build' package installed? If not, install it.

If not, my next guess is that the following directories do not exist:

/usr/src/redhat/SOURCES
/usr/src/redhat/SPECS
/usr/src/redhat/BUILD
/usr/src/redhat/SRPMS
/usr/src/redhat/RPMS
/usr/src/redhat/RPMS/athlon
/usr/src/redhat/RPMS/i386
/usr/src/redhat/RPMS/i486
/usr/src/redhat/RPMS/i586
/usr/src/redhat/RPMS/i686
/usr/src/redhat/RPMS/noarch
One long-haired git at your service...