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

Installation using native Synology DSM 7 Homebridge not working #134

Open
wbuschha opened this issue May 4, 2023 · 13 comments
Open

Installation using native Synology DSM 7 Homebridge not working #134

wbuschha opened this issue May 4, 2023 · 13 comments

Comments

@wbuschha
Copy link

wbuschha commented May 4, 2023

When I have tried to install the TCC plugin in the native Homebridge version for DSM 7, the installation does not finish and reports a long list of errors. Sorry, I didn’t record the error details. Rather, I switched back to the Oznu/Homebridge version within Docker, and that works fine.

@patrick131
Copy link

My DSM 7 fails with this:
USER: homebridge
DIR: /volume1/homebridge
CMD: npm install --save homebridge-tcc@0.2.34

[##################] - reify:googleapis: timing reifyNode:node_modules/homebridge-tcc/

node-expat@2.4.0 install
node-gyp rebuild

gyp ERR! build error - reify:googleapis: timing reifyNode:node_modules/homebridge-tcc/
gyp ERR! stack Error: not found: make
gyp ERR! stack at getNotFoundError (/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/which/which.js:10:17)
gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/which/which.js:57:18
gyp ERR! stack at new Promise ()
gyp ERR! stack at step (/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/which/which.js:54:21)
gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/which/which.js:71:22
gyp ERR! stack at new Promise ()
gyp ERR! stack at subStep (/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/which/which.js:69:33)
gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/which/which.js:80:22
gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/isexe/index.js:42:5
gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
gyp ERR! System Linux 4.4.302+
gyp ERR! command "/volume1/@appstore/homebridge/app/bin/node" "/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /volume1/homebridge/node_modules/homebridge-tcc/node_modules/node-expat
gyp ERR! node -v v17.9.1
gyp ERR! node-gyp -v v9.0.0
gyp ERR! not ok
npm ERR! code 1
npm ERR! path /volume1/homebridge/node_modules/homebridge-tcc/node_modules/node-expat
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild

npm ERR! A complete log of this run can be found in:
npm ERR! /var/packages/homebridge/home/.npm/_logs/2023-05-28T20_26_26_998Z-debug-0.log

Operation failed. Please review log for details.

@patrick131
Copy link

Any help would be greatly appreciated. It was working fine on my 2009 MacPro that I'm retiring.

@NorthernMan54
Copy link
Owner

@patrick131 homebridge-tcc leverages node-gyp to compile code needed for the plugin to operate. And the Synology environment does not support this without making changes to your setup. If you google node-gyp synology dsm you can see a few guides.

@wbuschha
Copy link
Author

wbuschha commented May 30, 2023 via email

@patrick131
Copy link

Much appreciated, looking into this now!

@tc8
Copy link

tc8 commented May 30, 2023

Please correct me if I'm wrong but the problem seems to be that make isn't available, rather than node-gyp not being available.

I have node-gyp available but not make and I cannot install this plugin.

Is make bundled with node-gyp? Or does it have to be installed separately?

@NorthernMan54
Copy link
Owner

Make is a compiler tool that is needed with node-gyp, but not included

@wbuschha
Copy link
Author

wbuschha commented Jun 5, 2023 via email

@refactoringdr
Copy link

Even with the upgraded Node.js, I'm getting failures on my DSM 7 system. Looks like something's messed up with libpthread:

[7/31/2023, 3:16:23 PM] ====================
[7/31/2023, 3:16:23 PM] ERROR LOADING PLUGIN homebridge-tcc:
[7/31/2023, 3:16:23 PM] Error: /opt/lib/libpthread.so.0: undefined symbol: __libc_vfork, version GLIBC_PRIVATE
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1338:18)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Function.Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at bindings (/volume1/homebridge/node_modules/homebridge-tcc/node_modules/bindings/bindings.js:112:48)
    at Object.<anonymous> (/volume1/homebridge/node_modules/homebridge-tcc/node_modules/node-expat/lib/node-expat.js:4:34)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Function.Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (/volume1/homebridge/node_modules/homebridge-tcc/node_modules/xml2json/lib/xml2json.js:1:13)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Function.Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (/volume1/homebridge/node_modules/homebridge-tcc/node_modules/xml2json/lib/index.js:3:18)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
[7/31/2023, 3:16:23 PM] ====================```

@NorthernMan54
Copy link
Owner

As I don't have a DSM, I'm not able to troubleshoot this.

@Demoleon63
Copy link

Trying to install in Synology DS1821+ with DSM 7.2.1. and no go. I installed Entware and re-tried but no luck. In the log it is looking for something called Make? Not sure what it is or how to install it on the NAS. Anyone have any luck installing this?

@NorthernMan54
Copy link
Owner

@Demoleon63 did you try this ? #134 (comment)

@Demoleon63
Copy link

Yes. Both the Entware and the Apache make script were installed but still no go. Looks like same error message as before.

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

6 participants