I downloaded the source code of a driver (tun 1.1) and i was planning to installing when i obtained the following error:
root@sergiosaturn-HP-Pavilion-dv6500-Notebook-PC:~/Documentos/Tese/tun-1.1# ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gawk... (cached) mawk
checking for a BSD compatible install... (cached) /usr/bin/install -c
creating ./config.status
creating Makefile
configuring in linux
running /bin/sh ./configure --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for kgcc... gcc
checking for gawk... (cached) mawk
checking for a BSD compatible install... (cached) /usr/bin/install -c
configure: error: Linux kernel source not found in /usr/src/linux
configure: error: ./configure failed for linux
In order to solve this problem i have used the following commands:
apt-get source linux-image-$(uname -r)
make oldconfig
make
This not only did not solve my problem, but also destroyed my ubuntu installation. I was forced to save my files and re-install ubuntu all over again. If anyone knows how to solve this problem, could you please help me.
Thank you for your time.
make install
. In addition the worst you could have done was replace your kernel (and your modules if you ranmake modules
) but ubuntu does keep old kernels around and even distros that don't, can be repaired bychroot
ing from within a livecd.