You are not logged in.

#1 2009-01-17 20:04:05

patogen
Member
Registered: 2008-05-11
Posts: 86

mpd broken

Just upgraded mpd to 0.14-2, now mpd won't start, when I try to start it I get this error:

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

One person in #mpd@freenode told me this was because of ffmpeg problems since /usr/lib/libavcodec.so.52 exists in file system. Running testing btw, any idea on how to fix this? The same person in #mpd told me to downgrade ffmpeg...


We met up with the aliens and guess what? They have no word for fluffy!

Offline

#2 2009-01-17 22:38:26

skualito
Member
Registered: 2008-11-19
Posts: 203

Re: mpd broken

Try make a symbolic link

as root :

ln -s /usr/lib/libavcodec.so.52 /usr/lib/libavcodec.so.51

Offline

#3 2009-01-17 22:39:56

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: mpd broken

Or even better, try recompiling mpd.


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#4 2009-01-18 05:59:40

ST.x
Member
From: Sydney, Australia
Registered: 2008-01-25
Posts: 363
Website

Re: mpd broken

Firstly I couldn't start mpd either but without that error message and then I compiled it and it started but during playback the sound was extremely low(even at highest volume settings) and eventually I had to do this from the wiki  and it seems back to normal but im not sure if using dmix is going to effect the output quality.

Last edited by ST.x (2009-01-18 06:00:54)

Offline

#5 2009-01-18 15:41:08

atolbert
Member
Registered: 2008-12-30
Posts: 2

Re: mpd broken

skualito wrote:

Try make a symbolic link

as root :

ln -s /usr/lib/libavcodec.so.52 /usr/lib/libavcodec.so.51

Works Perfectly!  Figured it was a simple fix as this, thanks!

Offline

#6 2009-01-18 17:12:56

EVRAMP
Member
From: Czech Republic
Registered: 2008-10-03
Posts: 173
Website

Re: mpd broken

I used makepkg to build MPD 0.14 and it's working fine for me.
libavcodec.so.51 comes with ffmpeg 20080715-3 (extra), but in the testing is 20081220-1.
I have no libavcodec.so.52 on my system (i don't use testing repo). So may be there is an issue with ffmeg from testing repo...?

Offline

#7 2009-01-18 17:21:26

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: mpd broken

atolbert wrote:
skualito wrote:

Try make a symbolic link

as root :

ln -s /usr/lib/libavcodec.so.52 /usr/lib/libavcodec.so.51

Works Perfectly!  Figured it was a simple fix as this, thanks!

This is not a good idea: there may be subtle differences between those two libs that cause strange bugs eventually. The good fix is to recompile mpd so it uses .so.52. You can use the magic of abs:

$ su
# abs
# cd /var/abs/extra/mpd
# su <yourusername>
$ makepkg
$ su
# pacman -U *.pkg.tar.gz

Offline

#8 2009-01-18 18:18:57

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: mpd broken

Never make symbolic links like that. You're going to start introducing very hard to track bugs.

Offline

#9 2009-01-19 04:32:38

patogen
Member
Registered: 2008-05-11
Posts: 86

Re: mpd broken

The weird thing now is when I've updated abs, but yet when looking at the PKGBUILD it's 0.13-2 not 0.14? Yes abs is up to date, just updated, and checking out the PKGBUILD we find a link to:

http://musicpd.org/uploads/files/

No 0.14 to be found here... but using the PKGBUILD that I got from abs:

# $Id: PKGBUILD 5677 2008-07-20 05:13:27Z eric $
# Maintainer: Damir Perisa <damir.perisa@bluewin.ch>
# Contributor: Ben <ben@benmazer.net>

pkgname=mpd
pkgver=0.13.2
pkgrel=1
pkgdesc="Music daemon that plays MP3, FLAC, and Ogg Vorbis files"
arch=('i686' 'x86_64')
license=("GPL")
url="http://musicpd.org"
depends=('libid3tag' 'libmad' 'flac>=1.1.3' 'audiofile' 'faad2>=2.6.1' 'libmikmod'
         'alsa-lib' 'libshout' 'libmpcdec>=1.2.5' 'libsamplerate' 'libao')
install=mpd.install
source=(http://musicpd.org/uploads/files/mpd-${pkgver}.tar.gz
        mpd mpd.conf.example)
md5sums=('33d0c7b08e2c9e2a6ad55703cb0d18d0' 'b1fd15de359db08e4b9ae4b199640f0e'\
         'b3e370377d39d17427c50f04a0cdea6e')

build() {
  cd ${startdir}/src/${pkgname}-${pkgver}
  ./configure --prefix=/usr --sysconfdir=/etc --disable-jack --enable-ao -with-zeroconf=no
  make || return 1
  make DESTDIR=${startdir}/pkg install

  install -D ../mpd ${startdir}/pkg/etc/rc.d/mpd
  install -Dm644 ../mpd.conf.example ${startdir}/pkg/etc/mpd.conf.example
  mkdir -p ${startdir}/pkg/var/lib/mpd/playlists
  mkdir -p ${startdir}/pkg/var/log/mpd
  mkdir -p ${startdir}/pkg/var/run/mpd
}

Now it works again, symlinking 'works' but as said earlier it can introduce hard to track bugs ... obviously it's 0.13.2 not 0.14. Main thing for me is that it works anyway

Edit: Checked the bug tracker so this is a known bug now and since it hasn't been resolved yet I get why we have 0.13.2 and not 0.14 smile

Last edited by patogen (2009-01-19 04:48:51)


We met up with the aliens and guess what? They have no word for fluffy!

Offline

#10 2009-01-19 06:23:21

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: mpd broken

patogen wrote:

Edit: Checked the bug tracker so this is a known bug now and since it hasn't been resolved yet I get why we have 0.13.2 and not 0.14 smile

you are wrong there. Building 0.14 with abs would have worked perfectly.


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#11 2009-01-19 06:54:45

patogen
Member
Registered: 2008-05-11
Posts: 86

Re: mpd broken

Rasi wrote:
patogen wrote:

Edit: Checked the bug tracker so this is a known bug now and since it hasn't been resolved yet I get why we have 0.13.2 and not 0.14 smile

you are wrong there. Building 0.14 with abs would have worked perfectly.

How come my /var/abs/extra/mpd/PKGBUILD doesn't have 0.14 and that the mirror:
http://musicpd.org/uploads/files/

That this PKGBUILD is pointing to doesn't have 0.14, and yes I just ran the abs command as root. Could there be a syncing problem with abs for me? And if not too much to ask, could you submit the pkgbuild from your abs dir so I can compile 0.14?


We met up with the aliens and guess what? They have no word for fluffy!

Offline

#12 2009-01-19 06:56:12

ST.x
Member
From: Sydney, Australia
Registered: 2008-01-25
Posts: 363
Website

Re: mpd broken

I just ran yaourt -G mpd to get the latest PKGBUILD

Offline

#13 2009-01-19 06:59:20

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: mpd broken

You have to get the 0.14 version from testing repo (/var/abs/testing -- you might have to enable testing repo in abs.conf and resync in case it is not enabled by default).

Offline

#14 2009-01-19 07:22:43

patogen
Member
Registered: 2008-05-11
Posts: 86

Re: mpd broken

fwojciec wrote:

You have to get the 0.14 version from testing repo (/var/abs/testing -- you might have to enable testing repo in abs.conf and resync in case it is not enabled by default).

Yeah in /var/abs/testing/mpd exists and have the correct version. This solves the problem for now. Thank you very much, I just thought it would be in /var/abs/extra. But since the new 0.14 is in testing ... it's obviously in testing in abs as well. Should have thought of that, but didn't. Thank you! smile


We met up with the aliens and guess what? They have no word for fluffy!

Offline

#15 2009-01-19 16:22:09

skualito
Member
Registered: 2008-11-19
Posts: 203

Re: mpd broken

This is not a good idea: there may be subtle differences between those two libs that cause strange bugs eventually.

oups, didn't think about that. hmm

Last edited by skualito (2009-01-19 16:25:21)

Offline

#16 2009-01-19 17:26:26

bluewind
Administrator
From: Austria
Registered: 2008-07-13
Posts: 172
Website

Re: mpd broken

yaourt -Sb --noconfirm mpd

and done.

Offline

Board footer

Powered by FluxBB