[ovs-discuss] Unable to configure the linux kernel module

Ben Pfaff blp at nicira.com
Wed Apr 4 21:32:00 UTC 2012


On Wed, Apr 04, 2012 at 05:23:31PM -0400, ANAND AKELLA wrote:
> I using the latest openvswitch-1.4.0 software on ubuntu v11.10 Utah emulab
> node. When I try to configure the Linux kernel module it gives the
> following error
> 
> ubuntu3:~/openvswitch-1.4.0# sudo ./configure
> --with-linux=/lib/modules/`uname -r`/build
> checking build number... none
> checking for a BSD-compatible install... /usr/bin/install -c
> !
> !
> checking target hint for cgcc... x86_64
> checking whether make has GNU make $(if) extension... yes
> checking for Linux build directory... no
> configure: error: source dir /lib/modules/2.6.38.7-1.0emulab/build doesn't
> exist
> 
> ubuntu3:~/openvswitch-1.4.0# ls -l  /lib/modules/2.6.38.7-1.0emulab/build
> lrwxrwxrwx 1 root root 24 2011-08-24 12:51
> /lib/modules/2.6.38.7-1.0emulab/build -> /mnt/linux-source-2.6.38
> 
> I went through couple of threads in openvswitch archive,as per the
> discussion I tried to run the following command but I'm facing the same
> issue.
> 
> ubuntu3:~/openvswitch-1.4.0# sudo apt-get install linux-headers-`uname -r`
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> linux-headers-2.6.38.7-1.0emulab is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
> 
> ubuntu3:~/openvswitch-1.4.0# sudo ./configure
> --with-linux=/lib/modules/`uname -r`/build
> checking build number... none
> checking for a BSD-compatible install... /usr/bin/install -c
> !
> !
> checking target hint for cgcc... x86_64
> checking whether make has GNU make $(if) extension... yes
> checking for Linux build directory... no
> configure: error: source dir /lib/modules/2.6.38.7-1.0emulab/build doesn't
> exist
> 
> Please let me know if I'm missing something.

The kernel source code, apparently.

What's in /mnt/linux-source-2.6.38?



More information about the discuss mailing list