You are not logged in.

#1 2011-01-19 21:16:54

DarioP
Member
From: Geneva
Registered: 2011-01-05
Posts: 165

x264 should be a dependency of mplayer?

I've recently installed mplayer on my system.

Pacman installed libftdi and lirc-utils as dependencies but when I tried to start mplayer i got:


mplayer: error while loading shared libraries: libx264.so.112: cannot open shared object file: No such file or directory

I fixed this installing x264 too, so shouldn't this package be somewhere in the dependency tree of mplayer??


Sorry if I have been silly.

Last edited by DarioP (2011-01-19 21:20:21)

Offline

#2 2011-01-19 21:19:56

Dogmeat
Member
From: Slovak Republic
Registered: 2009-02-24
Posts: 193

Re: x264 should be a dependency of mplayer?

x264 already is a dependency of mplayer.

Offline

#3 2011-01-19 21:24:13

DarioP
Member
From: Geneva
Registered: 2011-01-05
Posts: 165

Re: x264 should be a dependency of mplayer?

Yes.. so is reported in the package page of mplayer, but trust me, I have just had a fresh install and I had to manual install x264.

Something didn't work.

Offline

#4 2011-01-19 21:40:33

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: x264 should be a dependency of mplayer?

is simple, pacman -Qs x264. if you have other name of that package then is your problem.

or you installed mplayer with pacman -Sy mplayer, which is wrong

Last edited by wonder (2011-01-19 21:41:11)


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2011-01-19 22:18:36

DarioP
Member
From: Geneva
Registered: 2011-01-05
Posts: 165

Re: x264 should be a dependency of mplayer?

I installed mplayer with pacman -S mplayer and it installed some dependencies too.

Then I had to do pacman -S x264 as this required package wasn't installed by the previous command.

That's all. I don't know what happened, I've never had this kind of problem before.

I'm just reporting my experience, if it's useless let it drop  wink

Last edited by DarioP (2011-01-19 22:24:53)

Offline

#6 2011-01-20 09:10:19

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 714

Re: x264 should be a dependency of mplayer?

maybe the mirror was out of sync and didn't have the new x264

Offline

#7 2011-01-20 09:42:30

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: x264 should be a dependency of mplayer?

The chance of pacman not picking up a dependency (when installing stuff correctly) is absolutely minimal. I'm pretty sure your mirror being out of date (or syncing at the moment you updated) is the problem. Grep your logs for x264, I'm willing to bet your 'install' was actually an upgrade.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#8 2011-01-20 15:30:28

DarioP
Member
From: Geneva
Registered: 2011-01-05
Posts: 165

Re: x264 should be a dependency of mplayer?

.:B:. wrote:

Grep your logs for x264

I'll be glad to do it if you tell me how.. where are packages logs stored?

Offline

#9 2011-01-20 15:32:08

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: x264 should be a dependency of mplayer?

/var/log/pacman.log

Offline

#10 2011-01-20 18:09:36

h-munster
Member
Registered: 2011-01-13
Posts: 5

Re: x264 should be a dependency of mplayer?

I am not sure if my problem is related to yours, but I got the same error message yesterday, concerning the exact same library (libx264.so.112), except I was trying to run a fresh install of ffmpeg.

Before I installed ffmpeg, I ran pacman Sy to update the package list.  When I got that error after the install, I checked in /usr/lib/, and sure enough, I had libx264.so.107.

I had read somewhere that mplayer often uses older libraries than ffmpeg, and that, if ffmpeg is installed after mplayer, ffmpeg will not add some of the newer libraries.  In addition, my version of mplayer was about one month old.

So, I did a complete purge of mplayer and ffmpeg:

pacman -Rs ffmpeg smplayer mplayer

Then, I installed ffmpeg again:

'pacman -S ffmpeg

After ffmpeg, I installed mplayer:

pacman -S mplayer

Now, my libx264.so is version 112, and both ffmpeg and mplayer work fine.  (I didn't reinstall smplayer -- the CLI version is fine).

Offline

#11 2011-01-20 18:15:37

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: x264 should be a dependency of mplayer?

If you don't want problems like this, don't do

pacman -Sy
pacman -S pkg

or

pacman -Sy pkg

If you don't understand why, read the documentation/wiki. When using any rolling release there will be library upgrades, and new programs will be linked against those, not the old libraries.

https://wiki.archlinux.org/index.php/Pa … g_packages

pacman -Syu
pacman -S pkg

or

pacman -Syu pkg

or just installing without syncing the database (but it might fail if the package has been upgraded and deps can't be found):

pacman -S pkg

will all work fine.

Last edited by thestinger (2011-01-20 18:19:54)

Offline

#12 2011-01-20 19:08:08

h-munster
Member
Registered: 2011-01-13
Posts: 5

Re: x264 should be a dependency of mplayer?

Thanks for the tip on using the sysupgrade flag ("u") with the refresh flag ("y").  I assume that "-Suy" does the exact same thing as "-Syu" -- the package list is always refreshed prior to the sysupgrade, which is finally followed by installing the new package.

However, I did not want to upgrade my entire system; I just wanted ffmpeg and mplayer to run.  If my solution had not worked, then I probably would have tried a sysupgrade.  I actually had to do that once before.

I am aware of problems with linking out-of-date dependencies in some rolling release distros, but I have also read about the peculiar relationship between mplayer and ffmpeg, and that sometimes it is best to install ffmpeg prior to mplayer.

Offline

#13 2011-01-20 19:20:04

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: x264 should be a dependency of mplayer?

As pointed out times and again partial upgrades - and those involve also installing one package after syncing your database - is asking for trouble. Either you do a full upgrade, or you don't do it at all. That's how it works.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#14 2011-01-20 19:20:13

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: x264 should be a dependency of mplayer?

doesn't matter because our mplayer doesn't use system ffmpeg.


Give what you have. To someone, it may be better than you dare to think.

Offline

#15 2011-01-22 18:28:47

DarioP
Member
From: Geneva
Registered: 2011-01-05
Posts: 165

Re: x264 should be a dependency of mplayer?

.:B:. wrote:

The chance of pacman not picking up a dependency (when installing stuff correctly) is absolutely minimal. I'm pretty sure your mirror being out of date (or syncing at the moment you updated) is the problem. Grep your logs for x264, I'm willing to bet your 'install' was actually an upgrade.

You were right!

$ cat /var/log/pacman.log | grep x264
[2011-01-03 19:05] installed x264 (20101013-1)
[2011-01-19 22:11] Running 'pacman -S x264'
[2011-01-19 22:11] upgraded x264 (20101013-1 -> 20110115-1)

I probably have had a partial update during that couple of week, so thanks for the clarification wink

Offline

Board footer

Powered by FluxBB