New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
electron: error while loading shared libraries: libffmpeg.so: cannot open shared object file: No such file or directory #25440
Comments
Same problem with Ubuntu Server 20.04 . Electron version: 7.1.3. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I'm currently running into this on Ubuntu 20.04 (regular plain Ubuntu, no WSL) using Electron Fiddle:
Curiously this doesn't happen with all versions, I hope this helps tracking this down:
|
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue. |
I am facing the exactly same issue with electron-forge. I built my project from the Electron-Forge-Webpack-TypeScript template. My
"dependencies": {
"electron-squirrel-startup": "1.0.0"
},
"devDependencies": {
"@electron-forge/cli": "6.2.1",
"@electron-forge/maker-deb": "6.2.1",
"@electron-forge/maker-rpm": "6.2.1",
"@electron-forge/maker-squirrel": "6.2.1",
"@electron-forge/maker-zip": "6.2.1",
"@electron-forge/plugin-auto-unpack-natives": "6.2.1",
"@electron-forge/plugin-webpack": "6.2.1",
"@types/jest": "29.5.3",
"@types/node": "20.4.1",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
"@vercel/webpack-asset-relocator-loader": "1.7.3",
"css-loader": "6.8.1",
"dotenv": "16.3.1",
"electron": "25.2.0",
"electron-store": "8.1.0",
"fork-ts-checker-webpack-plugin": "7.3.0",
"husky": "8.0.3",
"jest": "29.6.1",
"jest-environment-node": "29.6.1",
"jest-junit": "16.0.0",
"lint-staged": "13.2.3",
"node-loader": "2.0.0",
"prettier": "3.0.0",
"style-loader": "3.3.3",
"ts-jest": "29.1.1",
"ts-loader": "9.4.4",
"ts-node": "10.9.1",
"typescript": "5.1.6"
}, ReproduceI am running the following on Windows WSL with Ubuntu npm install
# Install packages for X Server
apt update
apt install libgconf-2-4 libatk1.0-0 libatk-bridge2.0-0 \
libgdk-pixbuf2.0-0 libgtk-3-0 libgbm-dev libnss3-dev libxss-dev libasound2 \
x11-xserver-utils
# Setup bus
export DISPLAY=$(grep -m 1 nameserver /etc/resolv.conf | awk '{print $2}'):0.0
xhost +
service dbus start
export XDG_RUNTIME_DIR=/run/user/$(id -u)
if [ -d "$XDG_RUNTIME_DIR" ]; then
echo "$XDG_RUNTIME_DIR already exists."
else
mkdir $XDG_RUNTIME_DIR
fi
chmod 700 $XDG_RUNTIME_DIR
chown $(id -un):$(id -gn) -R $XDG_RUNTIME_DIR
export DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus
dbus-daemon --session --address=$DBUS_SESSION_BUS_ADDRESS --nofork --nopidfile --syslog-only &
# Have VcsXsrv, a WSL X Server, running
apt install rpm --yes
npm run package
# Switch to a non-root user to avoid getting Running as root without -no-sandbox is not supported error
chmod -R 777 ./out/
sudo adduser guest
su guest
./out/window-linux-x64/window Then I get I have tried to install the following: apt install chromium-codecs-ffmpeg ffmpeg But no luck. I get
|
Preflight Checklist
Issue Details
Cannot run
node_modules/.bin/electron --version
: error while loading shared libraries: libffmpeg.so: cannot open shared objectthe version defined in package.json devDependencies is "electron": "^10.1.1"
None
Expected Behavior
Start the electron application
Actual Behavior
Cannot start electron app in Ubuntu WSL
To Reproduce
Within app folder search libffmpeg.so:
Start your app
The text was updated successfully, but these errors were encountered: