lprhodes / homebridge-apple-tv

Apple TV 4th & 5th gen plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
105 stars 15 forks source link

Error preventing install with sodium #22

Open nicklanehq opened 6 years ago

nicklanehq commented 6 years ago

Hi,

I'm trying to install your plugin to test and am getting the following error in terminal when I run the install command. It's struggling with sodium 2.0.3 during install.

Could there be a dependency I'm missing? I've tried installing it separately, but this has had no impact on my ability to successfully install your plugin.

In reading your instructions, I am running NodeJS 9.10.1, which I believe should work.

Any help or guidance is appreciated. Thanks!


Static libsodium was not found at /usr/local/lib/node_modules/homebridge-apple-tv/node_modules/sodium/deps/build/lib/libsodium so compiling libsodium from source. libtool is required, but wasn't found on this system make: *** [libsodium] Error 1 /usr/local/lib/node_modules/homebridge-apple-tv/node_modules/sodium/install.js:287 throw new Error(cmdLine + ' exited with code ' + code); ^

Error: make libsodium exited with code 2 at ChildProcess. (/usr/local/lib/node_modules/homebridge-apple-tv/node_modules/sodium/install.js:287:19) at ChildProcess.emit (events.js:180:13) at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sodium@2.0.3 preinstall: node install.js --preinstall npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sodium@2.0.3 preinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-04-15T21_08_58_421Z-debug.log

MrDrache333 commented 6 years ago

Allready solved in #5

L3x1c0n commented 6 years ago

I'm not able to follow the solution along on Windows... any assistance?

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sodium@2.0.3 install: node install.js --install npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sodium@2.0.3 install script.

MrDrache333 commented 6 years ago

On Linux you can install it by install some tools first... apt-get install autoconf automake g++ libtool

L3x1c0n commented 6 years ago

Yeah I’m not running my homebridge on Linux though, which is why I specifically asked about Windows... so thanks in advance if you can help on Windows

amatrosovas commented 6 years ago

Interested in this as well since I have my homebridge running on windows

nicklanehq commented 6 years ago

@MrDrache333 I've tried your solution above for libtool, but I'm now stuck on a new error regarding resolvconf:

Processing triggers for libc-bin (2.19-0ubuntu6.14) ... Errors were encountered while processing: resolvconf E: Sub-process /usr/bin/dpkg returned an error code (1)

mdimai666 commented 4 years ago

try sudo apt-get install build-essential