• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-AssistantMk2 problems when using electron-rebuild

Scheduled Pinned Locked Moved Troubleshooting
40 Posts 6 Posters 17.4k Views 6 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    A Former User @Xintium
    last edited by A Former User Aug 13, 2018, 6:09 AM Aug 12, 2018, 6:12 PM

    @xintium
    You need module to rebuild.

    npm install --save-dev electron-rebuild
    ./node_modules/.bin/electron-rebuild
    

    If you tried already, something was wrong so rebuilding process might have been failed.
    Have you any suspicious messages during your rebuilds?

    X 1 Reply Last reply Aug 12, 2018, 6:46 PM Reply Quote 0
    • X Offline
      Xintium @Guest
      last edited by Aug 12, 2018, 6:46 PM

      @sean I get this message when trying to use electron-rebuild

      make: *** Ingen regel för att skapa målet ”Release/obj.target/grpc/deps/grpc/src/cpp/ext/filters/census/grpc_context.o”, som behövs av ”Release/obj.target/libgrpc.a”.  Stannar.
      make: Lämnar katalogen ”/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/build”
      gyp ERR! build error 
      gyp ERR! stack Error: `make` failed with exit code: 2
      gyp ERR! stack     at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/lib/build.js:262:23)
      gyp ERR! stack     at ChildProcess.emit (events.js:180:13)
      gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
      gyp ERR! System Linux 4.14.52-v7+
      gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/.bin/node-gyp" "rebuild" "--target=2.0.0" "--arch=arm" "--dist-url=https://atom.io/download/electron" "--build-from-source" "--module_name=grpc_node" "--module_path=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc" "--host=https://node-precompiled-binaries.grpc.io/" "--remote_path={name}/v1.14.0" "--package_name=electron-v2.0-linux-arm-glibc.tar.gz"
      gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc
      gyp ERR! node -v v9.11.2
      gyp ERR! node-gyp -v v3.8.0
      gyp ERR! not ok 
      
      Failed with exit code: 1
          at SafeSubscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/spawn-rx/lib/src/index.js:277:84)
          at SafeSubscriber.__tryOrUnsub (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:242:16)
          at SafeSubscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:201:26)
          at Subscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:132:26)
          at Subscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:106:18)
          at MapSubscriber.Subscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:132:26)
          at MapSubscriber.Subscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:106:18)
          at SafeSubscriber._next (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/spawn-rx/lib/src/index.js:251:65)
          at SafeSubscriber.__tryOrSetError (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:251:16)
          at SafeSubscriber.next (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:191:27)
      
      ? 1 Reply Last reply Aug 12, 2018, 8:20 PM Reply Quote 0
      • ? Offline
        A Former User @Xintium
        last edited by A Former User Aug 13, 2018, 6:09 AM Aug 12, 2018, 8:20 PM

        @xintium
        For confirmation,

        1. Did you update & upgrade dependencies?
        2. After that, did you remove MMM-AssistantMk2 directory and reinstall again?

        Your error shows some of your dependencies are not updated to rebuild.
        In that case, usually above steps are enough to fix.

        Maybe this might be a help, but not sure.

        sudo apt-get install build-essential 
        sudo npm install -g node-gyp
        
        1 Reply Last reply Reply Quote 0
        • L Offline
          logen563
          last edited by Aug 14, 2018, 6:58 AM

          Hello!

          I have this error, when trying to run the node_auth_test.js

          Error: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.21’ not found (required by /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/node-v48-linux-arm-glibc/grpc_node.node)

          Can you give some advise how to solve this?
          Thanks

          ? 1 Reply Last reply Aug 14, 2018, 7:07 AM Reply Quote 0
          • ? Offline
            A Former User @logen563
            last edited by Aug 14, 2018, 7:07 AM

            @logen563
            Your GCC seems out of date.
            Which RPI and OS are you using?

            Try this, then reinstall again.

            sudo apt-get update
            sudo apt-get upgrade
            
            1 Reply Last reply Reply Quote 0
            • L Offline
              logen563
              last edited by Aug 14, 2018, 7:09 AM

              Thanks for the quick replay!
              Will try the reinstall, the update/upgrade didn’t solved the issue.
              I’m using rpi3, with raspbian jessie light.

              ? 1 Reply Last reply Aug 14, 2018, 7:12 AM Reply Quote 0
              • ? Offline
                A Former User @logen563
                last edited by A Former User Aug 14, 2018, 7:15 AM Aug 14, 2018, 7:12 AM

                @logen563
                I have no experience about Jessie Lite. But by some researching, I’ve found this;
                https://github.com/doublethinkco/cpp-ethereum-cross/issues/79

                Suggested solution is to upgrade your gcc-5

                And, As I know, Raspbian Stretch (next version of Jessie) has no problem about this.

                1 Reply Last reply Reply Quote 0
                • L Offline
                  logen563
                  last edited by Aug 14, 2018, 7:18 AM

                  Thanks for the replay, I will try that and will let you know :)

                  1 Reply Last reply Reply Quote 0
                  • L Offline
                    logen563
                    last edited by Aug 14, 2018, 10:50 AM

                    Thanks for the link! After updating with the stretch gcc-5, its working:) but I see I have to move on to the Stretch distro.

                    ? 1 Reply Last reply Aug 14, 2018, 1:24 PM Reply Quote 0
                    • ? Offline
                      A Former User @logen563
                      last edited by Aug 14, 2018, 1:24 PM

                      @logen563
                      If you leave details here, I’ll add it to github repository for others. Thanks.

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 2 / 4
                      2 / 4
                      • First post
                        11/40
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy