atom-archive / node-runas

Run command synchronously (with Administrator privilege)
MIT License
47 stars 20 forks source link

error when building `slap` with Node.js 4.4.0 #23

Closed piranna closed 6 years ago

piranna commented 8 years ago
> runas@3.1.1 install /home/piranna/NodeOS/node_modules/nodeos-usersfs/obj/nocona/nodeos/lib/node_modules/slap/node_modules/base-widget/node_modules/text-buffer/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild

make: se entra en el directorio '/home/piranna/NodeOS/node_modules/nodeos-usersfs/obj/nocona/nodeos/lib/node_modules/slap/node_modules/base-widget/node_modules/text-buffer/node_modules/pathwatcher/node_modules/runas/build'
  CXX(target) Release/obj.target/runas/src/main.o
  CXX(target) Release/obj.target/runas/src/runas_posix.o
  CXX(target) Release/obj.target/runas/src/fork.o
In file included from ../../nan/nan.h:150:0,
                 from ../src/main.cc:1:
../../nan/nan_callbacks.h:83:61: fatal error: nan_callbacks_12_inl.h: No such file or directory
compilation terminated.
runas.target.mk:92: fallo en las instrucciones para el objetivo 'Release/obj.target/runas/src/main.o'
make: *** [Release/obj.target/runas/src/main.o] Error 1
make: *** Se espera a que terminen otras tareas....
make: se sale del directorio '/home/piranna/NodeOS/node_modules/nodeos-usersfs/obj/nocona/nodeos/lib/node_modules/slap/node_modules/base-widget/node_modules/text-buffer/node_modules/pathwatcher/node_modules/runas/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/piranna/NodeOS/node_modules/nodeos-barebones/deps/node/deps/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.4.0-12-generic
gyp ERR! command "/usr/bin/nodejs" "/home/piranna/NodeOS/node_modules/nodeos-barebones/deps/node/deps/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/piranna/NodeOS/node_modules/nodeos-usersfs/obj/nocona/nodeos/lib/node_modules/slap/node_modules/base-widget/node_modules/text-buffer/node_modules/pathwatcher/node_modules/runas
gyp ERR! node -v v4.4.0
gyp ERR! node-gyp -v v3.3.0
gyp ERR! not ok 

npm ERR! Linux 4.4.0-12-generic
npm ERR! argv "/usr/bin/nodejs" "/home/piranna/NodeOS/node_modules/nodeos-barebones/deps/node/deps/npm/cli.js" "install" "--quiet" "--no-spin" "--arch=x64" "--nodedir=/home/piranna/NodeOS/node_modules/nodeos-usersfs/../nodeos-barebones/deps/node" "--jobs=5" "-g" "npm" "bin-sh" "piranna/nsh#patch-1" "bin-man" "bin-fs" "bin-pwd" "pstree" "NodeOS/ip" "ntp-client" "dhcpjs" "NodeOS/ifconfig" "node-wget" "slap" "performance" "loadtest" "davius"
npm ERR! node v4.4.0
npm ERR! npm  v2.14.20
npm ERR! code ELIFECYCLE

npm ERR! runas@3.1.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the runas@3.1.1 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the runas 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 information on how to open an issue for this project with:
npm ERR!     npm bugs runas
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! 
npm ERR!     npm owner ls runas
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/piranna/NodeOS/node_modules/nodeos-usersfs/npm-debug.log

The same dependency is being used by other ones and they compile sucesfully. Seems it's related to the fact that node-runas has nan as dependency, since it's now included in Node.js I would remove it an use the bundled one.

piranna commented 8 years ago

Any update on this?

lee-dohm commented 6 years ago

All repositories in the atom-archive organization are unmaintained and deprecated. Because of this, we are archiving this repository and closing all issues and pull requests. Thanks very much for your support and contributions!