piskorzj / node-packet-socket Goto Github PK
View Code? Open in Web Editor NEWNode.js package implementing socket for receiving OSI layer 2 packets
License: MIT License
Node.js package implementing socket for receiving OSI layer 2 packets
License: MIT License
I tried npm install-test
as you suggested in #1 but it fails. Apparently you must have cpputest installed. I installed that using apt-get install cpputest
which also installs libcpputest-dev
for development.
This was not sufficient either because Ubuntu ships libcpputest-dev
as a dynamic binding library or something? Do you have to build a specialized version of libCppUTest.a
to make this work? The error I got is shown in the sequence below:
$ npm install-test
> [email protected] install /home/alan/node-packet-socket
> node-gyp rebuild
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: Entering directory '/home/alan/node-packet-socket/build'
CXX(target) Release/obj.target/packet_socket_addon/src/wrapper.o
CXX(target) Release/obj.target/packet_socket_addon/src/socket.o
CXX(target) Release/obj.target/packet_socket_addon/src/poller.o
SOLINK_MODULE(target) Release/obj.target/packet_socket_addon.node
COPY Release/packet_socket_addon.node
CXX(target) Release/obj.target/test_poller/src/poller.o
CXX(target) Release/obj.target/test_poller/cc_tests/poller.o
SOLINK_MODULE(target) Release/obj.target/test_poller.node
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libCppUTest.a(lib_libCppUTest_a-CommandLineTestRunner.o): relocation R_X86_64_32S against `_ZTV21CommandLineTestRunner' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libCppUTest.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
test_poller.target.mk:126: recipe for target 'Release/obj.target/test_poller.node' failed
make: *** [Release/obj.target/test_poller.node] Error 1
make: Leaving directory '/home/alan/node-packet-socket/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/alan/.nvm/versions/node/v8.1.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:197:12)
gyp ERR! System Linux 4.4.0-79-generic
gyp ERR! command "/home/alan/.nvm/versions/node/v8.1.0/bin/node" "/home/alan/.nvm/versions/node/v8.1.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/alan/node-packet-socket
gyp ERR! node -v v8.1.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/alan/.npm/_logs/2017-06-08T22_09_59_260Z-debug.log
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.