question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error installing Homebridge on Raspberry Pi 3B

See original GitHub issue

I have already got g+±6, Node.js 6.9.5, and mdns installes on my Raspberry Pi 3B. Yet I cannot install Homebridge using npm install -g homebridge or sudo npm install -g --unsafe-perm homebridge hap-nodejs node-gyp.

The error message is something like this:

make: Entering directory '/lib/node_modules/homebridge/node_modules/ed25519/build'
  CC(target) Release/obj.target/ed25519/src/ed25519/keypair.o
make: cc: Command not found
ed25519.target.mk:139: recipe for target 'Release/obj.target/ed25519/src/ed25519/keypair.o' failed
make: *** [Release/obj.target/ed25519/src/ed25519/keypair.o] Error 127
make: Leaving directory '/lib/node_modules/homebridge/node_modules/ed25519/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.9-v7+
gyp ERR! command "/bin/node" "/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /lib/node_modules/homebridge/node_modules/ed25519
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
/lib
`-- (empty)

npm ERR! Linux 4.4.9-v7+
npm ERR! argv "/bin/node" "/usr/local/bin/npm" "install" "-g" "homebridge"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE

npm ERR! ed25519@0.0.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ed25519@0.0.4 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ed25519 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs ed25519
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls ed25519
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/volumio/npm-debug.log
npm ERR! code 1

…And something else that may be helpful:

pi@SR2k:~$ uname -a
Linux Volumio-SR2k 4.4.9-v7+ #884 SMP Fri May 6 17:28:59 BST 2016 armv7l GNU/Linux
pi@SR2k:~$ cat /proc/version
Linux version 4.4.9-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #884 SMP Fri May 6 17:28:59 BST 2016
pi@SR2k:~$ cat /etc/issue
Raspbian GNU/Linux 8 \n \l

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
bpartridge83commented, Jun 3, 2017

@snowdd1 That’s exactly my output, with the same issue as @SR2k.

0reactions
stale[bot]commented, Dec 17, 2017

This issue has been automatically marked as stale because it has not had recent activity, and will be closed if no further activity occurs. If this issue was overlooked, forgotten, or should remain open for any other reason, please reply here to call attention to it and remove the stale status. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't start homebridge - no errors, no output (Raspberry Pi)
I tried to install homebridge on a raspberry pi 2 using this guide: ... But nothings happens, no error no output. I have...
Read more >
How to Install Homebridge on a Raspberry Pi - MakeUseOf
Once your Pi is on, go back to your computer, and open a web browser. Navigate to homebridge.local. If you're prompted for a...
Read more >
How to Install and Setup Homebridge on Raspberry Pi the ...
How to install and setup Homebridge on a Raspberry Pi from scratch. I'll show you the quick and easy way to get Homebridge...
Read more >
Install Homebridge on Raspberry Pi and Windows - Instructables
1. Homekit is a development package provided by Apple for developers to build Internet of Things (IoT) solutions. This development package enables Apple-built...
Read more >
Error installing Homebridge on Raspberry Pi 3B - - Bountysource
I have already got g++-6, Node.js 6.9.5, and mdns installes on my Raspberry Pi 3B. Yet I cannot install Homebridge using npm install...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found