Mainframe-Archive / mainframe-os

Mainframe OS
https://mainframeos.com
MIT License
45 stars 9 forks source link

sodium-native/prebuilds/linux-x64/electron-64.node: undefined symbol #379

Closed Robsonsjre closed 5 years ago

Robsonsjre commented 5 years ago

Description

Im using linux and trying to compile and run Mainframe OS from source following this instructions and after running:

yarn run dev inside the /packages/launcher

it shows the error:

/home/robsonsjre/Projects/mainframe-os/packages/launcher/node_modules/electron/dist/electron --inspect=5858 /home/robsonsjre/Projects/mainframe-os/packages/launcher/dist/main/main.js: symbol lookup error: /home/robsonsjre/Projects/mainframe-os/packages/launcher/node_modules/sodium-native/prebuilds/linux-x64/electron-64.node: undefined symbol: _ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE

image

How to Reproduce

  1. Use linux, compile and run from source
  2. git clone https://github.com/MainframeHQ/mainframe-os.git
  3. cd mainframe-os
  4. git checkout release-v0.2
  5. yarn install in the root
  6. yarn install in each packages/folder (#377)
  7. yarn build
  8. packages/cli/bin/run env:create
  9. packages/cli/bin/run daemon:setup --bin-path=./packages/daemon/bin/run
  10. ./packages/cli/bin/run daemon:start
  11. cd packages/launcher && yarn run dev

Enviroment

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.5 LTS
Release:    16.04
Codename:   xenial
Node version: 10.15.3
Npm version: 6.4.1
Robsonsjre commented 5 years ago

updated the electron version to 4.0.4 in the package.json inside packages/launcher and worked! found similar issue here: https://github.com/sodium-friends/sodium-native/issues/90