Ffmpeg libary problem

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | G_DIETPI_VERSION_CORE=9 G_DIETPI_VERSION_SUB=3 G_DIETPI_VERSION_RC=0 G_GITBRANCH='master' G_GITOWNER='MichaIng'
  • Distro version | bookworm
  • Kernel version | Linux DietPi 6.1.63-current-sunxi #1 SMP Mon Nov 20 10:52:19 UTC 2023 armv7l GNU/Linux
  • Architecture | armhf
  • SBC model | Generic Allwinner H3 (armv7l) or orange pi zero lts
  • Power supply used | 5V 2.1A RAVpower
  • SD card used | EG: SanDisk ultra 32G

Additional Information (if applicable)

  • ı was set apt to auto upgrade
    when ı was decided to use ffmpeg it didnt work

Steps to reproduce

  1. apt install ffmpeg
  2. ffmpeg -version

Expected behaviour

  • normal working

Actual behaviour

[DietPi ~]# ffmpeg -version
ffmpeg: error while loading shared libraries: liblapack.so.3: cannot open shared object file: No such file or directory

Extra details

ı downloaded libapack.so.3 using apt and its just downloaded libapack.so

ı need ffmpeg for hw encoding

Do you mean you did apt install liblapack3 ?

yep ı already did

apt install liblapack3
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
liblapack3 is already the newest version (3.11.0-2). liblapack3 set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. [DietPi Youtube]# ffmpeg ffmpeg: error while loading shared libraries: liblapack.so.3: cannot open shared object file: No such file or directory

can you check if files are present

find / -name "liblapack.so.3"

find / -name "liblapack.so.3" output

/usr/lib/arm-linux-gnueabihf/lapack/liblapack.so.3
/mnt/3da1b760-1c89-42a4-83c3-fc36790e409b/dietpi-backup/data/usr/lib/arm-linux-gnueabihf/lapack/liblapack.so.3
/mnt/3da1b760-1c89-42a4-83c3-fc36790e409b/dietpi_userdata/docker-data/overlay2/e61831f812dca27279ab8c1f236fcbcf97b2e82445584729e89aef82f6475016/diff/usr/lib/arm-linux-gnueabihf/liblapack.so.3
/mnt/3da1b760-1c89-42a4-83c3-fc36790e409b/dietpi_userdata/docker-data/overlay2/e61831f812dca27279ab8c1f236fcbcf97b2e82445584729e89aef82f6475016/diff/usr/lib/arm-linux-gnueabihf/lapack/liblapack.so.3
/mnt/dietpi_userdata/docker-data/overlay2/e61831f812dca27279ab8c1f236fcbcf97b2e82445584729e89aef82f6475016/diff/usr/lib/arm-linux-gnueabihf/lapack/liblapack.so.3
/mnt/dietpi_userdata/docker-data/overlay2/e61831f812dca27279ab8c1f236fcbcf97b2e82445584729e89aef82f6475016/diff/usr/lib/arm-linux-gnueabihf/liblapack.so.3

ı change ld.so.config file

cat /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf
/usr/lib/arm-linux-gnueabihf/lapack/

and
loaded config
ldconfig

fixed problem

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.