LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware Live_lost-lib (https://www.linuxquestions.org/questions/slackware-14/slackware-live_lost-lib-4175589898/)

coner 09-21-2016 04:13 PM

Slackware Live_lost-lib
 
Re: Slackware-Live-14.2.iso, 2.78GB; iso2usb.sh

Hi,

link

This URL downloaded Slackware package installed OK, but when a later SlackBuild install of a different program was installed and functional, it had a fit:

Code:


bash-4.3# simplescreenrecorder
simplescreenrecorder: error while loading shared libraries: libavformat.so.57: cannot open shared object file: No such file or directory
bash-4.3# slackpkg file-search libavformat.so.57

Looking for libavformat.so.57 in package list. Please wait... DONE

No packages contains "libavformat\.so\.57" file.

bash-4.3# find -H / -name "*libavformat.so.57"
bash-4.3#

Slackpkg can find NO sign of this shared object file that it could, earlier, before the latter SlackBuild install.
Q: What steps are required to recovered this lost-lib?
coner

STDOUBT 09-21-2016 04:44 PM

coner,
If you had read carefully the page at slackbuilds.org,
https://slackbuilds.org/repository/1...screenrecorder
you would have seen that it's dependent upon ffmpeg.
ffmpeg provides the libavformat library.
HTH!

coner 09-21-2016 06:40 PM

Quote:

Originally Posted by STDOUBT (Post 5608440)
coner,
If you had read carefully the page at slackbuilds.org,
https://slackbuilds.org/repository/1...screenrecorder
you would have seen that it's dependent upon ffmpeg.
ffmpeg provides the libavformat library.
HTH!

STDOUBT,
Initial installation of SSR installed 'libavformat', but after installing another SlackBuild package, SSR can no longer find it, even though Package Manager just reported 'FFMPEG' has already been installed:



Quote:

root@darkstar:/home/live# slpkg -s sbo ffmpeg
Reading package lists... Done
Resolving dependencies... Done

The following packages will be automatically installed or upgraded
with new version:

+==============================================================================
| Package New version Arch Build Repos Size
+==============================================================================
Installing:
ffmpeg-2.8.7 2.8.7 i486 SBo

Installing summary
===============================================================================
Total 1 package.
0 package will be installed, 1 already installed and 0 package
will be upgraded.

root@darkstar:/home/live#



# # #
I have reinstalled SSR w/o success, giving post credence.
coner
PS. Second SlackBuild install was 'dvdstyler' and it functions OK.

bassmadrigal 09-22-2016 07:58 AM

You have mismatched versions of ffmpeg. You have ffmpeg v2.8.x installed, which includes libavformat v56. For libavformat v57, you need ffmpeg 3.x. See this ffmpeg page for more details on what library versions are included in what ffmpeg versions. What likely happened is you downloaded a pre-compiled binary of ssr, which was compiled against ffmpeg 3.x, but you only have ffmpeg 2.8.x installed, so ssr is expecting a newer version of ffmpeg, which doesn't exist on your system.

I'd recommend using the SlackBuild from SBo to compile ssr, as it will then link to the correct version of ffmpeg that's installed on your system.

And in case you're considering updating your ffmpeg, know that it would possibly break other apps that are linked to that version (like dvdstyler), so it would probably be easier to just compile ssr from source and have it link to the current ffmpeg version on your system.

To note, this is why it can be problematic installing pre-compiled binaries from multiple sources... you don't know what libraries were present on that system when it was compiled, so you can run into dependency issues like here. It probably isn't very common, but it can be a pain to deal with if/when it occurs. Just food for thought... I'm not trying to change any of your practices :)


All times are GMT -5. The time now is 01:12 AM.