[quote]
junix88 wrote:
I tried to install rpm-build BUT still there's no such dir.
$ rpm -qa | grep rpm-build
rpm-build-4.8.0-19.el6_2.1.x86_64
Do we still have to create this dir for the purpose? or it will automatically created itself?
[/quote]
The kernel module wiki article refers to the [url=http://wiki.centos.org/HowTos/I_need_the_Kernel_Source]Kernel_Source[/url] wiki page. I suppose you have read Section 2 of that wiki as this is a required step. It says:
[quote]
As an ordinary user, not root, create a directory tree based on ~/rpmbuild:
[user@host]$ mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
[user@host]$ echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros
[/quote]
The first command creates 6 subdirectories including BUILD.