安装驱动出问题,请哪位帮忙看看(2)(已解决)

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
mimihu88
帖子: 552
注册时间: 2006-04-03 11:26

安装驱动出问题,请哪位帮忙看看(2)(已解决)

#1

帖子 mimihu88 » 2006-04-23 14:50

mimihu88@ubuntumimihu:/tmp/alsa-driver-1.0.11$ make
make all-deps
make[1]: Entering directory `/tmp/alsa-driver-1.0.11'
utils/mod-deps --basedir /tmp/alsa-driver-1.0.11/alsa-kernel --hiddendir /tmp/alsa-driver-1.0.11 --acinclude > acinclude.m4
make[1]: Leaving directory `/tmp/alsa-driver-1.0.11'

Please, run the configure script as first...

mimihu88@ubuntumimihu:/tmp/alsa-driver-1.0.11$ make install
rm -f /snd*.*o /persist.o /isapnp.o
make[1]: Entering directory `/tmp/alsa-driver-1.0.11/acore'
Makefile:6: /tmp/alsa-driver-1.0.11/Makefile.conf: 没有那个文件或目录
/tmp/alsa-driver-1.0.11/Rules.make:75: /Rules.make1: 没有那个文件或目录
make[1]: *** 没有规则可以创建目标“/Rules.make1”。 停止。
make[1]: Leaving directory `/tmp/alsa-driver-1.0.11/acore'
make: *** [install-modules] 错误 1
上次由 mimihu88 在 2006-04-23 16:58,总共编辑 1 次。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#2

帖子 eexpress » 2006-04-23 14:55

alsa,系统安装就有的吧。
编译要先自己看熟悉,安装了编译环境,再用的。你.configure都没搞就make
● 鸣学
mimihu88
帖子: 552
注册时间: 2006-04-03 11:26

#3

帖子 mimihu88 » 2006-04-23 15:03

eexpress 写了:alsa,系统安装就有的吧。
编译要先自己看熟悉,安装了编译环境,再用的。你.configure都没搞就make
./configure搞了的!!!系统带的驱动版本低,反正现在是没声音,说不定升级一下驱动会好呢,不懂就是要折腾,
否则永远都不会,大不了重装系统吗

mimihu88@ubuntumimihu:~$ cd /tmp/alsa-driver-1.0.11
mimihu88@ubuntumimihu:/tmp/alsa-driver-1.0.11$ ./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 ANSI C... 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 egrep... 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.11
checking cross compile...
checking for directory with kernel source... /usr/src/linux
checking for directory with kernel build...
checking for kernel linux/version.h... no
The file /usr/src/linux/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).
mimihu88@ubuntumimihu:/tmp/alsa-driver-1.0.11$ make
make all-deps
make[1]: Entering directory `/tmp/alsa-driver-1.0.11'
utils/mod-deps --basedir /tmp/alsa-driver-1.0.11/alsa-kernel --hiddendir /tmp/alsa-driver-1.0.11 --acinclude > acinclude.m4
make[1]: Leaving directory `/tmp/alsa-driver-1.0.11'

Please, run the configure script as first...

mimihu88@ubuntumimihu:/tmp/alsa-driver-1.0.11$ make install
rm -f /snd*.*o /persist.o /isapnp.o
make[1]: Entering directory `/tmp/alsa-driver-1.0.11/acore'
Makefile:6: /tmp/alsa-driver-1.0.11/Makefile.conf: 没有那个文件或目录
/tmp/alsa-driver-1.0.11/Rules.make:75: /Rules.make1: 没有那个文件或目录
make[1]: *** 没有规则可以创建目标“/Rules.make1”。 停止。
make[1]: Leaving directory `/tmp/alsa-driver-1.0.11/acore'
make: *** [install-modules] 错误 1
mimihu88
帖子: 552
注册时间: 2006-04-03 11:26

#4

帖子 mimihu88 » 2006-04-23 15:07

The file /usr/src/linux/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).

./configure的时候就有问题了,是不是版本头的问题啊
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#5

帖子 eexpress » 2006-04-23 15:20

$ ll /usr/bin/gcc
lrwxrwxrwx 1 root root 7 2006-03-28 20:58 /usr/bin/gcc -> gcc-4.0
你把这个删除,再sudo ln -s一个希望的版本试试。
● 鸣学
mimihu88
帖子: 552
注册时间: 2006-04-03 11:26

#6

帖子 mimihu88 » 2006-04-23 15:25

eexpress 写了:$ ll /usr/bin/gcc
lrwxrwxrwx 1 root root 7 2006-03-28 20:58 /usr/bin/gcc -> gcc-4.0
你把这个删除,再sudo ln -s一个希望的版本试试。
你的意思是gcc版本不对?
mimihu88
帖子: 552
注册时间: 2006-04-03 11:26

#7

帖子 mimihu88 » 2006-04-23 15:30

mimihu88@ubuntumimihu:~$ ln -s /usr/bin/gcc-3.4 /usr/bin/gcc
ln: ‘/usr/bin/gcc’:文件已存在


这又是什么意思?
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#8

帖子 eexpress » 2006-04-23 15:32

仔细看。上面说了,先把gcc删除。再sudo ln -s
● 鸣学
mimihu88
帖子: 552
注册时间: 2006-04-03 11:26

#9

帖子 mimihu88 » 2006-04-23 15:44

eexpress 写了:仔细看。上面说了,先把gcc删除。再sudo ln -s
bash: lrwxrwxrwx: command not found

直接卸载gcc 4.0 行不行,应该怎么卸载
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#10

帖子 eexpress » 2006-04-23 15:50

你那是什么哦。是权限标记了。

sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-3.4 /usr/bin/gcc
● 鸣学
mimihu88
帖子: 552
注册时间: 2006-04-03 11:26

#11

帖子 mimihu88 » 2006-04-23 16:05

The file /usr/src/linux/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).

./configure的时候还是一样的问题

我的/usr/src/里面是空的
回复