Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Electron apps can't find libcurl.so.4 #8853
I'm looking for a nice Git GUI, and so I came across gitkraken the other day. However, it wouldn't start but fail with
/usr/lib ► gitkraken Node started time: 1488472940858 libcurl.so.4: cannot open shared object file: No such file or directory Error: libcurl.so.4: cannot open shared object file: No such file or directory at Error (native) at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:158:20) at Object.Module._extensions..node (module.js:568:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:169:18) at Module.load (module.js:456:32) at tryModuleLoad (module.js:415:12) at Function.Module._load (module.js:407:3) at Module.require (module.js:466:17) at require (internal/module.js:20:19) at Object.<anonymous> (/usr/share/gitkraken/resources/app.asar/node_modules/nodegit/dist/nodegit.js:11:12) at Module._compile (module.js:541:32) ...
I tried to fix the issue with
sudo ln -sf /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.4.0 libcurl.so.4
and, as recommended by nodegit:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install libstdc++-4.9-dev
but to no avail. Naturally I would have thought this to be a problem with the gitkraken app, but today I chose to try and run Cycligent Git Tool, and look what happened:
so it would appear Electron has a problem here. The strange thing is that I can start Atom, and I never had a problem like that with it (well, maybe it doesn't even need libcurl, of course).
This is on Linux Mint Cinnamon:
► uname -a && cat /etc/issue Linux enceladus 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Linux Mint 18 Sarah
Thanks to this issue and the comments I was able to solve my problem as well,
Thanks! This worked for me. I was trying to run Agama Desktop Wallet for the KomodoPlatform and when it tried to spawn komodod I was seeing errors about libcurl.so.4 being missing. This was on Ubuntu 16.04 running as a Linux Container atop a Proxmox server running Debian Stretch.
Inside the container I ran:
Which fixed the problem. Thanks!
I'm having a similar issue on OpenSUSE Leap 42.3 with the following:
Since Ubuntu 18.04, installing curl & libcurl3 wont' work as curl requires libcurl4 (and that doesn't help with starting GitKraken). I didn't dig into the error as, as said by @benwinding , the snap works. Don't forget to give the right permissions in the Software Store if you keep your repos outside your home.