Stable: 2.5.2
Development: 2.6-alpha3
Hello, I just fresh installed Debian 7 stable with no desktop environment. First I tried to install moc via apt-get, but it installed a 2.5.0-alpha version, and I figured I should try to install the new 2.5.0 stable.
Per the "README" (http://moc.daper.net/node/87), I went through
apt-get install build-essential
apt-get install libdb-dev (Berkley db)
apt-get install ncurses-dev
apt-get install g++
The next part of the README to install plugins for audio format. All I really need, initially at least is mp3 and WAV.
apt-get install libmad0
apt-get install libmad0-dev
apt-get install libsndfile1
apt-get install libsndfile1-dev
I ran "./configure" and at the end of the returned text I received
MOC will be compiled with:
Decoder Plugins: flac sndfile vorbis
.
.
.
no mp3 or wav? Can someone help?
Thanks!
Jim
tomaszg
Tue, 2015-03-31 16:18
Permalink
wav is handled by sndfile. As
wav is handled by sndfile. As to mp3, you probably should post whole configure output - somewhere in there there is an error message explaining what exactly is missing.
jaydee
Tue, 2015-03-31 20:59
Permalink
output file, thanks for taking a look!
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for svnversion... /usr/bin/svnversion
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for gawk... (cached) gawk
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking which extension is used for runtime loadable modules... .so
checking which variable specifies run-time module search path... LD_LIBRARY_PATH
checking for the default library search path... /lib /usr/lib /usr/local/lib /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu
checking for library containing dlopen... -ldl
checking for dlerror... yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dld_link in -ldld... no
checking for _ prefix in compiled symbols... no
checking whether deplibs are loaded by dlopen... yes
checking for argz.h... yes
checking for error_t... yes
checking for argz_add... yes
checking for argz_append... yes
checking for argz_count... yes
checking for argz_create_sep... yes
checking for argz_insert... yes
checking for argz_next... yes
checking for argz_stringify... yes
checking if argz actually works... yes
checking whether libtool supports -dlopen/-dlpreopen... yes
checking for ltdl.h... yes
checking whether lt_dlinterface_register is declared... yes
checking for lt_dladvise_preload in -lltdl... yes
checking where to find libltdl headers...
checking where to find libltdl library... -lltdl
checking for unistd.h... (cached) yes
checking for dl.h... no
checking for sys/dl.h... no
checking for dld.h... no
checking for mach-o/dyld.h... no
checking for dirent.h... yes
checking for closedir... yes
checking for opendir... yes
checking for readdir... yes
checking for strlcat... no
checking for strlcpy... no
checking for ANSI C header files... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for unistd.h... (cached) yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/types.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for sys/stat.h... (cached) yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking for sched_get_priority_max... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking for nl_langinfo... yes
checking for nl_langinfo(CODESET)... yes
checking whether byte ordering is bigendian... no
checking for ld used by GCC... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration... install-shextern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking librcc.h usability... no
checking librcc.h presence... no
checking for librcc.h... no
checking for an ANSI C-conforming const... yes
checking for flexible array members... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking for lrintf... yes
checking CFLAGS for gcc -Wall... -Wall
checking CFLAGS for gcc -W... -W
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.20... yes
checking for db.h... 5.1.29
checking for library containing Berkeley DB 5.1.29... -ldb
configure: using Berkeley DB version
checking for db.h... 5.1.29
checking for library containing Berkeley DB 5.1.29... -ldb
configure: using Berkeley DB version
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking soundcard.h usability... no
checking soundcard.h presence... no
checking for soundcard.h... no
checking for _oss_ioctl in -lossaudio... no
checking sndio.h usability... no
checking sndio.h presence... no
checking for sndio.h... no
checking for ALSA... no
checking for JACK... no
checking CFLAGS for gcc -g... -g
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for getcwd... yes
checking for memmove... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strchr... yes
checking for strrchr... yes
checking for socket... yes
checking for gettimeofday... yes
checking for getenv... yes
checking for fork... yes
checking for setsid... yes
checking for kill... yes
checking for bind... yes
checking for listen... yes
checking for accept... yes
checking for time... yes
checking for connect... yes
checking for unlink... yes
checking for send... yes
checking for recv... yes
checking for select... yes
checking for strftime... yes
checking for access... yes
checking for freopen... yes
checking for localtime_r... yes
checking for mbsrtowcs... yes
checking for mbstowcs... yes
checking for execvp... yes
checking for wcswidth... yes
checking for strspn... yes
checking for geteuid... yes
checking for sin... no
checking for sin in -lm... yes
checking for sinh... yes
checking for strcasestr... yes
checking for strerror_r... yes
checking for syslog... yes
checking whether uname(2) is POSIX... yes
checking for usleep... yes
checking for magic_open in -lmagic... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for getrlimit... yes
checking for pthread_attr_getstacksize... yes
checking for working ncursesw... yes
checking ncursesw/curses.h usability... yes
checking ncursesw/curses.h presence... yes
checking for ncursesw/curses.h... yes
checking for set_escdelay in -lncursesw... yes
checking for poptGetContext in -lpopt... yes
checking for getopt_long... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for samplerate... no
checking for gzopen in -lz... yes
checking for id3_file_open in -lid3tag... no
checking id3tag.h usability... no
checking id3tag.h presence... no
checking for id3tag.h... no
checking for NeAACDecInit in -lfaad... no
checking for ffmpeg... no
checking for ffmpeg-config... no
checking for LIBFLAC... yes
checking for modplug... no
checking for mad_stream_init in -lmad... yes
checking mad.h usability... yes
checking mad.h presence... yes
checking for mad.h... yes
checking mpcdec/mpcdec.h usability... no
checking mpcdec/mpcdec.h presence... no
checking for mpcdec/mpcdec.h... no
checking mpc/mpcdec.h usability... no
checking mpc/mpcdec.h presence... no
checking for mpc/mpcdec.h... no
checking for sidplay2... no
checking for sidutils... no
checking for sndfile... yes
checking for speex... no
checking for timidity... no
checking for OGG_VORBIS... yes
checking for WAVPACK... no
checking for curl-config... no
checking for xz... no
configure: creating ./config.status
config.status: creating decoder_plugins/aac/Makefile
config.status: creating decoder_plugins/ffmpeg/Makefile
config.status: creating decoder_plugins/flac/Makefile
config.status: creating decoder_plugins/modplug/Makefile
config.status: creating decoder_plugins/mp3/Makefile
config.status: creating decoder_plugins/musepack/Makefile
config.status: creating decoder_plugins/sidplay2/Makefile
config.status: creating decoder_plugins/sndfile/Makefile
config.status: creating decoder_plugins/speex/Makefile
config.status: creating decoder_plugins/timidity/Makefile
config.status: creating decoder_plugins/vorbis/Makefile
config.status: creating decoder_plugins/wavpack/Makefile
config.status: creating decoder_plugins/Makefile
config.status: creating Makefile
config.status: creating themes/Makefile
config.status: creating config.example
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
-----------------------------------------------------------------------
MOC will be compiled with:
Decoder plugins: flac sndfile vorbis
Sound Drivers: OSS
DEBUG: yes
RCC: no
Network streams: no
Resampling: no
MIME magic: no
-----------------------------------------------------------------------
WARNING: Since MOC version 2 the executable file name has changed to mocp!
Please remove old moc binary if you have installed an older version.
tomaszg
Tue, 2015-03-31 21:40
Permalink
You still need libid3tag
You still need libid3tag devel package.
jaydee
Wed, 2015-04-01 14:14
Permalink
Ahh, that was it! mp3 is now
Ahh, that was it! mp3 is now listed under decoder plugins, thanks!
I opened the player "mocp" and I have a blue screen and nothing at the top. At the bottom the text reads "Getting the playlist..."
I recall when I did the "apt-get install moc" and ran "mocp", it the same blue screen, but at the top some way of navigating to a directory, which doesn't appear to be present right now.
Thanks for bearing with me.
tomaszg
Wed, 2015-04-01 14:57
Permalink
Never saw anything similar.
Never saw anything similar. You might try removing your old configuration/playlist/cache in ~/.moc. Also, you could try to run MOC server in a separate window and watch its output for errors (quit MOC, run only server by mocp -SF and then start MOC in separate console). You could also try to start MOC in different directory. Maybe you have some weird file in your working directory which hangs one of the decoders (if so, you should probably tell developer about it, maybe it's some error that should be fixed).
Last attempt would probably be to recompile MOC with --enable-debug configure option and check output produced by mocp -D (mocp_[server,client]_log files).
jaydee
Wed, 2015-04-01 15:22
Permalink
log file
I never configured a playlist in my initial install, so there was no "/playlist/cache" directory.
I copied the mocp_client_log and here what I get:
Apr 1 07:07:42.074537: main.c:799 main(): This is Music On Console (revision 2668)
Apr 1 07:07:42.074737: main.c:805 main(): Configured:
Apr 1 07:07:42.074758: main.c:811 main(): Running on: Linux 3.2.0-4-amd64 x86_64
Apr 1 07:07:42.074787: main.c:474 log_command_line(): mocp -D
Apr 1 07:07:42.075470: options.c:1149 options_parse(): Can't open config file: No such file or directory
Apr 1 07:07:42.098119: decoder.c:674 load_plugins(): Loaded 4 decoders: flac mp3 sndfile vorbis
Apr 1 07:07:42.098267: interface.c:3483 init_interface(): Starting MOC Interface
Apr 1 07:07:42.098333: log.c:195 log_init_stream(): Writing log to: mocp_client_log
Apr 1 07:07:42.098472: utf8.c:322 utf8_init(): Using UTF8 output
Apr 1 07:07:42.104938: interface.c:478 update_mixer_name(): Mixer name: Master
Apr 1 07:07:42.105146: interface.c:1444 get_server_playlist(): Getting the playlist...
Apr 1 07:07:42.105156: interface.c:944 recv_server_plist(): Asking server for the playlist from other client.
Apr 1 07:07:42.105166: interface.c:946 recv_server_plist(): Waiting for response
Apr 1 07:07:42.105225: interface.c:954 recv_server_plist(): There is a playlist, getting...
Apr 1 07:08:42.015531: log.c:119 log_signals_raised(): SIGTERM
Apr 1 07:08:42.015542: log.c:119 log_signals_raised(): SIGTERM
Apr 1 07:08:42.015546: interface.c:3693 interface_fatal(): FATAL ERROR: The server exited!
Apr 1 07:08:42.015605: interface_elements.c:3672 windows_reset(): endwin() failed!
Apr 1 07:08:42.015621: interface_elements.c:3672 windows_reset(): endwin() failed!
Apr 1 07:08:42.015631: interface.c:3695 interface_fatal(): FATAL ERROR: The server exited!
Edit: sorry, figured it out. I had to reboot after the ./configure, make, make install. Then it worked, as long as I exit the player using the "Q" instead of "ctrl-z".
tomaszg
Wed, 2015-04-01 19:30
Permalink
I don't think you should ever
I don't think you should ever use ctrl-z to suspend MOC. If you want to exit the client but keep MOC playing, just use "q". In your case, I don't think you needed to reboot, quiting previous MOC properly should be enough.
jcf
Sat, 2015-04-04 01:55
Permalink
To Suspend Or Not?
When the client is asked to suspend itself it could disconnect from the server or it could refuse to be suspended. I do not see any need to honour a suspend request as quitting and restarting the client seems to me to be sufficient.
Does anyone have a good reason why the client should be suspendable?
jcf
Sat, 2015-04-04 01:54
Permalink
Problems With Suspend
I did find this problem some time ago in testing along with several others which occur when MOC is suspended, but until now nobody's noticed so I didn't work on fixing them.
Your specific problem arises when the first client is suspended and a second client attempts to synchronise its playlist with it (via the
SyncPlaylist
configuration option). The server makes a request of the first client to obtain its playlist, but as that client is suspended it cannot respond. Thus the second client hangs awaiting the first client's copy of its playlist from the server.jaydee
Tue, 2015-03-31 20:59
Permalink
noticed some things
Noticed some things missing and ran:
apt-get install subversion
apt-get install autoconf
apt-get install gawk
I still don't appear to be closer to having the mp3 codecs however.