homebridge-apple-tv icon indicating copy to clipboard operation
homebridge-apple-tv copied to clipboard

Error preventing install with sodium

Open nicklanehq opened this issue 6 years ago • 7 comments

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! [email protected] preinstall: node install.js --preinstall npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] 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

nicklanehq avatar Apr 15 '18 21:04 nicklanehq

Allready solved in #5

MrDrache333 avatar Apr 16 '18 03:04 MrDrache333

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

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] install: node install.js --install npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script.

L3x1c0n avatar Apr 17 '18 06:04 L3x1c0n

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

MrDrache333 avatar Apr 17 '18 18:04 MrDrache333

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

L3x1c0n avatar Apr 18 '18 09:04 L3x1c0n

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

amatrosovas avatar Apr 18 '18 10:04 amatrosovas

@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)

nicklanehq avatar Apr 21 '18 16:04 nicklanehq

try sudo apt-get install build-essential

mdimai666 avatar Jun 30 '20 06:06 mdimai666