Linux: ./electron: error while loading shared libraries: libgconf-2.so.4
max-mapper opened this issue Β· 15 comments
to reproduce:
$ wget https://github.com/atom/electron/releases/download/v0.25.1/electron-v0.25.1-linux-x64.zip
$ unzip electron-v0.25.1-linux-x64.zip
$ ./electron
./electron: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
this is on Ubuntu:
$ uname -a
Linux burrito 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
workaround is apt-get install libgconf-2-4
but I figured since this isn't mentioned anywhere in the docs or previous issues it might be a bug
After Chrome 42 libgconf has become a requirement for running on Linux.
Try this trick, It worked for me:
after unzipping postman type following command in your terminal
sudo apt-get install libgconf-2-4
after running above command your postman will work for definitely. Surving to Ubuntu happily..
sudo apt -y install libgconf2-4
It's worked for me. Ubuntu18.
Linux i386 4.18.0-20-generic #21~18.04.1-Ubuntu SMP Wed May 8 08:43:37 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
workaround is
apt-get install libgconf-2-4
but I figured since this isn't mentioned anywhere in the docs or previous issues it might be a bug
if this is not working then try with " sudo apt-get install libgconf-2-4"
Yeah, this solved my issue with this. sudo apt-get install libgconf-2-4
thanks @maxogden
I tried this but on a fresh install of LUbuntu 19.10 it don't work.
What about arch linux?
Here is the simplest solution
sudo ln -s /usr/lib/libre2.so /usr/lib/libre2.so.4
Replace the last digit as in error.
LIKE THIS COMMENT IF IT SOLVES THE ISSUE.
What about arch linux?
sudo pacman -S gconf
What about arch linux?
Make the AUR package.
apt-get install libgconf-2-4
This works. Thanks!
According to the comments on the AUR gconf
package:
flying-sheep commented on 2020-01-06 19:20
Most of the packages that βrequireβ it are actually Electron apps that copy&pasted their dependency lists from elsewhere or failed to update them: Chromium (and subsequently Electron) havenβt been dependent on this for years.
So if you still get pointed to this bug, it is probably a red herring.