Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: mikeb on October 22, 2015, 11:39:46 PM

Title: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: mikeb on October 22, 2015, 11:39:46 PM
Hello

I try to install mpd-minimal

But when I go to run it

it Says

mpd: error while loading shared libraries: libcdio_paranoia.so.0: cannot open shared object file: No such file or directory


libcdio is installed
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: nitram on October 23, 2015, 12:25:03 AM
TC6 libcdio.tcz does not contain libcdio_paranoia.so.0 (you can confirm via Apps).

It is, however, present in the libcdio from TC5. Download and load/install this older version and see if it allows your mpd-minimal to run:
http://distro.ibiblio.org/tinycorelinux/5.x/x86/tcz/
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: mikeb on October 23, 2015, 12:44:48 AM
TC6 libcdio.tcz does not contain libcdio_paranoia.so.0 (you can confirm via Apps).

It is, however, present in the libcdio from TC5. Download and load/install this older version and see if it allows your mpd-minimal to run:
http://distro.ibiblio.org/tinycorelinux/5.x/x86/tcz/

Is there an instruction to do this ?

Thank you
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: nitram on October 23, 2015, 12:54:48 AM
Both the old and new libcdio versions share ncurses dependency, so shouldn't be an issue. Download old libcdio.tcz from the link provided above, navigate to the download directory and run 'tce-load -i libcdio.tcz'. All files will be extracted into system, you should see libcdio_paranoia.so.0 in /usr/local/lib. Of course you will need to reload mpd-minimal if you have since rebooted. Then run mpd-minimal and see if there are errors.
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: mikeb on October 23, 2015, 01:06:09 AM
Both the old and new libcdio versions share ncurses dependency, so shouldn't be an issue. Download old libcdio.tcz from the link provided above, navigate to the download directory and run 'tce-load -i libcdio.tcz'. All files will be extracted into system, you should see libcdio_paranoia.so.0 in /usr/local/lib. Of course you will need to reload mpd-minimal if you have since rebooted. Then run mpd-minimal and see if there are errors.

It says libcdio is already installed - how do i remove it ?

Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Juanito on October 23, 2015, 01:09:39 AM
Use the apps gui to ensure it is not listed onboot and re-boot.
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: nitram on October 23, 2015, 01:12:38 AM
Then go into your /tce/optional directory and move the TC6 libcdio.tcz to libcdio.tcz.TC6 to disable it. Then copy the old TC5 libcdio.tcz into /tce/optional. Full system reboot then install mpd-minimal again and test run.
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Juanito on October 23, 2015, 01:19:13 AM
This being said, probably the easiest thing would be for somebody to submit a libcdio-paranoia extension for the tc-6.x repo.
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: mikeb on October 23, 2015, 01:50:19 AM
Then go into your /tce/optional directory and move the TC6 libcdio.tcz to libcdio.tcz.TC6 to disable it. Then copy the old TC5 libcdio.tcz into /tce/optional. Full system reboot then install mpd-minimal again and test run.

Thank you very much, it is fixed :)
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Juanito on October 23, 2015, 03:43:32 AM
libcdio-paranoia extension compiled for tc-6.x repo - I'll post it and adjust the mpd-minimal deps once the repo comes back online
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: nitram on October 23, 2015, 04:00:33 AM
Welcome mikeb but a hack as you are using a libcdio not part of TC6 proper. Keep a backup in case something gets overwritten when using Apps for maintenance.

Juanito thank-you for submitting. What you accomplish in 5-10 minutes takes me a couple days. Is this what you compiled?
https://github.com/rocky/libcdio-paranoia

Believe it or not i was able to compile :)  Not proper TC6 compile to submit, just testing. First time using autoconf and an autogen.sh file.

Shouldn't libcdio.tcz be listed as a dependency of libcdio-dev.tcz?

For personal learning, this was created from make install. How to split into a -dev extension? Dev should include all .pc, .a, .la and .h files?

Code: [Select]
tc@box:/tmp/paranoiaextension$ du -a
140.0K  ./usr/local/bin/cd-paranoia
140.0K  ./usr/local/bin
4.0K    ./usr/local/lib/pkgconfig/libcdio_cdda.pc
4.0K    ./usr/local/lib/pkgconfig/libcdio_paranoia.pc
8.0K    ./usr/local/lib/pkgconfig
144.0K  ./usr/local/lib/libcdio_paranoia.a
4.0K    ./usr/local/lib/libcdio_paranoia.la
0       ./usr/local/lib/libcdio_paranoia.so
0       ./usr/local/lib/libcdio_paranoia.so.2
112.0K  ./usr/local/lib/libcdio_paranoia.so.2.0.0
136.0K  ./usr/local/lib/libcdio_cdda.a
4.0K    ./usr/local/lib/libcdio_cdda.la
0       ./usr/local/lib/libcdio_cdda.so
0       ./usr/local/lib/libcdio_cdda.so.2
104.0K  ./usr/local/lib/libcdio_cdda.so.2.0.0
512.0K  ./usr/local/lib
8.0K    ./usr/local/include/cdio/paranoia/paranoia.h
16.0K   ./usr/local/include/cdio/paranoia/cdda.h
24.0K   ./usr/local/include/cdio/paranoia
24.0K   ./usr/local/include/cdio
24.0K   ./usr/local/include
12.0K   ./usr/local/share/man/jp/man1/cd-paranoia.1
12.0K   ./usr/local/share/man/jp/man1
12.0K   ./usr/local/share/man/jp
12.0K   ./usr/local/share/man/man1/cd-paranoia.1
12.0K   ./usr/local/share/man/man1
24.0K   ./usr/local/share/man
24.0K   ./usr/local/share
700.0K  ./usr/local
700.0K  ./usr
700.0K  .
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Juanito on October 23, 2015, 04:16:11 AM
Welcome mikeb but a hack as you are using a libcdio not part of TC6 proper. Keep a backup in case something gets overwritten when using Apps for maintenance.
If you remove libcdio.tcz.md5.txt then the apps gui will not update libcdio.

Quote
Is this what you compiled
No, libcdio-paranoia-10.2+0.93+1.tar.bz2

Quote
Shouldn't libcdio.tcz be listed as a dependency of libcdio-dev.tcz?
Yes, I'll fix that as soon as the repo is back up.

Quote
How to split into a -dev extension?
You can do it manually - easy enough for small extensions - or copy the relevent section of one of the build scripts under repo.tinycorelinux.net/6.x/x86/tcz/src

Quote
Dev should include all .pc, .a, .la and .h files?
Yes, plus bin/*-config, aclocal/*.m4, vapi/* cmake/*, etc - to save space, you can leave out the .a libs - they are not required in the majority of cases.
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Misalf on October 23, 2015, 04:56:54 AM
If you remove libcdio.tcz.md5.txt then the apps gui will not update libcdio.
Note, apps gui will then also be unable to download/install other extensions that depend on libcdio, because it fails to determine if the correct deps are installed.
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: nitram on October 23, 2015, 07:05:14 AM
As the TC5 and TC6 extensions are both named libcdio.tcz, regardless of md5 file removal Apps > Update .dep files overwrites the .dep file without notification. In this case no biggie, as the TC5 extension only required ncurses and the updated dep file will then include ncurses and vcdimager. Unfortunately it sometimes works the other way, 'Update .dep files' may auto-remove desired dependencies when mixing/matching extensions.

Quote
Yes, plus bin/*-config, aclocal/*.m4, vapi/* cmake/*, etc - to save space, you can leave out the .a libs - they are not required in the majority of cases.
Thanks for sharing. Please clarify, you mean discard .a libs altogether or move to -dev?
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Juanito on October 24, 2015, 04:13:22 AM
For run of the mill apps, I believe the static libs (.a) can be discarded altogether.
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Juanito on October 24, 2015, 07:12:53 AM
libcdio-paranoia posted, libcdio-dev and mpd-minimal deps adjusted.
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Nomadic on February 24, 2016, 07:14:53 AM
Tiny Core 7
mpd-minimal 0.18.7
libcdio-paranoia 0.93

The same error:
Code: [Select]
mpd: error while loading shared libraries: libcdio_paranoia.so.0: cannot open shared object file: No such file or directory
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Juanito on February 24, 2016, 07:27:05 AM
What does this show:
Code: [Select]
$ tce-status -i | grep libcdio-paranoia
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Juanito on February 24, 2016, 08:17:37 AM
I see the problem now, both libcdio and libcdio-paranoia were updated in tc-6.x, which broke mpd-minimal.

You'll need to pm the mpd-minimal maintainer (gutmensch or gavs) and request an update
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Nomadic on February 24, 2016, 08:50:34 AM
Code: [Select]
tc@box:~$ tce-status -i | grep libcdio-paranoia
libcdio-paranoia
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Nomadic on February 24, 2016, 08:53:23 AM
ffmpeg has the same mistake:
Code: [Select]
ffplay: error while loading shared libraries: libcdio_paranoia.so.0: cannot open shared object file: No such file or directory
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Juanito on February 24, 2016, 10:15:47 AM
ffmpeg recompiled and ffmpeg, ffmpeg-dev, libavcodec, libavdevice, libavfilter, libavformat, libavutil, libpostproc, libswresample and libswscale posted.
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Nomadic on February 26, 2016, 03:41:08 AM
Please rebuild mpd-minimal too
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Juanito on February 26, 2016, 04:39:16 AM
Did you send a pm to the maintainer?
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Nomadic on February 26, 2016, 04:44:16 AM
yes, to gutmensch
gavs offline for a long time
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: multiblitz on March 06, 2016, 01:08:13 PM
Any news ? I am as well very interey to get mpd running with tiny...
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Juanito on March 07, 2016, 09:10:28 AM
I'd say if the maintainers have not replied by now, you can go ahead and compile/submit an mpd extension.
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Nomadic on March 09, 2016, 06:13:04 AM
I tried to compile the real minimal mpd - only local playback
Code: [Select]
Music Player Daemon 0.19.13

Copyright (C) 2003-2007 Warren Dukes <warren.dukes@gmail.com>
Copyright (C) 2008-2014 Max Kellermann <max@duempel.org>
This is free software; see the source for copying conditions.  There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Database plugins:
 simple proxy

Storage plugins:
 local

Decoders plugins:
 [mpg123] mp3
 [vorbis] ogg oga
 [oggflac] ogg oga
 [flac] flac
 [sndfile] wav aiff aif au snd paf iff svx sf voc w64 pvf xi htk caf sd2
 [audiofile] wav au aiff aif
 [dsdiff] dff
 [dsf] dsf
 [faad] aac
 [wavpack] wv
 [pcm]

Output plugins:
 null fifo alsa ao oss httpd recorder

Encoder plugins:
 null vorbis wave flac

Input plugins:
 file alsa

Playlist plugins:
 extm3u m3u pls cue embcue

Protocols:
 file:// alsa://
http://rghost.ru/8zdRvN6fS
simple replace mpd-minimal.tcz
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Rich on March 09, 2016, 10:33:00 AM
Hi Nomadic
Rather than posting a link to an external site, maybe you could submit it to the repository. This will allow people to
install it using the  Apps  utility and automatically resolve any dependencies the extension may have. Instructions for
submitting an extension are included here:
http://wiki.tinycorelinux.net/wiki:creating_extensions
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Nomadic on March 09, 2016, 02:28:23 PM
It's just for testing. Maybe something else must be added
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Nomadic on March 10, 2016, 07:17:38 AM
Please test extended build (added curl, cdio_paranoia, required files for repo)

Code: [Select]
Music Player Daemon 0.19.13

Copyright (C) 2003-2007 Warren Dukes <warren.dukes@gmail.com>
Copyright (C) 2008-2014 Max Kellermann <max@duempel.org>
This is free software; see the source for copying conditions.  There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Database plugins:
 simple proxy

Storage plugins:
 local

Decoders plugins:
 [mad] mp3 mp2
 [mpg123] mp3
 [vorbis] ogg oga
 [oggflac] ogg oga
 [flac] flac
 [sndfile] wav aiff aif au snd paf iff svx sf voc w64 pvf xi htk caf sd2
 [audiofile] wav au aiff aif
 [dsdiff] dff
 [dsf] dsf
 [faad] aac
 [wavpack] wv
 [pcm]

Output plugins:
 null fifo alsa ao oss httpd recorder

Encoder plugins:
 null vorbis lame wave flac

Archive plugins:
 [bz2] bz2

Input plugins:
 file alsa archive curl cdio_paranoia

Playlist plugins:
 extm3u m3u pls cue embcue

Protocols:
 file:// http:// https:// cdda:// alsa://

Download (http://www.mediafire.com/download/6yi29tihslcj5gg/mpd-minimal.tar.gz)
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Juanito on March 10, 2016, 07:29:50 AM
I'm unable to download the file.

What is meant by "added curl, cdio_paranoia, required files for repo"?
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Nomadic on March 10, 2016, 07:38:34 AM
I'm unable to download the file.
Reupload file (http://www.mediafire.com/download/6yi29tihslcj5gg/mpd-minimal.tar.gz)
Quote
What is meant by "added curl, cdio_paranoia, required files for repo"?
added compared to the previous build
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Juanito on March 10, 2016, 08:35:19 AM
You need to add bzip2-lib and icu to the dep file.

Also mpd will not start without mpd.conf, so I'd suggest you add a start-up script to copy mpd.conf.example into /usr/local/etc as mpd.conf after first testing for it's presence.

Finally, mpd looks for alsa.conf and aliases.conf, so I guess a comment about requiring alsa-config/alsa to be installed and configured in the info file would be good  :)
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Nomadic on March 10, 2016, 09:07:10 AM
Add alsa-config to dep file?

Package includes file /usr/local/etc/mpd.conf.example
I think it is to manually copy and configure
Title: Re: mpd-minimal won't run - missing libcdio_paranoia.so
Post by: Nomadic on March 14, 2016, 06:10:59 AM
Added deps:

Download (http://www.mediafire.com/download/zdg8tizad1jv3tp/mpd-minimal.tar.gz)