4

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".

  • 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 '14 at 20:58
  • @terdon Did just that. I'm on Debian 7. – Questionmark Mar 18 '14 at 21:03
5

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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