- 论坛徽章:
- 0
|
大家好,我想在centos7下源码安装mocp播放软件 遇到插件错误 还请大家指点一二:
下载 libmad和libid3tag,然后分别执行
configuer
make
make install
注意,如果编译时出现“cc1: error: unrecognized command line option
"-fforce-mem”错误,则在编译libmad前将根目录下的Makefile中“--fforce-mem”去掉
然后在moc官网下载moc 2.4.4稳定版,编译 安装 日志在后边贴出。
安装完成后运行 mocp时出现- Can't load plugin libmp3_decoder: file not found
- FATAL_ERROR: No decoder plugins have been loaded
复制代码 debug下- [root@localhost moc-2.4.4]# mocp -D
- Loading plugins from /usr/local/lib/moc/decoder_plugins...
- Loading plugin libmp3_decoder...
- Can't load plugin libmp3_decoder: file not found
- FATAL_ERROR: No decoder plugins have been loaded!
复制代码 查看相关文件确实存在:- [root@localhost moc-2.4.4]# find /usr/local/lib/moc
- /usr/local/lib/moc
- /usr/local/lib/moc/decoder_plugins
- /usr/local/lib/moc/decoder_plugins/libmp3_decoder.so
- /usr/local/lib/moc/decoder_plugins/libmp3_decoder.la
- /usr/local/lib/moc/decoder_plugins/libmp3_decoder.a
复制代码 编译moc日志:安装日志:- [root@localhost moc-2.4.4]# cat moc_install_log
- Making install in themes
- make[1]: Entering directory `/home/ayu/Downloads/moc-2.4.4/themes'
- make[2]: Entering directory `/home/ayu/Downloads/moc-2.4.4/themes'
- make[2]: Nothing to be done for `install-exec-am'.
- test -z "/usr/local/share/moc/themes" || mkdir -p -- "/usr/local/share/moc/themes"
- /usr/bin/install -c -m 644 'transparent-background' '/usr/local/share/moc/themes/transparent-background'
- /usr/bin/install -c -m 644 'example_theme' '/usr/local/share/moc/themes/example_theme'
- /usr/bin/install -c -m 644 'nightly_theme' '/usr/local/share/moc/themes/nightly_theme'
- /usr/bin/install -c -m 644 'green_theme' '/usr/local/share/moc/themes/green_theme'
- /usr/bin/install -c -m 644 'yellow_red_theme' '/usr/local/share/moc/themes/yellow_red_theme'
- /usr/bin/install -c -m 644 'black_theme' '/usr/local/share/moc/themes/black_theme'
- /usr/bin/install -c -m 644 'moca_theme' '/usr/local/share/moc/themes/moca_theme'
- /usr/bin/install -c -m 644 'red_theme' '/usr/local/share/moc/themes/red_theme'
- /usr/bin/install -c -m 644 'darkdot_theme' '/usr/local/share/moc/themes/darkdot_theme'
- make[2]: Leaving directory `/home/ayu/Downloads/moc-2.4.4/themes'
- make[1]: Leaving directory `/home/ayu/Downloads/moc-2.4.4/themes'
- Making install in decoder_plugins
- make[1]: Entering directory `/home/ayu/Downloads/moc-2.4.4/decoder_plugins'
- Making install in mp3
- make[2]: Entering directory `/home/ayu/Downloads/moc-2.4.4/decoder_plugins/mp3'
- make[3]: Entering directory `/home/ayu/Downloads/moc-2.4.4/decoder_plugins/mp3'
- test -z "/usr/local/lib/moc/decoder_plugins" || mkdir -p -- "/usr/local/lib/moc/decoder_plugins"
- /bin/sh ../../libtool --mode=install /usr/bin/install -c 'libmp3_decoder.la' '/usr/local/lib/moc/decoder_plugins/libmp3_decoder.la'
- libtool: install: /usr/bin/install -c .libs/libmp3_decoder.so /usr/local/lib/moc/decoder_plugins/libmp3_decoder.so
- libtool: install: /usr/bin/install -c .libs/libmp3_decoder.lai /usr/local/lib/moc/decoder_plugins/libmp3_decoder.la
- libtool: install: /usr/bin/install -c .libs/libmp3_decoder.a /usr/local/lib/moc/decoder_plugins/libmp3_decoder.a
- libtool: install: chmod 644 /usr/local/lib/moc/decoder_plugins/libmp3_decoder.a
- libtool: install: ranlib /usr/local/lib/moc/decoder_plugins/libmp3_decoder.a
- libtool: finish: PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/ayu/bin:/sbin" ldconfig -n /usr/local/lib/moc/decoder_plugins
- ----------------------------------------------------------------------
- Libraries have been installed in:
- /usr/local/lib/moc/decoder_plugins
- If you ever happen to want to link against installed libraries
- in a given directory, LIBDIR, you must either use libtool, and
- specify the full pathname of the library, or use the `-LLIBDIR'
- flag during linking and do at least one of the following:
- - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
- during execution
- - add LIBDIR to the `LD_RUN_PATH' environment variable
- during linking
- - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- - have your system administrator add LIBDIR to `/etc/ld.so.conf'
- See any operating system documentation about shared libraries for
- more information, such as the ld(1) and ld.so(8) manual pages.
- ----------------------------------------------------------------------
- make[3]: Nothing to be done for `install-data-am'.
- make[3]: Leaving directory `/home/ayu/Downloads/moc-2.4.4/decoder_plugins/mp3'
- make[2]: Leaving directory `/home/ayu/Downloads/moc-2.4.4/decoder_plugins/mp3'
- make[2]: Entering directory `/home/ayu/Downloads/moc-2.4.4/decoder_plugins'
- make[3]: Entering directory `/home/ayu/Downloads/moc-2.4.4/decoder_plugins'
- make[3]: Nothing to be done for `install-exec-am'.
- make[3]: Nothing to be done for `install-data-am'.
- make[3]: Leaving directory `/home/ayu/Downloads/moc-2.4.4/decoder_plugins'
- make[2]: Leaving directory `/home/ayu/Downloads/moc-2.4.4/decoder_plugins'
- make[1]: Leaving directory `/home/ayu/Downloads/moc-2.4.4/decoder_plugins'
- Making install in libltdl
- make[1]: Entering directory `/home/ayu/Downloads/moc-2.4.4/libltdl'
- make install-am
- make[2]: Entering directory `/home/ayu/Downloads/moc-2.4.4/libltdl'
- make[3]: Entering directory `/home/ayu/Downloads/moc-2.4.4/libltdl'
- test -z "/usr/local/lib" || /usr/bin/mkdir -p "/usr/local/lib"
- test -z "/usr/local/include" || /usr/bin/mkdir -p "/usr/local/include"
- test -z "" || /usr/bin/mkdir -p ""
- make[3]: Leaving directory `/home/ayu/Downloads/moc-2.4.4/libltdl'
- make[2]: Leaving directory `/home/ayu/Downloads/moc-2.4.4/libltdl'
- make[1]: Leaving directory `/home/ayu/Downloads/moc-2.4.4/libltdl'
- make[1]: Entering directory `/home/ayu/Downloads/moc-2.4.4'
- make[2]: Entering directory `/home/ayu/Downloads/moc-2.4.4'
- test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
- /bin/sh ./libtool --mode=install /usr/bin/install -c 'mocp' '/usr/local/bin/mocp'
- libtool: install: /usr/bin/install -c mocp /usr/local/bin/mocp
- test -z "/usr/local/share/doc/moc" || mkdir -p -- "/usr/local/share/doc/moc"
- /usr/bin/install -c -m 644 'config.example' '/usr/local/share/doc/moc/config.example'
- /usr/bin/install -c -m 644 'THANKS' '/usr/local/share/doc/moc/THANKS'
- /usr/bin/install -c -m 644 'README' '/usr/local/share/doc/moc/README'
- /usr/bin/install -c -m 644 'keymap.example' '/usr/local/share/doc/moc/keymap.example'
- test -z "/usr/local/share/man/man1" || mkdir -p -- "/usr/local/share/man/man1"
- /usr/bin/install -c -m 644 './mocp.1' '/usr/local/share/man/man1/mocp.1'
- make[2]: Leaving directory `/home/ayu/Downloads/moc-2.4.4'
- make[1]: Leaving directory `/home/ayu/Downloads/moc-2.4.4'
复制代码 附件为源码包
moc-2.4.4.tar.bz2
(683.32 KB, 下载次数: 14)
libmad-0.15.1b.tar.gz
(490.6 KB, 下载次数: 13)
libid3tag-0.15.1b.tar.gz
(330.22 KB, 下载次数: 12)
|
|