sdetweil/MagicMirror_scripts

Shared Library Error

Closed this issue · 12 comments

The script works flawlessly however on my newest system I keep getting an error while loading shared libraries. It says "cannot open shared object file: No such file or directory" every time I try to launch it

can u show the rest of the messages?

is this the just released updated pi os?

It says "/home/user1/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libgobject-2.0.so.0: cannot open shared object file: No such file or directory"

Another thing is I am running this on a desktop os pi. Which I've seen users have trouble connecting to electron.

yes, looks like that file is not installed on x64 systems by default. just install it

Google search the name for instructions..

like
https://pkgs.org/download/libgobject-2.0.so.0

I'm sorry, I'm still having trouble, can you walk me through the terminal process

I'm sorry, I'm still having trouble, can you walk me through the terminal process

You said before:
I forgot to mention that's after I deleted electron, for some reason it's having a hard time

Maybe you have to install electron again before it could work/find the file …

It says libglib2.0-dev is already the newest version

sorry, no idea. it's an electron/os problem

u can run mm in server mode and use chrome or firefox or Midori...

if you are running pm2(setup from my script) to launch, then edit
~/MagicMirror/installers/mm.sh
and change

npm start
to
npm run server

the pm2 restart all

then use browser to connect to localhost:8080
(defaults) in config.js

any update?

I encountered the same issue. Your suggested fix of editing MagicMirror/installers/mm.sh and changing npm start to npm run server followed by pm2 restart MagicMirror resolved this for me.

Thank you very much for your hard work!

Cheers,
Griefed