cazala / coin-hive

CoinHive cryptocurrency miner for node.js
https://www.npmjs.com/package/coin-hive
MIT License
1.98k stars 400 forks source link

Amazon Linux ( AMI ) Electron dev environment - error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory #117

Closed cloroacidolD closed 5 years ago

cloroacidolD commented 5 years ago

I have deployed an extremely basic Electron app to my Amazon Linux (AMI) cloud vm.

My vm has node v10.15.1 installed but for some reason it can't run this app correctly. Its failing at the start script and it looks like it cannot load this libgtk library.

I've tried searching how to install it and can't find anything. Here is most of the error message:

error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! test-app@0.1.0 start: `electron`
npm ERR! spawn ENOENT
npm ERR!