从Realtek网站下载了新的声卡驱动,想升级,
按说明运行安装脚本install的时候它先把我原有的驱动删掉了,
安装过程中一闪而过的信息看到有什么找不到makefile之类的出错提示,
最后一步也没有弹出alsaconf来。
后来想到中间提示的有些目录是在/root下面的,
所以就启用了root用户,用更改用户来登录的时候就登录不了了。
出错提示说找不到一个什么lib~~没能记下来,看名字就是跟声卡驱动有关的东东。
万万没有想到升级失败也会搞到登录不了这么大件事,郁闷。
现在是用另一个系统了,除了重装Ubuntu,还有什么办法可以修复吗?
[问题]安装声卡驱动在alsaconf里找不到,怎么办?
- felixlu
- 帖子: 311
- 注册时间: 2006-11-25 15:27
- 来自: SZ
[问题]安装声卡驱动在alsaconf里找不到,怎么办?
上次由 felixlu 在 2007-01-09 1:18,总共编辑 1 次。
NoteBook: IBM X40 (1G Hz, 1.25GB, 20G+120GB)
Desktop: APU A6-3670, MSI A75A-G55, 4GB DDR3 1600 x 2
Slackware64 + Win7
Desktop: APU A6-3670, MSI A75A-G55, 4GB DDR3 1600 x 2
Slackware64 + Win7
- felixlu
- 帖子: 311
- 注册时间: 2006-11-25 15:27
- 来自: SZ
-
- 帖子: 614
- 注册时间: 2006-12-14 3:00
-
- 帖子: 614
- 注册时间: 2006-12-14 3:00
在 alsa-utils-1.0.9a.tar.bz2 压缩包里面的INSTALL文件内,
注意里面提到了需要 ncurses library,在安装驱动前,除了安装好编译环境外,需要安装libncurses5-dev。
代码: 全选
ALSA utils installation
=======================
Requirements
------------
alsamixer requires the ncurses library. Some systems need to install
the develop package additionally to link with this library.
alsaconf requires dialog or whiptail program to run properly.
- felixlu
- 帖子: 311
- 注册时间: 2006-11-25 15:27
- 来自: SZ
- felixlu
- 帖子: 311
- 注册时间: 2006-11-25 15:27
- 来自: SZ
- eshifeng
- 帖子: 38
- 注册时间: 2007-01-16 12:20
我也是这样的情况呀!
我主要是fedora 6的alsa声卡装不上,想下载你的礼包试试。知道你是高手,我把问题copy如下,请指导一下
可以确认,我已经装了gcc, 我用它编译我自己的程序没有问题。
我检查了系统,红旗5自带了alsa,版本为:
alsa driver: 1.0.9b-6
alsa-firmware: 1.0.10-4
alsa-lib: 1.0.10-1
alsa-utility:1.0.10-1
alsa-plugins: 1.0.10-2
如果在Xwindow下用系统带的alsa安装,告诉我找到声卡了,可是测试没有声音,然后调音量,告诉我
没有找到声卡。
后来下载了最新的,1.0.13
我的alsa解压缩后放在/tmp/alsa-1.0.13
我在安装新的alsa前,先在/tmp/alsa-1.0.13做了连接:
ln -s /usr/src/linux-2.6.9-5.34DT linux
然后进入lib,util,driver 3个目录,分别运行:
./configure
make
make install
lib和util非常顺利,没有任何错误,driver下面configure也正常,make首先出现下列错误:
make[1]: Entering directory `/usr/src/linux-2.6.9-5.34DT'
CC [M] /tmp/alsa-1.0.13/alsa-driver-1.0.13/acore/misc_driver.o
In file included from include/linux/platform_device_compat.h:5,
from include/linux/platform_device.h:1,
from /tmp/alsa-1.0.13/alsa-driver-1.0.13/acore/misc_driver.c:6:
include/sound/kernel_compat.h:18: error: redefinition of typedef 'pm_message_t'
/tmp/alsa-1.0.13/alsa-driver-1.0.13/include/adriver.h:918: error: previous declaration of 'pm_message_t' was here
类似的也很多个,最后错误
/tmp/alsa-1.0.13/alsa-driver-1.0.13/acore/misc_driver.c:659: error: `create_workqueue' undeclared (first use in this function)
/tmp/alsa-1.0.13/alsa-driver-1.0.13/acore/misc_driver.c:659: error: (Each undeclared identifier is reported only once
/tmp/alsa-1.0.13/alsa-driver-1.0.13/acore/misc_driver.c:659: error: for each function it appears in.)
make[4]: *** [/tmp/alsa-1.0.13/alsa-driver-1.0.13/acore/misc_driver.o] 错误 1
make[3]: *** [/tmp/alsa-1.0.13/alsa-driver-1.0.13/acore] 错误 2
make[2]: *** [_module_/tmp/alsa-1.0.13/alsa-driver-1.0.13] 错误 2
make[1]: *** [modules] 错误 2
make[1]: Leaving directory `/usr/src/linux-2.6.9-5.34DT'
make: *** [compile] 错误 2
这样的情况下,当然make install就过不了了,错误为:
find /lib/modules/2.6.9-5.34DT/kernel/sound -name 'snd*.*o' | xargs rm -f
make[1]: Entering directory `/tmp/alsa-1.0.13/alsa-driver-1.0.13/acore'
mkdir -p /lib/modules/2.6.9-5.34DT/kernel/sound/acore
cp snd-hwdep.ko snd-page-alloc.ko snd-pcm.ko snd-rawmidi.ko snd-timer.ko snd.ko/lib/modules/2.6.9-5.34DT/kernel/sound/acore
cp: stat‘snd-hwdep.ko’失败: 没有那个文件或目录
cp: stat‘snd-page-alloc.ko’失败: 没有那个文件或目录
cp: stat‘snd-pcm.ko’失败: 没有那个文件或目录
cp: stat‘snd-rawmidi.ko’失败: 没有那个文件或目录
cp: stat‘snd-timer.ko’失败: 没有那个文件或目录
cp: stat‘snd.ko’失败: 没有那个文件或目录
make[1]: *** [modules_install] 错误 1
make[1]: Leaving directory `/tmp/alsa-1.0.13/alsa-driver-1.0.13/acore'
make: *** [install-modules] 错误 1
我查了有3个星期了,试了各种可能的方法,但是一直是同样的错误。
我的声卡是 Realtek hd audio,主板集成的,我查了alsa的网站,肯定支持。我也从我
主板厂商gigabyte的网站找到了linux驱动,其实也是alsa的。同样的错误。
我用过2年redhat linux,但是workstation,主要用于计算,也没有关心配置的问题,有问题直接找
IT的人解决。
我决定坚持下去,一定要找到解决办法。
我在网上查下来,很多人有同样的问题,希望这里的高手们给予协助!
谢谢!
可以确认,我已经装了gcc, 我用它编译我自己的程序没有问题。
我检查了系统,红旗5自带了alsa,版本为:
alsa driver: 1.0.9b-6
alsa-firmware: 1.0.10-4
alsa-lib: 1.0.10-1
alsa-utility:1.0.10-1
alsa-plugins: 1.0.10-2
如果在Xwindow下用系统带的alsa安装,告诉我找到声卡了,可是测试没有声音,然后调音量,告诉我
没有找到声卡。
后来下载了最新的,1.0.13
我的alsa解压缩后放在/tmp/alsa-1.0.13
我在安装新的alsa前,先在/tmp/alsa-1.0.13做了连接:
ln -s /usr/src/linux-2.6.9-5.34DT linux
然后进入lib,util,driver 3个目录,分别运行:
./configure
make
make install
lib和util非常顺利,没有任何错误,driver下面configure也正常,make首先出现下列错误:
make[1]: Entering directory `/usr/src/linux-2.6.9-5.34DT'
CC [M] /tmp/alsa-1.0.13/alsa-driver-1.0.13/acore/misc_driver.o
In file included from include/linux/platform_device_compat.h:5,
from include/linux/platform_device.h:1,
from /tmp/alsa-1.0.13/alsa-driver-1.0.13/acore/misc_driver.c:6:
include/sound/kernel_compat.h:18: error: redefinition of typedef 'pm_message_t'
/tmp/alsa-1.0.13/alsa-driver-1.0.13/include/adriver.h:918: error: previous declaration of 'pm_message_t' was here
类似的也很多个,最后错误
/tmp/alsa-1.0.13/alsa-driver-1.0.13/acore/misc_driver.c:659: error: `create_workqueue' undeclared (first use in this function)
/tmp/alsa-1.0.13/alsa-driver-1.0.13/acore/misc_driver.c:659: error: (Each undeclared identifier is reported only once
/tmp/alsa-1.0.13/alsa-driver-1.0.13/acore/misc_driver.c:659: error: for each function it appears in.)
make[4]: *** [/tmp/alsa-1.0.13/alsa-driver-1.0.13/acore/misc_driver.o] 错误 1
make[3]: *** [/tmp/alsa-1.0.13/alsa-driver-1.0.13/acore] 错误 2
make[2]: *** [_module_/tmp/alsa-1.0.13/alsa-driver-1.0.13] 错误 2
make[1]: *** [modules] 错误 2
make[1]: Leaving directory `/usr/src/linux-2.6.9-5.34DT'
make: *** [compile] 错误 2
这样的情况下,当然make install就过不了了,错误为:
find /lib/modules/2.6.9-5.34DT/kernel/sound -name 'snd*.*o' | xargs rm -f
make[1]: Entering directory `/tmp/alsa-1.0.13/alsa-driver-1.0.13/acore'
mkdir -p /lib/modules/2.6.9-5.34DT/kernel/sound/acore
cp snd-hwdep.ko snd-page-alloc.ko snd-pcm.ko snd-rawmidi.ko snd-timer.ko snd.ko/lib/modules/2.6.9-5.34DT/kernel/sound/acore
cp: stat‘snd-hwdep.ko’失败: 没有那个文件或目录
cp: stat‘snd-page-alloc.ko’失败: 没有那个文件或目录
cp: stat‘snd-pcm.ko’失败: 没有那个文件或目录
cp: stat‘snd-rawmidi.ko’失败: 没有那个文件或目录
cp: stat‘snd-timer.ko’失败: 没有那个文件或目录
cp: stat‘snd.ko’失败: 没有那个文件或目录
make[1]: *** [modules_install] 错误 1
make[1]: Leaving directory `/tmp/alsa-1.0.13/alsa-driver-1.0.13/acore'
make: *** [install-modules] 错误 1
我查了有3个星期了,试了各种可能的方法,但是一直是同样的错误。
我的声卡是 Realtek hd audio,主板集成的,我查了alsa的网站,肯定支持。我也从我
主板厂商gigabyte的网站找到了linux驱动,其实也是alsa的。同样的错误。
我用过2年redhat linux,但是workstation,主要用于计算,也没有关心配置的问题,有问题直接找
IT的人解决。
我决定坚持下去,一定要找到解决办法。
我在网上查下来,很多人有同样的问题,希望这里的高手们给予协助!
谢谢!