2

I installed ubuntu 12.04 LTS server on an old PC. This PC has a wireless card (Netgear wg311v3). This computer now has no access to Internet so whatever I do I transfer it from another PC. I tried to install a driver for Windows with the help of ndiswrapper but with no success.

What I did is that I downloaded the source file of ndiswrapper from here and tried to compile it as instructed from here.

So I run the command make (from within the directory /usr/src/ndiswrapeer-1.57) and the output is this:

make -C utils
make[1]:Entering directory '/usr/src/ndiswrapper-1.57/utils'
make[1]:Nothing to be done for 'all'
…
Makefile:36: *** Cannot find kernel version in /lib/modules/3.2.0-29-generic-pae/build, is it configured?. Stop.
make: *** [driver] Error 2

Does anyone know why it throws error?

tioschi
  • 133

1 Answers1

1

This message usually indicates that you're missing the kernel headers. When you compile a third-party kernel module, you need some source files from the kernel and a few additional files that depend on the kernel compile-time configuration and are generated when the kernel is compiled. These files are called “kernel headers”, and most Linux distributions, including Ubuntu, ship them in a separate package. You need the right kernel header package for your kernel version; given the error message, that would be linux-headers-3.2.0-29-generic-pae Install linux-headers-3.2.0-29-generic-pae.

Note that there is already an ndiswrapper package in Ubuntu, you probably don't need to compile it manually. It comes in several pieces: ndiswrapper-dkms Install ndiswrapper-dkms (module sources, packaged for automatic compilation on your system), ndiswrapper-utils Install ndiswrapper-utils (user-space utilities), ndisgtk Install ndisgtk (optional: a GUI frontend), ndiswrapper-common Install ndiswrapper-common (dependency of other packages). Make sure you get all the dependencies.