Package problems while trying to install Cmus

Issues related to applications and software problems
Post Reply
igeorge
Posts: 1
Joined: 2018/10/14 09:26:51

Package problems while trying to install Cmus

Post by igeorge » 2018/10/14 10:01:04

Hi,

I'm trying to install Cmus from source, as there are no packages available for CentOS 7.
I git cloned the source code into /usr/local/src/cmus-2.7.1 with:

Code: Select all

git clone https://github.com/cmus/cmus.git
When I try ./configure from the cmus-2.7.1 directory I get this output:

Code: Select all

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)... -lao  
checking for AO_CFLAGS (pkg-config)...  
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
Following the instructions I've tried to install all the seemingly missing packages but when I do the output stays the same, for instance with opusfile, which I installed with yum:

Code: Select all

$ sudo yum install opusfile
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                               |  32 kB  00:00:00     
 * base: mirror.in2p3.fr
 * epel: epel.mirror.nucleus.be
 * extras: centos.mirrors.proxad.net
 * nux-dextop: mirror.li.nux.ro
 * rpmforge: repoforge.mirror.wearetriple.com
 * updates: ftp.rezopole.net
base                                                               | 3.6 kB  00:00:00     
extras                                                             | 3.4 kB  00:00:00     
nux-dextop                                                         | 2.9 kB  00:00:00     
pgdg10                                                             | 4.1 kB  00:00:00     
rpmforge                                                           | 1.9 kB  00:00:00     
updates                                                            | 3.4 kB  00:00:00     
Resolving Dependencies
--> Running transaction check
---> Package opusfile.x86_64 0:0.5-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================
 Package               Arch                Version                Repository         Size
==========================================================================================
Installing:
 opusfile              x86_64              0.5-1.el7              epel               46 k

Transaction Summary
==========================================================================================
Install  1 Package

Total download size: 46 k
Installed size: 90 k
Is this ok [y/d/N]: y
Downloading packages:
opusfile-0.5-1.el7.x86_64.rpm                                      |  46 kB  00:00:01     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : opusfile-0.5-1.el7.x86_64                                              1/1 
  Verifying  : opusfile-0.5-1.el7.x86_64                                              1/1 

Installed:
  opusfile.x86_64 0:0.5-1.el7                                                             

Complete!
I also added: "export PKG_CONFIG_PATH=/usr/lib64/pkgconfig" to my .bashrc and .bash_profile files,as this is where the pkgconfig directory is and a bunch of *.pc files are, and indeed echo $PKG_CONFIG_PATH returns /usr/lib64/pkgconfig. There are none of the *.pc files required by ./configure in this directory though, and searching for opusfile.pc or the others on the whole system yields no result.

So it seems to me that I have the right libraries but that ./configure can't locate them. How can I make it do that?

If I follow through with the installation with make and sudo make install, cmus launches but it is impossible to do anything with it as it is missing all the plugins.

Thanks,

George.

Post Reply