[elrepo] I Hope This Is A Newbie Question

Manuel Wolfshant wolfy at nobugconsulting.ro
Thu Jul 14 17:25:39 EDT 2011


On 07/15/2011 12:22 AM, Stu Statman wrote:
> I needed to install a recent kernel-ml over a vanilla CentOS build,
> because of some SocketCAN related functionality that wasn't available in
> the vanilla build. Now I'd like to use that functionality. For that to
> happen, I need the headers to develop my app against. So I dust off my
> (very dusty) Linux install skillset, and I try this :
>
> [root at dess-aopen1 2.6.39-2.el5.elrepo-i686]# pwd
> /usr/src/kernels/2.6.39-2.el5.elrepo-i686
>
> [root at dess-aopen1 2.6.39-2.el5.elrepo-i686]# make headers_install
>     CHK     include/linux/version.h
> /usr/src/kernels/2.6.39-2.el5.elrepo-i686/scripts/Makefile.headersinst:14:
> /usr/src/kernels/2.6.39-2.el5.elrepo-i686/include/Kbuild: No such file
> or directory
> make[1]: *** No rule to make target
> `/usr/src/kernels/2.6.39-2.el5.elrepo-i686/include/Kbuild'.  Stop.
> make: *** [headers_install] Error 2
>
> I looked at what was going on, and it was clear that
> scripts/Makefile.headersinst was expecting a Kbuild file in that include
> directory (even though there are no headers). I decided to add a blank
> Kbuild file at /usr/src/kernels/2.6.39-2.el5.elrepo-i686/include/Kbuild,
> just to see what would happen. It did better, not erroring, but it
> didn't actually move the headers over.
>
> I've confirmed, using diff on one of the key files (sockets.h), that the
> new headers are *not* in place under /usr/include/linux. I could, I
> suppose, just manually copy all of the header files over (and accept the
> "You're doing it wrong!" warnings), but that doesn't seem like a good plan.
>

> So ... am I missing a really obvious step here? Is this not an issue
> with kernel-ml and I should look elsewhere?
You need to install the kernel-ml-devel and kernel-ml-headers packages. 
They are available in the same place as the kernel-ml package.






More information about the elrepo mailing list