Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error preventing install with sodium #22

Open
nicklanehq opened this issue Apr 15, 2018 · 7 comments
Open

Error preventing install with sodium #22

nicklanehq opened this issue Apr 15, 2018 · 7 comments

Comments

@nicklanehq
Copy link

nicklanehq commented Apr 15, 2018

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

@MrDrache333
Copy link

Allready solved in #5

@L3x1c0n
Copy link

L3x1c0n commented Apr 17, 2018

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.

@MrDrache333
Copy link

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

@L3x1c0n
Copy link

L3x1c0n commented Apr 18, 2018

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
Copy link

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

@nicklanehq
Copy link
Author

@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
Copy link

try
sudo apt-get install build-essential

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants