PDA

View Full Version : Kernel headers / source?


Bitnetix
10-21-2008, 12:28 PM
We're compiling custom code. How can I get the kernel headers and kernel source installed so that this will work?

# make
make[1]: Entering directory `/usr/local/src/<foobar>'
You do not appear to have the sources for the 2.6.16.33-xenU kernel installed.

PeterNic
10-24-2008, 01:45 AM
Bitnetix,

Pick the version you need from: http://forum.3tera.com/showthread.php?p=484#poststop

Regards,
-- Peter

Bitnetix
01-05-2009, 07:29 AM
After a long hiatus, I've returned to try to finish this project for a client. I'm a smart guy, but I guess I can't figure this out.

AppLogic version just upgraded to 2.4.7. Trying to use a VDS CentOS 5.1 (v1.0.4-1) box as the base, just for a prototype for now.

I need to compile software XYZ.

uname -r says:
2.6.18.8-xenU

When I do my make, after what would have been proper configuration on a non-virtual box, I get this:

"You do not appear to have the sources for the 2.6.18.8-xenU kernel installed."

So I downloaded the sources for the kernel as specified in this note. Uncompress. Expanded into a temp directory.

I now have a bzip2 file xen-3.2.2-src.tgz that seems to contain kernel sources, but I cannot, for the life of me, figure out where to put this stuff so that my code will compile.

Help?

PavelGeorgiev
01-06-2009, 07:06 AM
Bitnetix,

I`ve updated the instructions (http://forum.3tera.com/showpost.php?p=484&postcount=1) how to build rpms from the kernel sources we provide. The package you need to install after building it is xen-devel.

Hope that helps ;)

Bitnetix
01-06-2009, 11:03 AM
Hope that helps ;)

BRILLIANT! Okay, I'm set!!! Thanks much!