[Dahdi] Installation error

Ubuntu 12.04 (Precise)

root@li100-34:/usr/src/dahdi-linux-complete-2.9.1.1+2.9.1# make
make -C linux all
make[1]: Entering directory /usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux' make -C drivers/dahdi/firmware firmware-loaders make[2]: Entering directory/usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux/drivers/dahd
i/firmware’
make[2]: Leaving directory /usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux/drivers/dahdi /firmware' You do not appear to have the sources for the 3.2.0-65-virtual kernel installed. make[1]: *** [modules] Error 1 make[1]: Leaving directory/usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux’
make: *** [all] Error 2

root@li100-34:/usr/src# uname -r
3.2.0-65-virtual

root@li100-34:/usr/src# dpkg -l | grep linux-headers
ii linux-headers-3.2.0-65 3.2.0-65.98 Header files related
to Linux kernel version 3.2.0
ii linux-headers-3.2.0-65-generic 3.2.0-65.98 Linux kernel headers
for version 3.2.0 on 64 bit x86 SMP
ii linux-headers-3.2.0-65-virtual 3.2.0-65.98 Linux kernel headers
for version 3.2.0 on 64 bit x86 Virtual Guests
ii linux-headers-generic 3.2.0.65.77 Generic Linux kernel
headers
ii linux-headers-virtual 3.2.0.65.77 Linux kernel headers
for virtual machines
root@li100-34:/usr/src#

Can anyone please help me on this issue? I need to fix this within today :frowning:

Thanks
Bala

I get this for make clean

root@li100-34:/usr/src/dahdi-linux-complete-2.9.1.1+2.9.1# make clean
make -C linux clean
make[1]: Entering directory /usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux' make -C drivers/dahdi/firmware clean make[2]: Entering directory/usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux/drivers/dahd
i/firmware’
rm -f dahdi-fw-*.o
make[2]: Leaving directory /usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux/drivers/dahdi /firmware' make -C /lib/modules/3.2.0-65-virtual/build M='/usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/ linux/drivers/dahdi/oct612x' clean make: Entering an unknown directory make: *** /lib/modules/3.2.0-65-virtual/build: No such file or directory. Stop. make: Leaving an unknown directory make[1]: *** [clean] Error 2 make[1]: Leaving directory/usr/src/dahdi-linux-complete-2.9.1.1+2.9.1/linux’
make: *** [clean] Error 2

I just checked the virtual image and it works as I would expect. Perhaps something went wrong when you did the install?

The following commands worked for me, so I could see that /lib/modules/3.2.0-65-virtual/build is pointing to the kernel headers properly.

 sudo apt-get install linux-image-virtual linux-headers-virtual
 KSRC=/lib/modules/3.2.0-65-virtual/build make

Perhaps try removing and then reinstalling the linux-headers-virtual package?

Hi sruffell,

Thanks for replying me :smile:

Here is the output of the commands you sent me

root@li100-34:/# apt-get install linux-image-virtual linux-headers-virtual
Reading package lists… Done
Building dependency tree
Reading state information… Done
linux-headers-virtual is already the newest version.
linux-image-virtual is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@li100-34:/# /lib/modules/3.2.0-65-virtual/build make
-bash: /lib/modules/3.2.0-65-virtual/build: No such file or directory
root@li100-34:/# cd /lib/modules/3.2.0-65-virtual/
root@li100-34:/lib/modules/3.2.0-65-virtual# ls
build modules.alias.bin modules.dep modules.inputmap modules.pcimap modules.symbols.bin
initrd modules.builtin modules.dep.bin modules.isapnpmap modules.seriomap modules.usbmap
kernel modules.builtin.bin modules.devname modules.ofmap modules.softdep
modules.alias modules.ccwmap modules.ieee1394map modules.order modules.symbols
root@li100-34:/lib/modules/3.2.0-65-virtual# build make
No command ‘build’ found, did you mean:
Command ‘xbuild’ from package ‘mono-xbuild’ (main)
Command ‘guild’ from package ‘guile-2.0-libs’ (universe)
Command ‘sbuild’ from package ‘sbuild’ (universe)
Command ‘bwild’ from package ‘bacula-director-common’ (main)
Command ‘buildd’ from package ‘buildd’ (universe)
build: command not found