LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-15-2020, 08:46 AM   #1
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Rep: Reputation: Disabled
No longer able to start video player; error while loading shared libraries


Whenever I try to load my default video player, it doesn't load. Looking at the virtual terminal that displays the ongoing processes of my xsession, it displays the following:

Code:
gmplayer: error while loading shared libraries: libwscale.so.5: cannot open shared object file: No such file or directory
It was working fine until yesterday when I installed some libraries as dependencies for some packages off of SBo:
-serd
-sord
-suil
-sdl2
-lilv
-ffmpeg
-wxGTK3

I don't see how any of these libraries would affect something that handles video though.
And playing video through the web browser works fine. Youtube and other video sites play just fine, it's just the system video player that randomly stopped working.

Last edited by burning; 07-15-2020 at 08:51 AM. Reason: forgot to add tags
 
Old 07-15-2020, 08:50 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,118

Rep: Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192
Quote:
Originally Posted by burning View Post
Code:
gmplayer: error while loading shared libraries: libwscale.so.5: cannot open shared object file: No such file or directory
maybe you mistyped the library name: if it's "libswscale" it could be that you have uninstalled/replaced ffmpeg.
 
1 members found this post helpful.
Old 07-15-2020, 08:53 AM   #3
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
maybe you mistyped the library name: if it's "libswscale" it could be that you have uninstalled/replaced ffmpeg.
No, that's correct. I did install ffmpeg alongside the others. I just thought there was no way it could be related as I thought it was a sound plugin, no a video plugin. I've corrected the original post.
 
Old 07-15-2020, 08:56 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,118

Rep: Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192
then I'm sorry, I personally don't know of any software shipping libwscale.so.5.
 
Old 07-15-2020, 11:08 AM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Even Google doesn't turn up anything on libwscale other than what seems like potential mistypings for libswscale, which as ponce mentioned, is part of ffmpeg.
 
1 members found this post helpful.
Old 07-15-2020, 12:21 PM   #6
zuriel
Member
 
Registered: Aug 2012
Distribution: Slackware
Posts: 60

Rep: Reputation: 50
Code:
$ ldd /usr/bin/gmplayer | grep scale
        libswscale.so.5 => /usr/lib64/libswscale.so.5
Has to be just a typo in the error message, somehow.

You installed a new version of ffmpeg, which replaced Slackware's built in ffmpeg. The one you installed might have a different version of libswscale, or doesn't include it at all.
 
1 members found this post helpful.
Old 07-15-2020, 12:36 PM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,246

Rep: Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323
Rebuilding MPlayer using Slackware's official MPlayer SlackBuild will also solve the problem.
 
1 members found this post helpful.
Old 07-15-2020, 01:39 PM   #8
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
Even Google doesn't turn up anything on libwscale other than what seems like potential mistypings for libswscale, which as ponce mentioned, is part of ffmpeg.
My mistake, I thought he meant I just put in the typed a different library. It is libswscale. I just thought ponce was referring to my not mentioning ffmpeg.

ponce, you were right

Last edited by burning; 07-15-2020 at 01:46 PM.
 
Old 07-15-2020, 01:43 PM   #9
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zuriel View Post
You installed a new version of ffmpeg, which replaced Slackware's built in ffmpeg. The one you installed might have a different version of libswscale, or doesn't include it at all.
I see. I used a slackbuild for ffmpeg so was it just because it probably used a newer version? I didn't know ffmpeg was already in slackware by default.
 
Old 07-15-2020, 01:53 PM   #10
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,800

Rep: Reputation: 4437Reputation: 4437Reputation: 4437Reputation: 4437Reputation: 4437Reputation: 4437Reputation: 4437Reputation: 4437Reputation: 4437Reputation: 4437Reputation: 4437
FTR ffmpeg is NOT included by default in 14.2 but IS included in -Current.
 
2 members found this post helpful.
Old 07-15-2020, 02:27 PM   #11
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Easiest thing to do would be to just rebuild mplayer with the SlackBuild from -current (whether you're running 14.2 or -current). It will get you a relatively recent version of mplayer and will build it against the libraries currently in your system.

You can easily do this by running the following:

Code:
wget -r -nH --no-parent --reject="index.htm*" --cut-dirs=4 https://mirrors.slackware.com/slackware/slackware64-current/source/xap/MPlayer/
cd MPlayer
sh MPlayer.SlackBuild
upgradepkg /tmp/MPlayer-*.txz
You will need to be root to run the SlackBuild and upgradepkg.
 
1 members found this post helpful.
Old 07-15-2020, 02:57 PM   #12
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
Easiest thing to do would be to just rebuild mplayer with the SlackBuild from -current (whether you're running 14.2 or -current). It will get you a relatively recent version of mplayer and will build it against the libraries currently in your system.

You can easily do this by running the following:

Code:
wget -r -nH --no-parent --reject="index.htm*" --cut-dirs=4 https://mirrors.slackware.com/slackware/slackware64-current/source/xap/MPlayer/
cd MPlayer
sh MPlayer.SlackBuild
upgradepkg /tmp/MPlayer-*.txz
You will need to be root to run the SlackBuild and upgradepkg.
Ah, I think that must've been what caused the error. I've made it so SBo downloads from the 14.2 repo rather than current. So if ffmpeg is included by default in -current and not in 14.2, that'd imply that the slackbuild on 14.2 is maybe an older version?

Also, as I'm running 32-bit Slackware, would that url to wget from be https://mirrors.slackware.com/slackw...e/xap/Mplayer/
?
 
Old 07-15-2020, 03:39 PM   #13
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by burning View Post
Ah, I think that must've been what caused the error. I've made it so SBo downloads from the 14.2 repo rather than current. So if ffmpeg is included by default in -current and not in 14.2, that'd imply that the slackbuild on 14.2 is maybe an older version?
If you're running -current, you likely replaced the stock version with a different version. That will likely break all the programs that rely on ffmpeg. In that case, it'd probably be better to just reinstall the ffmpeg package.

Quote:
Originally Posted by burning View Post
Also, as I'm running 32-bit Slackware, would that url to wget from be https://mirrors.slackware.com/slackw...e/xap/Mplayer/
?
For building from source, it actually doesn't matter. Slackware uses the same source tree for 32bit and 64bit. When the SlackBuild is run, it will automatically build it as 32bit or 64bit depending on what version of Slackware you're running.
 
1 members found this post helpful.
Old 07-15-2020, 09:28 PM   #14
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
Here is the FFMPEG source for Slackware 32bit Current. If you wish to build it yourself with different defaults. https://mirrors.xmission.com/slackwa...urce/l/ffmpeg/

Otherwise use FFMPEG from here: https://mirrors.xmission.com/slackwa...t/slackware/l/

There is a FFMPEG4 package on Slackbuilds. If you are running Current and have installed it, uninstall it first before adding Slackware Current's FFMPEG. Current's FFMPEG is 4.3.1

Then upgradepkg to install it.

Edit: I'm confused if the op is using Current or 14.2. The above applies to Current.

Last edited by RadicalDreamer; 07-16-2020 at 08:52 AM.
 
1 members found this post helpful.
Old 07-16-2020, 06:53 AM   #15
TheTKS
Member
 
Registered: Sep 2017
Location: Ontario, Canada
Distribution: Slackware, X/ubuntu, OpenBSD, OpenWRT
Posts: 361

Rep: Reputation: 243Reputation: 243Reputation: 243
Since I think burning is new to this (at least fairly new to LQ), and nobody else has mentioned this here...

Verify your downloads! Yes, I’ve had some go wrong.

If you’re not sure how to do it, instructions are out there, but feel free to ask here.

TKS
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
while booting linux VM (5.8) getting error "error while loading shared libraries: lib IgnitedMind Linux - Enterprise 2 04-30-2013 12:49 AM
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared tinaa Linux - Software 5 12-02-2008 03:19 PM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM
mplayer: error while loading shared libraries: libdvdread.so.3: cannot open shared ob Bruce Hill Slackware 6 12-11-2003 08:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration