Quote:
Originally Posted by Ayman.mashal
but when i try to install it i get the error
error: cannot create %sourcedir /usr/src/redhat/SOURCES
(what is the problem here i created the folders
BUILD RPMS SOURCES SPECS SRPMS manualy !)
|
Odd... Don't know what the problem is here...
Since you used noarch in your rpmbuild command when you should've used $(arch), you should probably delete the kernel source you installed. You can do this by
Code:
cd /usr/src/redhat
rm -fr BUILD/* SOURCES/* SPECS/*
Then reinstall your source rpm (rpm -Uvh <kernel>.src.rpm).
Quote:
then after i use the command
rpmbuild -bp --target=noarch /usr/src/redhat/SPECS/kernel-2.6.spec
|
Change "noarch" to "$(arch)".
Quote:
but afterward i cant find the src directory into /usr/src/redhat/BUILD/kernel-2.6.11/linux-2.6.11/usr
|
No such directory will be created. Some driver build scripts look for /usr/src/linux. If that's the case, try this.
Code:
ln -s /usr/src/redhat/BUILD/kernel-2.6.11/linux-2.6.11 /usr/src/linux