Fedora

建構和安裝 C* 音樂播放器 (CMUS)

  • July 27, 2015

我真的很喜歡C* Music Player(CMUS),我剛剛安裝了 Fedora 22,因為我遇到了 Fedora 21 的問題。問題是我找不到任何執行檔來安裝這個音樂播放器。我試過dnf但沒有用,這是輸出:

Last metadata expiration check performed 1:10:46 ago on Sun Jul 26 16:14:36 2015.
No package cmus available.
Error: no package matched: cmus

我在 FedoraProject.Org 上找到了這個答案:https ://ask.fedoraproject.org/en/question/68940/where-can-i-find-cmus-program-for-fedora/

它說如果你安裝了 rpmfusion,使用dnf就足夠了。我安裝了 rpmfusion 並再次嘗試,但沒有任何成功。這是我免費和非免費安裝 rpmfusion 的方法:

wget http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-22.noarch.rpm
dnf install rpmfusion-free-release-22.noarch.rpm

wget http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-22.noarch.rpm
dnf install rpmfusion-nonfree-release-22.noarch.rpm

之後,我決定自己編譯原始碼並嘗試,我安裝gcc並嘗試: ./configure這是它的輸出:

checking for program gcc... /usr/bin/gcc
checking for program gcc... /usr/bin/gcc
checking for CFLAGS -std=gnu99 -pipe -Wall -Wshadow -Wcast-align -Wpointer-arith -Wwrite-strings -Wundef -Wmissing-prototypes -Wredundant-decls -Wextra -Wno-sign-compare -Wformat-security... yes
checking for CFLAGS -Wold-style-definition... yes
checking for CFLAGS -Wno-pointer-sign... yes
checking for CFLAGS -Werror-implicit-function-declaration... yes
checking for CFLAGS -Wno-unused-parameter... yes
checking if CC can generate dependency information... yes
checking byte order... little-endian
checking for DL_LIBS (-ldl -Wl,--export-dynamic)... yes
checking for PTHREAD_LIBS (-lpthread)... yes
checking for realtime scheduling... yes
checking for program pkg-config... /usr/bin/pkg-config
checking for NCURSES_LIBS (pkg-config)... no
checking for NCURSES_LIBS (-lncursesw)... no
checking for NCURSES_LIBS (pkg-config)... no
checking for NCURSES_LIBS (-lncurses)... no
checking for NCURSES_LIBS (pkg-config)... no
checking for NCURSES_LIBS (-lcurses)... no
configure failed.

而且我不知道我缺少安裝什麼C* Music Player(CMUS),我需要你的幫助。

也許我沒有按應有的方式安裝 rmpfusion free-repositories/non-free-repositories,或者我沒有在編譯原始碼之前安裝我需要安裝的所有東西(我不知道是什麼NCURSES_LIBS。)我會去的使用您可以為此提供的任何解決方案。先感謝您。

PS。我實際上安裝了ncurses ncurses-devel. 並繼續./configure。這是輸出:

checking for program gcc... /usr/bin/gcc
checking for program gcc... /usr/bin/gcc
checking for CFLAGS -std=gnu99 -pipe -Wall -Wshadow -Wcast-align -Wpointer-arith -Wwrite-strings -Wundef -Wmissing-prototypes -Wredundant-decls -Wextra -Wno-sign-compare -Wformat-security... yes
checking for CFLAGS -Wold-style-definition... yes
checking for CFLAGS -Wno-pointer-sign... yes
checking for CFLAGS -Werror-implicit-function-declaration... yes
checking for CFLAGS -Wno-unused-parameter... yes
checking if CC can generate dependency information... yes
checking byte order... little-endian
checking for DL_LIBS (-ldl -Wl,--export-dynamic)... yes
checking for PTHREAD_LIBS (-lpthread)... yes
checking for realtime scheduling... yes
checking for program pkg-config... /usr/bin/pkg-config
checking for NCURSES_LIBS (pkg-config)... -lncursesw 
checking for NCURSES_CFLAGS (pkg-config)... 
checking for working ncurses setup... yes
checking for function resizeterm... yes
checking for function use_default_colors... yes
checking for ICONV_LIBS (-liconv)... no
assuming libc contains iconv
checking for working iconv... yes
checking for header <byteswap.h>... yes
checking for function strdup... yes
checking for function strndup... yes
checking for CDDB_LIBS (pkg-config)... no
checking for CDDB_LIBS (-lcddb)... no
checking for CDIO_LIBS (pkg-config)... no
checking for CDIO_LIBS (-lcdio_cdio -lcdio -lm)... no
checking for FLAC_LIBS (pkg-config)... no
checking for FLAC_LIBS (-lFLAC -lm)... no
checking for MAD_LIBS (pkg-config)... no
checking for MAD_LIBS (-lmad -lm)... no
checking for MODPLUG_LIBS (pkg-config)... no
checking for MODPLUG_LIBS (-lmodplug -lstdc++ -lm)... no
checking for header <mpc/mpcdec.h>... no
checking for header <mpcdec/mpcdec.h>... no
checking for VORBIS_LIBS (pkg-config)... no
checking for VORBIS_LIBS (-lvorbisfile -lvorbis -lm -logg)... no
checking for OPUS_LIBS (pkg-config)... no
*** Package opusfile was not found in the pkg-config search path.
*** Perhaps you should add the directory containing `opusfile.pc'
*** to the PKG_CONFIG_PATH environment variable
*** No package 'opusfile' found
checking for WAVPACK_LIBS (pkg-config)... no
checking for WAVPACK_LIBS (-lwavpack)... no
checking for header <mp4v2/mp4v2.h>... no
checking for header <mp4.h>... no
checking for header <neaacdec.h>... no
checking for FFMPEG_LIBS (pkg-config)... no
*** Package libavformat was not found in the pkg-config search path.
*** Perhaps you should add the directory containing `libavformat.pc'
*** to the PKG_CONFIG_PATH environment variable
*** No package 'libavformat' found
checking for CUE_LIBS (pkg-config)... no
*** Package libcue was not found in the pkg-config search path.
*** Perhaps you should add the directory containing `libcue.pc'
*** to the PKG_CONFIG_PATH environment variable
*** No package 'libcue' found
checking for header <ayemu.h>... no
checking for PULSE_LIBS (pkg-config)... no
*** Package libpulse was not found in the pkg-config search path.
*** Perhaps you should add the directory containing `libpulse.pc'
*** to the PKG_CONFIG_PATH environment variable
*** No package 'libpulse' found
checking for ALSA_LIBS (pkg-config)... no
*** Package alsa was not found in the pkg-config search path.
*** Perhaps you should add the directory containing `alsa.pc'
*** to the PKG_CONFIG_PATH environment variable
*** No package 'alsa' found
checking for JACK_LIBS (pkg-config)... no
*** Package jack was not found in the pkg-config search path.
*** Perhaps you should add the directory containing `jack.pc'
*** to the PKG_CONFIG_PATH environment variable
*** No package 'jack' found
checking for SAMPLERATE_LIBS (pkg-config)... no
*** Package samplerate was not found in the pkg-config search path.
*** Perhaps you should add the directory containing `samplerate.pc'
*** to the PKG_CONFIG_PATH environment variable
*** No package 'samplerate' found
checking for AO_LIBS (pkg-config)... no
checking for AO_LIBS (-lao)... no
checking for program artsc-config... no
checking for header <sys/soundcard.h>... yes
checking for header <sys/audioio.h>... no
checking for ROAR_LIBS (pkg-config)... no
*** Package libroar was not found in the pkg-config search path.
*** Perhaps you should add the directory containing `libroar.pc'
*** to the PKG_CONFIG_PATH environment variable
*** No package 'libroar' found
creating config/cdio.h
creating config/datadir.h
creating config/libdir.h
creating config/debug.h
creating config/tremor.h
creating config/modplug.h
creating config/mpc.h
creating config/mp4.h
creating config/curses.h
creating config/ffmpeg.h
creating config/utils.h
creating config/iconv.h
creating config/samplerate.h
creating config/xmalloc.h
creating config/cue.h
creating config.mk

之後我使用makeand make install。它實際上已安裝C* Music player*,但它給了我一個錯誤:Error: selecting output plugin '': no such plugin.嘆息。對此還有其他想法嗎?

您缺少應用程序使用的名為ncurses的庫。只需安裝它sudo yum install ncurses ncurses-devel

當您從原始碼建構它時,您需要自己滿足依賴關係。這就是 rpm 包的用途:列出依賴項、解析和安裝它們,以便請求的包能夠正常工作。

編輯:根據您的輸出,您現在缺少一些將聲音發送到音效卡的庫。嘗試 : sudo yum install ffmpeg-libs ffmpeg-devel libcue libcue-devel pulseaudio-libs pulseaudio-libs-devel libsamplerate-devel libsamplerate

它可能會安裝多個依賴項,但它應該與您的配置相匹配。安裝後,重新執行“./configure”。

引用自:https://unix.stackexchange.com/questions/218520