homebridge-theater-mode icon indicating copy to clipboard operation
homebridge-theater-mode copied to clipboard

LIbsodium and libtools error constantly unable to install

Open jblakeney82 opened this issue 6 years ago • 22 comments

Hello,

This plugin will not install. I have followed every instruction and troubleshooting guide on the web and still nothing. I keep getting the libtools and libsodium errors as in they don't exist however they have been installed and show up to date with the current version.

Not sure what else can be done. REALLY want to get this plugin to work.

please help thanks!

jblakeney82 avatar Oct 19 '18 13:10 jblakeney82

If you running on a mac; try installing automake using Homebridge

brew install automake

lyret avatar Nov 22 '18 20:11 lyret

no does not help, any other ideas?

Moonmonkey-Beep avatar Jan 11 '19 20:01 Moonmonkey-Beep

You guys or anyone actually able to get this plugin to work? Been months of trying everything on the web and no results

On Jan 11, 2019, at 1:56 PM, Tom Woodhams [email protected] wrote:

no does not help, any other ideas?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/edc1591/homebridge-theater-mode/issues/11#issuecomment-453653929, or mute the thread https://github.com/notifications/unsubscribe-auth/AdQFgsQGkPrrAzymFSTs6vKnl29RrjH9ks5vCPp7gaJpZM4XwXMQ.

jblakeney82 avatar Jan 11 '19 21:01 jblakeney82

no luck here, identical issue as you (MacOS 10.14.1)

Moonmonkey-Beep avatar Jan 11 '19 21:01 Moonmonkey-Beep

I’m running a Pi actually but same thing, even with the other DACP or AppleTV plugins, all the same type of error

On Jan 11, 2019, at 2:02 PM, Tom Woodhams [email protected] wrote:

no luck here, identical issue as you (MacOS 10.14.1)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/edc1591/homebridge-theater-mode/issues/11#issuecomment-453655439, or mute the thread https://github.com/notifications/unsubscribe-auth/AdQFgptKNu7VCSthrUqZeVGz8ac4loc5ks5vCPvtgaJpZM4XwXMQ.

jblakeney82 avatar Jan 11 '19 21:01 jblakeney82

I had it running and also dacp on a pi. It used to work although a bit slow. That is why I switched to dacp because my hue lights react much faster on play pause events with the dacp plugin. Then at some point dacp stopped working. I then checked theater-mode and it has also stopped working. My guess is a tvOS update is the cause.

ptrvg avatar Jan 11 '19 21:01 ptrvg

homebridge-plex-sensors still works if it helps.

Moonmonkey-Beep avatar Jan 11 '19 21:01 Moonmonkey-Beep

Yeah I am not a fan of plex and I was using that as well and then stopped working haha I removed and re added and changed ports and web hooks etc.. and no dice.

Thanks for the help!

On Jan 11, 2019, at 2:15 PM, Tom Woodhams [email protected] wrote:

homebridge-plex-sensors still work if it helps.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/edc1591/homebridge-theater-mode/issues/11#issuecomment-453658911, or mute the thread https://github.com/notifications/unsubscribe-auth/AdQFgunFcjXl7jtoTZ8gf_nHKPo68T2Uks5vCP79gaJpZM4XwXMQ.

jblakeney82 avatar Jan 11 '19 21:01 jblakeney82

Can you post the actual error you're getting?

evandcoleman avatar Jan 31 '19 00:01 evandcoleman

Thanks for the reply.

Just ran the install with unsafe perm again and now it went through a long installation process but still ended with Sodium errors

Error: make nodesodium exited with code null at ChildProcess. (/opt/nodejs/lib/node_modules/homebridge-theater-mode/node_modules/sodium/install.js:287:19) at ChildProcess.emit (events.js:182:13) at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12) 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! /root/.npm/_logs/2019-02-02T22_45_17_820Z-debug.log pi@raspberrypi:~ $

On Jan 30, 2019, at 5:18 PM, Evan Coleman [email protected] wrote:

Can you post the actual error you're getting?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/edc1591/homebridge-theater-mode/issues/11#issuecomment-459164250, or mute the thread https://github.com/notifications/unsubscribe-auth/AdQFguCswimpJpE_zG6Uk_Miw_Iwd2tUks5vIjZOgaJpZM4XwXMQ.

jblakeney82 avatar Feb 02 '19 22:02 jblakeney82

I get this before any installation of Homebridge-Apple-tv, or DACP or Home theater mode

[email protected] preinstall /opt/nodejs/lib/node_modules/homebridge-apple-tv/node_modules/sodium node install.js --preinstall

Static libsodium was not found at /opt/nodejs/lib/node_modules/homebridge-apple-tv/node_modules/sodium/deps/build/lib/libsodium so compiling libsodium from source.

Then it goes through an installation and check of many things but ultimately fails with sodium still

On Jan 30, 2019, at 5:18 PM, Evan Coleman [email protected] wrote:

Can you post the actual error you're getting?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/edc1591/homebridge-theater-mode/issues/11#issuecomment-459164250, or mute the thread https://github.com/notifications/unsubscribe-auth/AdQFguCswimpJpE_zG6Uk_Miw_Iwd2tUks5vIjZOgaJpZM4XwXMQ.

jblakeney82 avatar Feb 03 '19 17:02 jblakeney82

Same problem here - libsodium installation fails. Seems this plugin depends on a really old version of libsodium. I believe that probably the same issue was present with another plugin and was solved by changing the dependency. See here: https://github.com/lprhodes/homebridge-apple-tv/issues/43#issuecomment-449105662

@edc1591, maybe this is the same problem that you can fix in a similar way?

MBarti avatar Mar 04 '19 21:03 MBarti

Do you know the Libsodium version required?

Sent from my iPhone

On Mar 4, 2019, at 2:42 PM, MBarti [email protected] wrote:

Same problem here - libsodium installation fails. Seems this plugin depends on a really old version of libsodium. I believe that probably the same issue was present with another plugin and was solved by changing the dependency. See here: lprhodes/homebridge-apple-tv#43 (comment)

@edc1591, maybe this is the same problem that you can fix in a similar way?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

jblakeney82 avatar Mar 04 '19 21:03 jblakeney82

Oh, it seems the guy that fixed the other plugin also forked and possibly fixed this one... https://github.com/pponce/homebridge-theater-mode

He updated the dependency to his own fork of node-appletv, which in turn updates the libsodium dependency to version 3.0.1

MBarti avatar Mar 04 '19 22:03 MBarti

Ok, got it working now! Took 1h and multiple warnings for some reason, but it finally installed. Looks like many people forked this plugin to fix the dependency, e.g. also here: https://github.com/mitchelp/homebridge-theater-mode

Try: npm install -g pponce/homebridge-theater-mode --unsafe-perm or: npm install -g mitchelp/homebridge-theater-mode --unsafe-perm

MBarti avatar Mar 05 '19 00:03 MBarti

Did you do this with the current libsodium version?

Sent from my iPhone

On Mar 4, 2019, at 5:04 PM, MBarti [email protected] wrote:

Ok, got it working now! Took 1h and multiple warnings for some reason, but it finally installed. Looks like many people forked this plugin to fix the dependency, e.g. also here: https://github.com/mitchelp/homebridge-theater-mode

Try: npm install -g pponce/homebridge-theater-mode --unsafe-perm or: npm install -g mitchelp/homebridge-theater-mode --unsafe-perm

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

jblakeney82 avatar Mar 05 '19 00:03 jblakeney82

I didn't do anything - just installed the fork of the homebridge-theater-mode plugin with the above command and it worked.

Unfortunately the plugin itself is very slow - sometimes 20-30 seconds for the status to update :(

MBarti avatar Mar 05 '19 10:03 MBarti

Neither the fork from ponce or mitchelp worked for me, still get the same sodium error message which others have posted here.

StefaanD avatar Mar 05 '19 18:03 StefaanD

I also upgraded my node version before installation, to the latest one 11.10.1, maybe that will help you? Warning: it requires all other home bridge plugins to be rebuilt or reinstalled. https://thisdavej.com/upgrading-to-more-recent-versions-of-node-js-on-the-raspberry-pi/

MBarti avatar Mar 11 '19 13:03 MBarti

As this issue has not been resolved and the plug-in has not been updated in a year, Is it safe to assume that this plug-in is dead.

gmum4d avatar Aug 06 '19 15:08 gmum4d

Good morning all ! I dig up the subject to find out if some have solved the problem with sodium? This plugin is really useful and will be more and more! @evandcoleman , do you think you can fix the bugs?

andeoldemeu avatar Jul 21 '21 08:07 andeoldemeu

Sadly still not working with sodium error

Jorick-tv avatar Nov 02 '22 20:11 Jorick-tv