NEWS
Js-controller drüberinstallieren
-
Ich bekam heute mal wieder Probleme als normaler User mit sudo den js-controller upzudaten.
Also als root eingeloggt und npm install iobroker.js-controller eingegeben.
Lief gut durch bis zu einem fatal Error. So etwas habe ich noch nie gehabt.
! ````
npm WARN deprecated localhost.daplie.com-certificates@1.2.5: Moved to localhost.daplie.me-certificates
! > authenticate-pam@1.0.2 install /opt/iobroker/node_modules/authenticate-pam
node-gyp rebuild
! make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/build“ wird betreten
CXX(target) Release/obj.target/authenticate_pam/authenticate_pam.o
../authenticate_pam.cc:30:31: fatal error: security/pam_appl.h: Datei oder Verzeichnis nicht gefunden
#include <security pam_appl.h="">^
compilation terminated.
authenticate_pam.target.mk:94: die Regel für Ziel „Release/obj.target/authenticate_pam/authenticate_pam.o“ scheiterte
make: *** [Release/obj.target/authenticate_pam/authenticate_pam.o] Fehler 1
make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/build“ wird verlassen
gyp ERR! build error
gyp ERR! stack Error:make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:194:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.9.0-2-amd64
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/iobroker/node_modules/authenticate-pam
gyp ERR! node -v v7.7.3
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
! > iobroker.js-controller@0.17.2 install /opt/iobroker/node_modules/iobroker.js-controller
node iobroker.js setup first
! iobroker.core@0.1.0 /opt/iobroker
└── iobroker.js-controller@0.17.2
! npm WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 (node_modules/authenticate-pam):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 install:node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
root@ioBroker-NUC:/opt/iobroker#</security>Zur Ehrenrettung: Debian 9 nodejs 7 :D :D Gruß Rainer
-
laut google:
apt-get install libpam0g-dev
… gehts dann?
-
… gehts dann? `
Ehrlich???Es läuft trotzdem - ich würde im Moment nicht gerne etwas dran ändern, weil meine anderen Installationen auch fast alle gerade zicken
Gruß
Rainer
-
naja der Fehler kommt von einer optionalen Dependency … also ist es "ok" wenn es fehltschlägt.
Effektiv will er was kompilieren und braucht dazu eine ".h" Datei ... die ist in dem genannten Paket drin ... wenn man Google glaubt
Sollte also
-
laut google:
apt-get install libpam0g-dev
… gehts dann? `
Ohh man. Wie lange nervt mich dieser Fehler. Ja - selbst andere Geräte kaufte ich mir. Hat mich bestimmt schon 300€ gekostet.
Dieser Befehl und die Befehle:
npm config set unsafe-perm true npm install authenticate-pam
Sorgen nun für Ruhe.
Nimmt das Bitte unbedingt in alle Unixbasierte Beschreibungen auf.
So long,
Fitti