Skip to content

Instantly share code, notes, and snippets.

@macbre
Last active December 26, 2025 17:46
Show Gist options
  • Select an option

  • Save macbre/ced3837d1e8bf25368d7b8cd4ce03373 to your computer and use it in GitHub Desktop.

Select an option

Save macbre/ced3837d1e8bf25368d7b8cd4ce03373 to your computer and use it in GitHub Desktop.
retropie

Troubleshooting

libavcodec.so.58: cannot open shared object file

$ cat /dev/shm/runcommand.log 
Parameters: 
Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-quicknes/quicknes_libretro.so --config /opt/retropie/configs/nes/retroarch.cfg "/home/pi/RetroPie/roms/nes/Super Mario Bros. 3 (Europe).nes" --appendconfig /dev/shm/retroarch.cfg
/opt/retropie/emulators/retroarch/bin/retroarch: error while loading shared libraries: libavcodec.so.58: cannot open shared object file: No such file or directory
/opt/retropie/emulators/retroarch/bin/retroarch: error while loading shared libraries: libavformat.so.58: cannot open shared object file: No such file or directory
/opt/retropie/emulators/retroarch/bin/retroarch: error while loading shared libraries: libswscale.so.5: cannot open shared object file: No such file or directory

$ apt-get install libavcodec58 libavformat58 libswscale5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment