Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to compile OpenOnload from Solarflare for my nic on a server that I'm building. It is saying something about not having a kernel build.

root@server:/usr/src/openonload-201310-u2# ./scripts/onload_install
onload_install: Building OpenOnload.
mmakebuildtree: No kernel build at '/lib/modules/3.2.0-4-amd64/build'
onload_build: FAILED: mmakebuildtree --driver -d x86_64_linux-3.2.0-4-amd64
onload_install: ERROR: Build failed.  Not installing.
`

What is it talking about when it's saying there is supposed to be kernel build at /lib/modules/3.2.0-4-amd64/build? How would I get that file?

I'm using Debian 7 "Wheezy".

Thanks so much for your help!

share|improve this question
    
It's talking about the kernel development headers which are needed for compiling certain applications. The details on how to get them depend on your distribution. Please edit your question and add the distribution you are using. –  terdon Mar 18 at 20:58
    
@terdon Did just that. I'm on Debian 7. –  Questionmark Mar 18 at 21:03
add comment

1 Answer 1

up vote 5 down vote accepted

It's talking about the kernel development headers which are needed for compiling certain applications. On Debian-based distributions, you can install them with this command:

sudo apt-get install linux-headers-`uname -r`

If you're asked for that, you may also require the following:

sudo apt-get install build-essentials

That will install tools like make which might not be installed by default, I'm not sure.

share|improve this answer
    
That did it. Thanks! –  Questionmark Mar 18 at 21:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.