OpenSOC / opensoc-ui

User interface for OpenSOC
Apache License 2.0
100 stars 55 forks source link

Unable to compile opensoc-ui #23

Open sainib opened 9 years ago

sainib commented 9 years ago

When kicking off -- npm install -g opensoc-ui --, I get the following errors. Any inputs are appreciated.


npm http GET https://registry.npmjs.org/shortstop-handlers npm http 304 https://registry.npmjs.org/compressible npm http 304 https://registry.npmjs.org/csrf npm http GET https://registry.npmjs.org/acorn npm http GET https://registry.npmjs.org/acorn-globals npm http GET https://registry.npmjs.org/stream-counter flock ./Release/linker.lock g++ -shared -pthread -rdynamic -m64 -Wl,-soname=bufferutil.node -o Release/obj.target/bufferutil.node -Wl,--start-group Release/obj.target/bufferutil/src/bufferutil.o -Wl,--end-group SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished ln -f "Release/obj.target/bufferutil.node" "Release/bufferutil.node" 2>/dev/null || (rm -rf "Release/bufferutil.node" && cp -af "Release/obj.target/bufferutil.node" "Release/bufferutil.node") g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/usr/include -I/usr/include/node -I../node_modules/nan -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-omit-frame-pointer -fno-rtti -fno-exceptions -MMD -MF ./Release/.deps/Release/obj.target/validation/src/validation.o.d.raw -c -o Release/obj.target/validation/src/validation.o ../src/validation.cc npm http GET https://registry.npmjs.org/promise npm http GET https://registry.npmjs.org/css npm http 304 https://registry.npmjs.org/promise npm http 304 https://registry.npmjs.org/mime-db npm http GET https://registry.npmjs.org/crc/3.3.0 npm http GET https://registry.npmjs.org/uid-safe npm http 304 https://registry.npmjs.org/nipple npm http 304 https://registry.npmjs.org/minimist npm http 304 https://registry.npmjs.org/acorn-globals npm http 304 https://registry.npmjs.org/acorn npm http 304 https://registry.npmjs.org/stream-counter npm http GET https://registry.npmjs.org/iconv-lite/0.4.11 npm http GET https://registry.npmjs.org/raw-body npm http 304 https://registry.npmjs.org/shortstop flock ./Release/linker.lock g++ -shared -pthread -rdynamic -m64 -Wl,-soname=validation.node -o Release/obj.target/validation.node -Wl,--start-group Release/obj.target/validation/src/validation.o -Wl,--end-group npm http 304 https://registry.npmjs.org/hapi npm http 304 https://registry.npmjs.org/shortstop-handlers SOLINK_MODULE(target) Release/obj.target/validation.node: Finished ln -f "Release/obj.target/validation.node" "Release/validation.node" 2>/dev/null || (rm -rf "Release/validation.node" && cp -af "Release/obj.target/validation.node" "Release/validation.node") make: Leaving directory `/usr/local/lib/node_modules/opensoc-ui/node_modules/ws/build' npm http GET https://registry.npmjs.org/acorn npm http 304 https://registry.npmjs.org/css npm http 304 https://registry.npmjs.org/uid-safe npm http 304 https://registry.npmjs.org/crc/3.3.0 npm http 304 https://registry.npmjs.org/promise npm http GET https://registry.npmjs.org/eyes npm http 304 https://registry.npmjs.org/raw-body npm WARN engine nipple@2.1.0: wanted: {"node":"0.10.x"} (current: {"node":"v4.2.1","npm":"1.3.6"}) npm WARN engine hapi@2.6.0: wanted: {"node":"0.10.x"} (current: {"node":"v4.2.1","npm":"1.3.6"}) npm http GET https://registry.npmjs.org/eventemitter2 npm http GET https://registry.npmjs.org/lazy npm http 304 https://registry.npmjs.org/is-promise npm http 304 https://registry.npmjs.org/acorn npm http GET https://registry.npmjs.org/deep-equal npm http GET https://registry.npmjs.org/i npm http GET https://registry.npmjs.org/ncp npm http GET https://registry.npmjs.org/rimraf npm http 304 https://registry.npmjs.org/eyes npm http 304 https://registry.npmjs.org/lazy npm http 304 https://registry.npmjs.org/deep-equal npm http 304 https://registry.npmjs.org/i npm http 304 https://registry.npmjs.org/ncp npm http 304 https://registry.npmjs.org/rimraf npm http 304 https://registry.npmjs.org/iconv-lite/0.4.11 npm http GET https://registry.npmjs.org/base64-url/1.2.1 npm http GET https://registry.npmjs.org/rndm npm http GET https://registry.npmjs.org/scmp/1.0.0 npm http GET https://registry.npmjs.org/minimist/0.0.8 npm http GET https://registry.npmjs.org/wordwrap npm http GET https://registry.npmjs.org/source-map npm http GET https://registry.npmjs.org/uglify-to-browserify npm http GET https://registry.npmjs.org/yargs npm http 304 https://registry.npmjs.org/minimist/0.0.8 npm http 304 https://registry.npmjs.org/base64-url/1.2.1 npm http 304 https://registry.npmjs.org/rndm npm http 304 https://registry.npmjs.org/eventemitter2 npm http 304 https://registry.npmjs.org/wordwrap npm http 304 https://registry.npmjs.org/scmp/1.0.0 npm http 304 https://registry.npmjs.org/source-map npm http 304 https://registry.npmjs.org/yargs npm http 304 https://registry.npmjs.org/uglify-to-browserify npm http GET https://registry.npmjs.org/hoek npm http GET https://registry.npmjs.org/boom npm http GET https://registry.npmjs.org/css-parse/1.0.4 npm http GET https://registry.npmjs.org/css-stringify/1.0.5 npm http GET https://registry.npmjs.org/glob npm http 304 https://registry.npmjs.org/boom npm http 304 https://registry.npmjs.org/hoek npm http GET https://registry.npmjs.org/iconv-lite/0.4.12 npm http GET https://registry.npmjs.org/unpipe/1.0.0 npm http 304 https://registry.npmjs.org/css-parse/1.0.4 npm http GET https://registry.npmjs.org/asap npm http 304 https://registry.npmjs.org/glob npm http 304 https://registry.npmjs.org/iconv-lite/0.4.12 npm http 304 https://registry.npmjs.org/unpipe/1.0.0 npm http GET https://registry.npmjs.org/broadway npm http GET https://registry.npmjs.org/optimist/0.6.0 npm http GET https://registry.npmjs.org/prompt/0.2.14 npm http GET https://registry.npmjs.org/director/1.2.7 npm http 304 https://registry.npmjs.org/asap npm http GET https://registry.npmjs.org/broadway npm http GET https://registry.npmjs.org/minimatch npm http GET https://registry.npmjs.org/ps-tree npm http GET https://registry.npmjs.org/watch npm http 304 https://registry.npmjs.org/css-stringify/1.0.5 npm http 304 https://registry.npmjs.org/broadway npm http 304 https://registry.npmjs.org/optimist/0.6.0 npm http 304 https://registry.npmjs.org/prompt/0.2.14 npm http GET https://registry.npmjs.org/wordwrap/0.0.2 npm http GET https://registry.npmjs.org/camelcase npm http GET https://registry.npmjs.org/decamelize npm http GET https://registry.npmjs.org/window-size/0.1.0 npm http 304 https://registry.npmjs.org/minimatch npm http 304 https://registry.npmjs.org/watch npm http 304 https://registry.npmjs.org/broadway npm http 304 https://registry.npmjs.org/director/1.2.7 npm http GET https://registry.npmjs.org/once npm http GET https://registry.npmjs.org/path-is-absolute npm http GET https://registry.npmjs.org/inflight npm http 304 https://registry.npmjs.org/wordwrap/0.0.2 npm http 304 https://registry.npmjs.org/decamelize npm http 304 https://registry.npmjs.org/window-size/0.1.0 npm http 304 https://registry.npmjs.org/camelcase npm http GET https://registry.npmjs.org/async/0.2.9 npm http GET https://registry.npmjs.org/ini npm http 304 https://registry.npmjs.org/once npm http 304 https://registry.npmjs.org/inflight npm http 304 https://registry.npmjs.org/path-is-absolute npm http GET https://registry.npmjs.org/pkginfo npm http GET https://registry.npmjs.org/stack-trace npm http GET https://registry.npmjs.org/cycle npm http GET https://registry.npmjs.org/isstream npm http 304 https://registry.npmjs.org/ps-tree npm http 304 https://registry.npmjs.org/ini npm http 304 https://registry.npmjs.org/async/0.2.9 npm http 304 https://registry.npmjs.org/pkginfo npm http 304 https://registry.npmjs.org/isstream npm http 304 https://registry.npmjs.org/cycle npm http GET https://registry.npmjs.org/brace-expansion npm http 304 https://registry.npmjs.org/stack-trace npm http GET https://registry.npmjs.org/event-stream npm http GET https://registry.npmjs.org/wrappy npm http 304 https://registry.npmjs.org/brace-expansion npm http GET https://registry.npmjs.org/lru-cache npm http GET https://registry.npmjs.org/sigmund npm http 304 https://registry.npmjs.org/event-stream npm http 304 https://registry.npmjs.org/wrappy npm http GET https://registry.npmjs.org/read npm http GET https://registry.npmjs.org/revalidator npm http GET https://registry.npmjs.org/graceful-readlink npm http GET https://registry.npmjs.org/nopt/2.1.1 npm http GET https://registry.npmjs.org/pooling/0.4.6 npm http GET https://registry.npmjs.org/dtrace-provider/0.2.8 npm http 304 https://registry.npmjs.org/lru-cache npm http GET https://registry.npmjs.org/asn1/0.2.1 npm http 304 https://registry.npmjs.org/sigmund npm http GET https://registry.npmjs.org/assert-plus/0.1.5 npm http GET https://registry.npmjs.org/bunyan/0.22.1 npm http 304 https://registry.npmjs.org/read npm http 304 https://registry.npmjs.org/revalidator npm http GET https://registry.npmjs.org/balanced-match npm http GET https://registry.npmjs.org/concat-map/0.0.1 npm http 304 https://registry.npmjs.org/graceful-readlink npm http GET https://registry.npmjs.org/winston/0.8.0 npm http GET https://registry.npmjs.org/cliff/0.1.9 npm http 304 https://registry.npmjs.org/dtrace-provider/0.2.8 npm http GET https://registry.npmjs.org/eventemitter2/0.4.14 npm http GET https://registry.npmjs.org/mute-stream npm http 304 https://registry.npmjs.org/nopt/2.1.1 npm http 304 https://registry.npmjs.org/assert-plus/0.1.5 npm http 304 https://registry.npmjs.org/balanced-match npm http 304 https://registry.npmjs.org/concat-map/0.0.1 npm http GET https://registry.npmjs.org/amdefine npm http GET https://registry.npmjs.org/batch/0.5.2 npm http 304 https://registry.npmjs.org/cliff/0.1.9 npm http 304 https://registry.npmjs.org/mute-stream npm http 304 https://registry.npmjs.org/eventemitter2/0.4.14 npm http 304 https://registry.npmjs.org/amdefine npm http 304 https://registry.npmjs.org/pooling/0.4.6 npm http 304 https://registry.npmjs.org/asn1/0.2.1 npm http 304 https://registry.npmjs.org/bunyan/0.22.1 npm http 304 https://registry.npmjs.org/batch/0.5.2 npm http GET https://registry.npmjs.org/once/1.3.0 npm http GET https://registry.npmjs.org/vasync/1.4.0 npm http GET https://registry.npmjs.org/abbrev npm http 304 https://registry.npmjs.org/winston/0.8.0 npm http 304 https://registry.npmjs.org/vasync/1.4.0 npm http 304 https://registry.npmjs.org/abbrev npm http 304 https://registry.npmjs.org/once/1.3.0 npm http GET https://registry.npmjs.org/bindings npm http GET https://registry.npmjs.org/jsprim/0.3.0 npm http GET https://registry.npmjs.org/verror/1.1.0 npm http 304 https://registry.npmjs.org/bindings npm http GET https://registry.npmjs.org/mv/0.0.5

dtrace-provider@0.2.8 install /usr/local/lib/node_modules/opensoc-ui/node_modules/passport-ldapauth/node_modules/ldapauth-fork/node_modules/ldapjs/node_modules/dtrace-provider node-gyp rebuild

npm http 304 https://registry.npmjs.org/jsprim/0.3.0 npm http 304 https://registry.npmjs.org/mv/0.0.5 (node) child_process: options.customFds option is deprecated. Use options.stdio instead. npm http GET https://registry.npmjs.org/joi npm http GET https://registry.npmjs.org/catbox npm http GET https://registry.npmjs.org/shot npm http GET https://registry.npmjs.org/cryptiles npm http GET https://registry.npmjs.org/iron npm http GET https://registry.npmjs.org/multiparty npm http GET https://registry.npmjs.org/mime npm http GET https://registry.npmjs.org/negotiator npm http GET https://registry.npmjs.org/semver npm http GET https://registry.npmjs.org/qs

node-expat@2.3.10 install /usr/local/lib/node_modules/opensoc-ui/node_modules/xml-stream/node_modules/node-expat node-gyp rebuild

make: Entering directory /usr/local/lib/node_modules/opensoc-ui/node_modules/passport-ldapauth/node_modules/ldapauth-fork/node_modules/ldapjs/node_modules/dtrace-provider/build' touch Release/obj.target/DTraceProviderStub.stamp npm http 304 https://registry.npmjs.org/verror/1.1.0 npm http 304 https://registry.npmjs.org/cryptiles make: Leaving directory/usr/local/lib/node_modules/opensoc-ui/node_modules/passport-ldapauth/node_modules/ldapauth-fork/node_modules/ldapjs/node_modules/dtrace-provider/build' npm http 304 https://registry.npmjs.org/iron npm http 304 https://registry.npmjs.org/multiparty npm http 304 https://registry.npmjs.org/negotiator npm http 304 https://registry.npmjs.org/joi npm http 304 https://registry.npmjs.org/mime npm http 304 https://registry.npmjs.org/shot npm http 304 https://registry.npmjs.org/qs npm http 304 https://registry.npmjs.org/semver (node) child_process: options.customFds option is deprecated. Use options.stdio instead. npm http GET https://registry.npmjs.org/extsprintf/1.0.0 npm http GET https://registry.npmjs.org/json-schema/0.2.2 npm http GET https://registry.npmjs.org/verror/1.3.3

iconv@2.1.11 install /usr/local/lib/node_modules/opensoc-ui/node_modules/xml-stream/node_modules/iconv node-gyp rebuild

npm http 304 https://registry.npmjs.org/catbox npm http 304 https://registry.npmjs.org/json-schema/0.2.2 make: Entering directory /usr/local/lib/node_modules/opensoc-ui/node_modules/xml-stream/node_modules/node-expat/build' cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DPIC' '-DHAVE_EXPAT_CONFIG_H' '-DNDEBUG' -I/usr/include -I/usr/include/node -I../deps/libexpat -I../deps/libexpat/lib -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-omit-frame-pointer -MMD -MF ./Release/.deps/Release/obj.target/expat/deps/libexpat/lib/xmlparse.o.d.raw -c -o Release/obj.target/expat/deps/libexpat/lib/xmlparse.o ../deps/libexpat/lib/xmlparse.c npm http 304 https://registry.npmjs.org/verror/1.3.3 (node) child_process: options.customFds option is deprecated. Use options.stdio instead. make: Entering directory/usr/local/lib/node_modules/opensoc-ui/node_modules/xml-stream/node_modules/iconv/build' cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DICONV_CONST=const' '-DENABLE_EXTRA=1' '-DHAVE_WORKING_O_NOFOLLOW=1' -I/usr/include -I/usr/include/node -I../deps/libiconv/srclib -I../support -fPIC -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-omit-frame-pointer -MMD -MF ./Release/.deps/Release/obj.target/libiconv/deps/libiconv/lib/iconv.o.d.raw -c -o Release/obj.target/libiconv/deps/libiconv/lib/iconv.o ../deps/libiconv/lib/iconv.c npm http 304 https://registry.npmjs.org/extsprintf/1.0.0 cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DPIC' '-DHAVE_EXPAT_CONFIG_H' '-DNDEBUG' -I/usr/include -I/usr/include/node -I../deps/libexpat -I../deps/libexpat/lib -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-omit-frame-pointer -MMD -MF ./Release/.deps/Release/obj.target/expat/deps/libexpat/lib/xmltok.o.d.raw -c -o Release/obj.target/expat/deps/libexpat/lib/xmltok.o ../deps/libexpat/lib/xmltok.c ../deps/libexpat/lib/xmltok.c:471: warning: missing initializer ../deps/libexpat/lib/xmltok.c:471: warning: (near initialization for ‘latin1_encoding_ns.isName2’) ../deps/libexpat/lib/xmltok.c:484: warning: missing initializer ../deps/libexpat/lib/xmltok.c:484: warning: (near initialization for ‘latin1_encoding.isName2’) ../deps/libexpat/lib/xmltok.c:504: warning: missing initializer ../deps/libexpat/lib/xmltok.c:504: warning: (near initialization for ‘ascii_encoding_ns.isName2’) ../deps/libexpat/lib/xmltok.c:517: warning: missing initializer ../deps/libexpat/lib/xmltok.c:517: warning: (near initialization for ‘ascii_encoding.isName2’) ../deps/libexpat/lib/xmltok.c:730: warning: missing initializer ../deps/libexpat/lib/xmltok.c:730: warning: (near initialization for ‘little2_encoding_ns.isName2’) ../deps/libexpat/lib/xmltok.c:749: warning: missing initializer ../deps/libexpat/lib/xmltok.c:749: warning: (near initialization for ‘little2_encoding.isName2’) ../deps/libexpat/lib/xmltok.c:762: warning: missing initializer ../deps/libexpat/lib/xmltok.c:762: warning: (near initialization for ‘internal_little2_encoding_ns.isName2’) ../deps/libexpat/lib/xmltok.c:775: warning: missing initializer ../deps/libexpat/lib/xmltok.c:775: warning: (near initialization for ‘internal_little2_encoding.isName2’) ../deps/libexpat/lib/xmltok.c:871: warning: missing initializer ../deps/libexpat/lib/xmltok.c:871: warning: (near initialization for ‘big2_encoding_ns.isName2’) ../deps/libexpat/lib/xmltok.c:890: warning: missing initializer ../deps/libexpat/lib/xmltok.c:890: warning: (near initialization for ‘big2_encoding.isName2’) cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DPIC' '-DHAVE_EXPAT_CONFIG_H' '-DNDEBUG' -I/usr/include -I/usr/include/node -I../deps/libexpat -I../deps/libexpat/lib -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-omit-frame-pointer -MMD -MF ./Release/.deps/Release/obj.target/expat/deps/libexpat/lib/xmlrole.o.d.raw -c -o Release/obj.target/expat/deps/libexpat/lib/xmlrole.o ../deps/libexpat/lib/xmlrole.c rm -f Release/obj.target/deps/libexpat/libexpat.a && ar crsT Release/obj.target/deps/libexpat/libexpat.a Release/obj.target/expat/deps/libexpat/lib/xmlparse.o Release/obj.target/expat/deps/libexpat/lib/xmltok.o Release/obj.target/expat/deps/libexpat/lib/xmlrole.o g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/usr/include -I/usr/include/node -I../node_modules/nan -I../deps/libexpat -I../deps/libexpat/lib -fPIC -Wall -Wextra -Wno-unused-parameter -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-omit-frame-pointer -fno-rtti -fno-exceptions -MMD -MF ./Release/.deps/Release/obj.target/node_expat/node-expat.o.d.raw -c -o Release/obj.target/node_expat/node-expat.o ../node-expat.cc In file included from ../node-expat.cc:1: ../node_modules/nan/nan.h:328: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’ make: * [Release/obj.target/node_expat/node-expat.o] Error 1 make: Leaving directory /usr/local/lib/node_modules/opensoc-ui/node_modules/xml-stream/node_modules/node-expat/build' gyp ERR! build error gyp ERR! stack Error:make`failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:267: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 2.6.32-504.30.3.el6.x86_64 gyp ERR! command "/usr/local/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/opensoc-ui/node_modules/xml-stream/node_modules/node-expat gyp ERR! node -v v4.2.1 gyp ERR! node-gyp -v v0.10.6 gyp ERR! not ok npm ERR! weird error 1 ../deps/libiconv/lib/iconv.c:593: fatal error: opening dependency file ./Release/.deps/Release/obj.target/libiconv/deps/libiconv/lib/iconv.o.d.raw: No such file or directory compilation terminated. Cannot create temporary file in /usr/local/lib/node_modules/opensoc-ui/node_modules/xml-stream/node_modules/iconv/: No such file or directory make: * [Release/obj.target/libiconv/deps/libiconv/lib/iconv.o] Aborted make: Leaving directory/usr/local/lib/node_modules/opensoc-ui/node_modules/xml-stream/node_modules/iconv/build' gyp ERR! build error gyp ERR! stack Error:make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:267: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 2.6.32-504.30.3.el6.x86_64 gyp ERR! command "/usr/local/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/opensoc-ui/node_modules/xml-stream/node_modules/iconv gyp ERR! node -v v4.2.1 gyp ERR! node-gyp -v v0.10.6 gyp ERR! not ok npm ERR! not ok code 0


sainib commented 9 years ago

Is python 2.7 a pre-requisite?

nmadhire commented 8 years ago

what version of nodejs are you using, i think this error is related to version mismatch. It worked for me in v0.10.35

Nikhilgdm commented 4 years ago

Can anyone let me know on which Node and NPM version it is compiling well?

ChrisEmbreee commented 4 years ago

OpenSOC has been transformed into Apache Project Metron. https://metron.apache.org/ This project is officially dead, we just don't have anyone around with rights to remove it.