WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: mpd-minimal won't run - missing libcdio_paranoia.so  (Read 11374 times)

Offline mikeb

  • Newbie
  • *
  • Posts: 17
mpd-minimal won't run - missing libcdio_paranoia.so
« 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

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: mpd-minimal won't run - missing libcdio_paranoia.so
« Reply #1 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/

Offline mikeb

  • Newbie
  • *
  • Posts: 17
Re: mpd-minimal won't run - missing libcdio_paranoia.so
« Reply #2 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

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: mpd-minimal won't run - missing libcdio_paranoia.so
« Reply #3 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.

Offline mikeb

  • Newbie
  • *
  • Posts: 17
Re: mpd-minimal won't run - missing libcdio_paranoia.so
« Reply #4 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 ?


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: mpd-minimal won't run - missing libcdio_paranoia.so
« Reply #5 on: October 23, 2015, 01:09:39 AM »
Use the apps gui to ensure it is not listed onboot and re-boot.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: mpd-minimal won't run - missing libcdio_paranoia.so
« Reply #6 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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: mpd-minimal won't run - missing libcdio_paranoia.so
« Reply #7 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.

Offline mikeb

  • Newbie
  • *
  • Posts: 17
Re: mpd-minimal won't run - missing libcdio_paranoia.so
« Reply #8 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 :)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: mpd-minimal won't run - missing libcdio_paranoia.so
« Reply #9 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

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: mpd-minimal won't run - missing libcdio_paranoia.so
« Reply #10 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  .

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: mpd-minimal won't run - missing libcdio_paranoia.so
« Reply #11 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.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: mpd-minimal won't run - missing libcdio_paranoia.so
« Reply #12 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.
Download a copy and keep it handy: Core book ;)

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: mpd-minimal won't run - missing libcdio_paranoia.so
« Reply #13 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?
« Last Edit: October 23, 2015, 07:07:02 AM by nitram »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: mpd-minimal won't run - missing libcdio_paranoia.so
« Reply #14 on: October 24, 2015, 04:13:22 AM »
For run of the mill apps, I believe the static libs (.a) can be discarded altogether.