You are not logged in.

#1 2011-01-08 23:01:41

jdn06
Member
Registered: 2010-02-01
Posts: 67

[SOLVED]error while loading shared libraries - ogmrip, mencoder & x264

Last week I moved root & home from a disk to another one. I made a separate boot & var on the new one and copied files with a "cp -a" command. All seemed to be good, but I have a curious problem now. When I launch ogmrip, I have an error message:

mencoder: error while loading shared libraries: libx264.so.88: cannot open shared object file: No such file or directory
Greffon libogmrip-x264.so désactivé: MEncoder est compilé sans support X264
mencoder: error while loading shared libraries: libx264.so.88: cannot open shared object file: No such file or directory
Greffon libogmrip-lavc-mpeg4.so désactivé: des prérequis sont manquants
mplayer: error while loading shared libraries: libx264.so.88: cannot open shared object file: No such file or directory
mencoder: error while loading shared libraries: libx264.so.88: cannot open shared object file: No such file or directory
Greffon libogmrip-xvid.so désactivé: MEncoder est compilé sans support XviD
mencoder: error while loading shared libraries: libx264.so.88: cannot open shared object file: No such file or directory
Greffon libogmrip-mov.so désactivé: MEncoder est compilé sans support lavf
** (ogmrip:17138): WARNING **: Failed to initialize module libogmrip-x264-options.so
** (ogmrip:17138): WARNING **: Failed to initialize module libogmrip-xvid-options.so

The libx264 in /usr/lib are:

$ ls -l /usr/lib/libx2*
-rw-r--r-- 1 root root 912192 14 oct.  21:00 /usr/lib/libx264.a
lrwxrwxrwx 1 root root     14 14 oct.  21:00 /usr/lib/libx264.so -> libx264.so.107
-rwxr-xr-x 1 root root 635032 14 oct.  21:00 /usr/lib/libx264.so.107

In ogmrip, x264 is then disabled

When I make a symb link from the requested libx264.so.88 to the existing libx264.so.107, there is no more error and x264 appears in ogmrip, but encoding make an error at launch.

I tried:
- to remove and reinstall x264, mplayer, ogmrip;
- to get mplayer-svn & x264-git from AUR
In vain.

On another new system with arch I have, packaging and dependancies for these programs are ok; that is why I really suspect a link with my root & home move. But I don't understand what is wrong.

Last edited by jdn06 (2011-01-23 10:01:00)

Offline

#2 2011-01-08 23:30:43

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

Re: [SOLVED]error while loading shared libraries - ogmrip, mencoder & x264

after installing x264-git you have to recompile mplayer-svn.


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

Offline

#3 2011-01-09 00:20:30

jdn06
Member
Registered: 2010-02-01
Posts: 67

Re: [SOLVED]error while loading shared libraries - ogmrip, mencoder & x264

I am now back on the extra packages but I will try again. I am not sure about this solution because:

- there was no upgrade of these packages at the moment the problem appeared.
- these packages from extra work fine on another computer on arch I have.

Offline

#4 2011-01-09 10:23:58

jdn06
Member
Registered: 2010-02-01
Posts: 67

Re: [SOLVED]error while loading shared libraries - ogmrip, mencoder & x264

I tried again x264-git + mplayer-svn. Same problem.
I pursued investigation by using mplayer to read some mkv files encoded with x264:
- when I read them with smplayer, all work fine
- when I read them from a mplayer command in console, the movie isn't displayed and I have the same error message:

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

Offline

#5 2011-01-23 09:22:18

jdn06
Member
Registered: 2010-02-01
Posts: 67

Re: [SOLVED]error while loading shared libraries - ogmrip, mencoder & x264

OK I think I found the problem:

$ pacman -Qo mplayer
Erreur: aucun paquet ne contient /usr/local/bin/mplayer

I don't know how, but it seems that I have two mplayer packages:
- one in /usr/bin
- one in /usr/local/bin

What can I do now to erase the /usr/local/bin one ?

Last edited by jdn06 (2011-01-23 09:31:55)

Offline

#6 2011-01-23 09:26:33

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,392
Website

Re: [SOLVED]error while loading shared libraries - ogmrip, mencoder & x264

If you build these packages from git/svn and there is an soname bump, then you will need to rebuild all packages that link to them yourself.

Is there any particular reason not to stick to the packages in [extra]?   It looks like that would save you a lot of trouble.

Offline

#7 2011-01-23 09:35:30

jdn06
Member
Registered: 2010-02-01
Posts: 67

Re: [SOLVED]error while loading shared libraries - ogmrip, mencoder & x264

@Allan
Sorry, I found something just after posting, so I edited my last message to change it.
I don't use usually git and svn, I just tested it when my problem appeared to see if it solved it. As it did'nt, I reinstalled extra packages.

Last edited by jdn06 (2011-01-23 10:00:17)

Offline

#8 2011-01-23 09:57:45

jdn06
Member
Registered: 2010-02-01
Posts: 67

Re: [SOLVED]error while loading shared libraries - ogmrip, mencoder & x264

OK. I explain problem and solution for people who might have the same one (Even if I don't see how it happened; the moving of my root has no direct link to explane it... if I compiled manually mplayer, it was months ago)
- I had mplayer & mencoder commands in my /usr/local/bin
- I use this path to put packages manually compiled; this path is added to $PATH in .bashrc
- I suspect that some programs (ogmrip for example) use just a "mencoder" command, as others (like smplayer, handbrake) use a "/usr/bin/mencoder" one.

I moved mplayer & mencoder from /usr/local/bin and the problem disappeared.

Offline

Board footer

Powered by FluxBB