Gentoo > How to get Plex client to work
-
Get the latest Plex client archive from Flathub's GitHub, for example:
mkdir plex cd plex wget https://artifacts.plex.tv/plex-desktop-stable/1.110.0.351-4e48eb83/linux/Plex-1.110.0.351-4e48eb83-linux-x86_64.tar.bz2 tar -xvjf Plex*.tar.bz2 -
Patch out missing or updated libraries:
patchelf --replace-needed libwebp.so.6 libwebp.so.7 lib/libQt6WebEngineCore.so.6 patchelf --replace-needed libxml2.so.2 libxml2.so lib/libQt6WebEngineCore.so.6 patchelf --replace-needed libxml2.so.2 libxml2.so lib/libQt6WebEngineQuick.so.6 -
Create a start script, e.g.
start.sh, to prevent segmentation faults:#!/bin/bash BASE_DIR=$(dirname "$(readlink -f "$0")") export QML_IMPORT_PATH=$BASE_DIR/qml/ export QML2_IMPORT_PATH=$BASE_DIR/qml/:$QML2_IMPORT_PATH export QTWEBENGINEPROCESS_PATH=$BASE_DIR/bin/QtWebEngineProcess export QTDIR=$BASE_DIR export DISABLE_WAYLAND=${DISABLE_WAYLAND:-1} export PLEX_USERDATA_DIR=${SNAP_USER_COMMON:-${XDG_DATA_HOME:-$HOME/.local/share}/plex} export PLEX_RESOURCE_PATH=$BASE_DIR/resources export PLEX_STORAGE_INI_DIR=$PLEX_USERDATA_DIR export PLEX_LOG_DIR=$PLEX_USERDATA_DIR/Logs export PLEX_MEDIA_SERVER_RESOURCES=$BASE_DIR/resources "$BASE_DIR"/bin/Plex "$@" -
Run it!
chmod +x start.sh ./start.sh
Notes
-
You may need to compile
libjpeg-turbowith old JPEG8 support:MYCMAKEARGS="-DWITH_JPEG8=ON" emerge -a libjpeg-turboDon't forget to persist those changes somewhere in our portage config ;)
-
The
start.shscript is a stripped down amalgamation of thePlex.shscript that shipped with the original Plex.tar.bzarchive. -
The missing or outdated dependencies were found by searching everywhere:
for f in lib/*; do echo $f; ldd $f | rg libxml; done for f in lib/*; do echo $f; ldd $f | rg libwebp; done
18:59 19.11.2025