lukasroegner / homebridge-apple-tv-remote

Plugin for controlling Apple TVs in homebridge.
MIT License
131 stars 13 forks source link

Install Failed on Homebridge Docker #116

Closed mjraider13 closed 2 years ago

mjraider13 commented 2 years ago

I have homebridge running in a docker container (https://registry.hub.docker.com/r/oznu/homebridge/). Attempted install your plugin via the homebridge UI, got the following errors:

USER: root DIR: /homebridge CMD: npm install --save homebridge-apple-tv@latest

npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated github-version-checker@1.2.0: Versions below v2.0.0 are outdated and should not be used anymore. Please consider upgrading to the latest release, which is v2.2.0 at this time. npm ERR! code 1 npm ERR! path /homebridge/node_modules/homebridge-apple-tv/node_modules/sodium npm ERR! command failed npm ERR! command sh -c node install.js --preinstall npm ERR! Static libsodium was not found at /homebridge/node_modules/homebridge-apple-tv/node_modules/sodium/deps/build/lib/libsodium so compiling libsodium from source. npm ERR! libtool is required, but wasn't found on this system npm ERR! make: *** [Makefile:62: libsodium] Error 1 npm ERR! /homebridge/node_modules/homebridge-apple-tv/node_modules/sodium/install.js:293 npm ERR! throw new Error(cmdLine + ' exited with code ' + code); npm ERR! ^ npm ERR! npm ERR! Error: make libsodium exited with code 2 npm ERR! at ChildProcess. (/homebridge/node_modules/homebridge-apple-tv/node_modules/sodium/install.js:293:19) npm ERR! at ChildProcess.emit (node:events:390:28) npm ERR! at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-12-24T17_43_43_543Z-debug.log

Command failed. Please review log for details.