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

got this when trying to pair #1

Open
llyons92 opened this issue Mar 24, 2018 · 8 comments
Open

got this when trying to pair #1

llyons92 opened this issue Mar 24, 2018 · 8 comments
Labels
question Further information is requested

Comments

@llyons92
Copy link

llyons92 commented Mar 24, 2018

when i run npm install -g node-appletv
i get this

[email protected] preinstall /usr/local/lib/node_modules/node-appletv/node_modules/sodium
node install.js --preinstall

Static libsodium was not found at /usr/local/lib/node_modules/node-appletv/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/node-appletv/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/node-appletv/node_modules/sodium/install.js:287:19)
at ChildProcess.emit (events.js:160: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! /Users/Luke/.npm/_logs/2018-03-24T01_10_00_225Z-debug.log

@evandcoleman evandcoleman added the bug Something isn't working label Mar 26, 2018
@evandcoleman
Copy link
Owner

Try this, for macOS $ brew install libtool autoconf automake, or on Linux $ sudo apt-get install lib tool autoconf automate

@llyons92
Copy link
Author

Will do thanks

@evandcoleman evandcoleman added question Further information is requested and removed bug Something isn't working labels Mar 26, 2018
@evandcoleman
Copy link
Owner

Closing for lack of activity. Reopen if the issue is not resolved.

@llyons92
Copy link
Author

brew: command not found
getting this now

@evandcoleman
Copy link
Owner

Did you try installing homebrew?

@evandcoleman evandcoleman reopened this Apr 22, 2018
@llyons92
Copy link
Author

Installed homebrew,but when trying to install the plugin I get this: n file included from ../src/dns_service_browse.cpp:1:
In file included from ../src/mdns.hpp:12:
In file included from ../node_modules/nan/nan.h:190:
../node_modules/nan/nan_maybe_43_inl.h:88:15: warning: 'ForceSet' is deprecated
[-Wdeprecated-declarations]
return obj->ForceSet(GetCurrentContext(), key, value, attribs);
^
/Users/Luke/.node-gyp/9.4.0/include/node/v8.h:3114:3: note: 'ForceSet' has been explicitly
marked deprecated here
V8_DEPRECATED("Use CreateDataProperty / DefineOwnProperty",
^
/Users/Luke/.node-gyp/9.4.0/include/node/v8config.h:321:29: note: expanded from macro
'V8_DEPRECATED'
declarator attribute((deprecated))
^
1 warning generated.
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_enumerate_domains.o
In file included from ../src/dns_service_enumerate_domains.cpp:1:
In file included from ../src/mdns.hpp:12:
In file included from ../node_modules/nan/nan.h:190:
../node_modules/nan/nan_maybe_43_inl.h:88:15: warning: 'ForceSet' is deprecated
[-Wdeprecated-declarations]
return obj->ForceSet(GetCurrentContext(), key, value, attribs);
^
/Users/Luke/.node-gyp/9.4.0/include/node/v8.h:3114:3: note: 'ForceSet' has been explicitly
marked deprecated here
V8_DEPRECATED("Use CreateDataProperty / DefineOwnProperty",
^
/Users/Luke/.node-gyp/9.4.0/include/node/v8config.h:321:29: note: expanded from macro
'V8_DEPRECATED'
declarator attribute((deprecated))
^

continuously

@llyons92
Copy link
Author

[email protected] install /usr/local/lib/node_modules/homebridge-theater-mode/node_modules/sodium
node install.js --install

echo Build node-sodium module
Build node-sodium module
node defines.js
Extracting DEFINES from Libsodium make file...
Detected system architecture x64
Libsodium Makefile : ./deps/libsodium/Makefile
Please run autogen.sh and configure in ./deps/libsodium directory first
{ Error: ENOENT: no such file or directory, open './deps/libsodium/Makefile'
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: './deps/libsodium/Makefile' }
node-gyp rebuild
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

CXX(target) Release/obj.target/sodium/src/crypto_aead.o
In file included from ../src/crypto_aead.cc:8:
../src/include/node_sodium.h:22:10: fatal error: 'sodium.h' file not found
#include "sodium.h"
^~~~~~~~~~
1 error generated.
make[1]: *** [Release/obj.target/sodium/src/crypto_aead.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:285:23)
gyp ERR! stack at ChildProcess.emit (events.js:160:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Darwin 17.3.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-theater-mode/node_modules/sodium
gyp ERR! node -v v9.4.0
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
make: *** [nodesodium] Error 1
/usr/local/lib/node_modules/homebridge-theater-mode/node_modules/sodium/install.js:287
throw new Error(cmdLine + ' exited with code ' + code);
^

Error: make nodesodium exited with code 2
at ChildProcess. (/usr/local/lib/node_modules/homebridge-theater-mode/node_modules/sodium/install.js:287:19)
at ChildProcess.emit (events.js:160:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
/usr/local/lib
└── (empty)

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.
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! /Users/Luke/.npm/_logs/2018-04-22T01_50_46_884Z-debug.log

@evandcoleman
Copy link
Owner

evandcoleman commented Apr 30, 2018

Do you have Xcode installed? Make sure it is and then run xcode-select --install

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

No branches or pull requests

2 participants