分页: 1 / 1

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

发表于 : 2006-04-23 14:50
mimihu88
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

发表于 : 2006-04-23 14:55
eexpress
alsa,系统安装就有的吧。
编译要先自己看熟悉,安装了编译环境,再用的。你.configure都没搞就make

发表于 : 2006-04-23 15:03
mimihu88
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

发表于 : 2006-04-23 15:07
mimihu88
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的时候就有问题了,是不是版本头的问题啊

发表于 : 2006-04-23 15:20
eexpress
$ ll /usr/bin/gcc
lrwxrwxrwx 1 root root 7 2006-03-28 20:58 /usr/bin/gcc -> gcc-4.0
你把这个删除,再sudo ln -s一个希望的版本试试。

发表于 : 2006-04-23 15:25
mimihu88
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版本不对?

发表于 : 2006-04-23 15:30
mimihu88
mimihu88@ubuntumimihu:~$ ln -s /usr/bin/gcc-3.4 /usr/bin/gcc
ln: ‘/usr/bin/gcc’:文件已存在


这又是什么意思?

发表于 : 2006-04-23 15:32
eexpress
仔细看。上面说了,先把gcc删除。再sudo ln -s

发表于 : 2006-04-23 15:44
mimihu88
eexpress 写了:仔细看。上面说了,先把gcc删除。再sudo ln -s
bash: lrwxrwxrwx: command not found

直接卸载gcc 4.0 行不行,应该怎么卸载

发表于 : 2006-04-23 15:50
eexpress
你那是什么哦。是权限标记了。

sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-3.4 /usr/bin/gcc

发表于 : 2006-04-23 16:05
mimihu88
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/里面是空的