npm and shiny-server

bsd4me

Well-Known Member
Hallo Leute,

mal wieder ein Experiment, da Shiny-Server Installation nur unter Linux beschrieben ist. Also habe ich da mal eine jail aufgesetzt und das ganze dann gestartet. R-3.0.2 ist ja vorhanden... Nun meine Fehlersituation:

[root@shiny:~] # npm -g install shiny-server
npm WARN engine log4js@0.5.8: wanted: {"node":"~0.6||~0.8"} (current: {"node":"0.10.33","npm":"2.1.16"})

> unixgroups@0.1.0 install /usr/local/lib/node_modules/shiny-server/node_modules/unixgroups
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.33"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/shiny-server/node_modules/unixgroups/.node-gyp"
gyp ERR! build error
gyp ERR! stack Error: not found: gmake
gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:38:28)
gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:41:29)
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:52:16
gyp ERR! stack at Object.oncomplete (fs.js:107:15)
gyp ERR! System FreeBSD 10.1-RELEASE-p5
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/shiny-server/node_modules/unixgroups
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! FreeBSD 10.1-RELEASE-p5
npm ERR! argv "node" "/usr/local/bin/npm" "-g" "install" "shiny-server"
npm ERR! node v0.10.33
npm ERR! npm v2.1.16
npm ERR! code ELIFECYCLE

npm ERR! unixgroups@0.1.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the unixgroups@0.1.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the unixgroups package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls unixgroups
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /root/npm-debug.log


Das wäre klasse, wenn mir jemand einen Tipp geben könnte .-)

Grüße, Norbert
 
Danke - aber da fehlte noch g++, habe einfacherweise den link /usr/local/bin/g++48 -> /usr/local/bin/g++ gesetzt... aber auch das führte leider zu keinem Ende :-(

gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/shiny-server/.node-gyp"
gmake: Entering directory '/usr/local/lib/node_modules/shiny-server/build'
CXX(target) Release/obj.target/posix/src/posix.o
../src/posix.cc: In function 'v8::Handle<v8::Value> GetGroupList(const v8::Arguments&)':
../src/posix.cc:105:49: error: invalid conversion from 'result_t* {aka int*}' to 'gid_t* {aka unsigned int*}' [-fpermissive]
err = getgrouplist(*name, gid, groups, &ngrp);
^
In file included from ../src/posix.cc:16:0:
/usr/local/lib/gcc48/gcc/x86_64-portbld-freebsd10.0/4.8.3/include-fixed/unistd.h:517:6: error: initializing argument 3 of 'int getgrouplist(const char*, gid_t, gid_t*, int*)' [-fpermissive]
int getgrouplist(const char *, gid_t, gid_t *, int *);
^
posix.target.mk:81: recipe for target 'Release/obj.target/posix/src/posix.o' failed
gmake: *** [Release/obj.target/posix/src/posix.o] Error 1
gmake: Leaving directory '/usr/local/lib/node_modules/shiny-server/build'
gyp ERR! build error
gyp ERR! stack Error: `gmake` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System FreeBSD 10.1-RELEASE-p5
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/shiny-server

das gleiche mit clang, also in der tcsh vorher setzt
setenv CC cc
setenv CXX c++

gleiches Ergebnis...
 
Back
Top