[求助]Alsa声卡驱动安不上,编译时出了问题,望高手帮忙看看(已解决)

重复贴和参考价值不大的帖子,版主维护
回复
pangwu86
帖子: 3
注册时间: 2008-10-14 10:42
送出感谢: 0
接收感谢: 0

[求助]Alsa声卡驱动安不上,编译时出了问题,望高手帮忙看看(已解决)

#1

帖子 pangwu86 » 2009-02-13 22:33

编译的时候这样
pangwu86@ubuntu:/tmp/alsa-driver-1.0.19$ ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /tmp/alsa-driver-1.0.19
checking cross compile...
checking for directory with kernel source... ./configure: line 4820: cd: /usr/src/linux: No such file or directory
/usr/src/linux
checking for directory with kernel build...
checking for kernel linux/version.h... no
The file /include/linux/version.h does not exist.
Please install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).


好像是说源码找不到什么的,刚刚学linux,不知道该怎么做,望高手帮忙
上次由 pangwu86 在 2009-02-14 22:54,总共编辑 1 次。
janus
帖子: 156
注册时间: 2006-01-02 3:15
送出感谢: 0
接收感谢: 0

Re: [求助]Alsa声卡驱动安不上,编译时出了问题,望高手帮忙看看

#2

帖子 janus » 2009-02-14 8:38

sudo apt-get install linux-headers-$(uname -r)
pangwu86
帖子: 3
注册时间: 2008-10-14 10:42
送出感谢: 0
接收感谢: 0

Re: [求助]Alsa声卡驱动安不上,编译时出了问题,望高手帮忙看看

#3

帖子 pangwu86 » 2009-02-14 22:52

ok了,谢谢,虽然不明白那行命令干了什么,但编译通过了,很顺利的安装成功
回复

回到 “归档贴”