天天看點

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

繼續閱讀