天天看点

alsa-utils的安装以及alsamixer 的应用

alsamixer是Linux 音频架构ALSA中的Alsa工具的其中一个,用于配置音频的各个参数。alsamixer是基于文本下的图形界面的,可以通过键盘的上下键,左右键等,很方便地设置需要的音量,开关某个switch(开关)等等操作。

1.运行alsamixer 提示未安装

[email protected]:~# alsamixer 

程序“alsamixer”尚未安装。 您可以使用以下命令安装:

apt install alsa-utils

2.安装alsa-utils

alsa-utils下载地址:http://www.alsa-project.org/main/index.php/Main_Page

configure报错:

configure: error: Sufficiently new version of libasound not found.

解决:

安装alsa-lib-1.1.6,下载地址:http://www.alsa-project.org/main/index.php/Main_Page

[email protected]:~/beep/alsa-lib-1.1.6# ./configure

[email protected]:~/beep/alsa-lib-1.1.6# make install

alsa-utils重新configure成功

[email protected]:~/beep/alsa-utils-1.1.6# make install

make[2]: Entering directory '/root/beep/alsa-utils-1.1.6/alsaconf/po'

mv: 无法获取't-ja.gmo' 的文件状态(stat): 没有那个文件或目录

Makefile:41: recipe for target 'ja.gmo' failed

make[2]: *** [ja.gmo] Error 1

make[2]: Leaving directory '/root/beep/alsa-utils-1.1.6/alsaconf/po'

Makefile:379: recipe for target 'install-recursive' failed

make[1]: *** [install-recursive] Error 1

make[1]: Leaving directory '/root/beep/alsa-utils-1.1.6/alsaconf'

Makefile:355: recipe for target 'install-recursive' failed

make: *** [install-recursive] Error 1

解决:

创建一个空的文件:

[email protected]:~/beep/alsa-utils-1.1.6/alsaconf/po# touch t-ja.gmo

[email protected]:~/beep/alsa-utils-1.1.6/alsaconf/po# pwd

/root/beep/alsa-utils-1.1.6/alsaconf/po

接下来又报错:

make[2]: Entering directory '/root/beep/alsa-utils-1.1.6/alsaconf/po'

mv: 无法获取't-ru.gmo' 的文件状态(stat): 没有那个文件或目录

Makefile:41: recipe for target 'ru.gmo' failed

make[2]: *** [ru.gmo] Error 1

make[2]: Leaving directory '/root/beep/alsa-utils-1.1.6/alsaconf/po'

Makefile:379: recipe for target 'all-recursive' failed

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory '/root/beep/alsa-utils-1.1.6/alsaconf'

Makefile:355: recipe for target 'all-recursive' failed

make: *** [all-recursive] Error 1

解决:

创建一个空的目录:

[email protected]:~/beep/alsa-utils-1.1.6/alsaconf/po# touch t-ru.gmo

[Note] System unauthorized, Please contact the system supplier.

[email protected]:~/beep/alsa-utils-1.1.6/alsaconf/po# pwd

/root/beep/alsa-utils-1.1.6/alsaconf/po

[email protected]:~/beep/alsa-utils-1.1.6# make install

3.运行alsamixer  

[email protected]:~/beep/alsa-lib-1.1.6# alsamixer  

No protocol specified

xcb_connection_has_error() 返回真

cannot open mixer: 没有那个文件或目录

解决:需要将root用户加入audio用户组

usermod -G audio root

[email protected]:~/beep/alsa-lib-1.1.6# alsamixer  

alsa-utils的安装以及alsamixer 的应用

转载于:https://my.oschina.net/u/3308173/blog/1862114

继续阅读