Closed rlemon closed 8 years ago
Maybe you don't have git client? Show me more info, send me please /home/root/dm/npm-debug.log file. Try run command ./make_libmodbus.sh && node-gyp configure --python=python2 && node-gyp build manualy from ./node_modules/modbus/ dirrectory and show me log.
2014/1/21 Robert Lemon notifications@github.com
trying to install the package from npm I'm getting the following errors:
npm ERR! modbus@0.0.12 install:
./make_libmodbus.sh && node-gyp configure -- python=python2 && node-gyp build
npm ERR!sh "-c" "./make_libmodbus.sh && node-gyp configure --python=python2 && node-gyp build"
failed with 127 npm ERR! npm ERR! Failed at the modbus@0.0.12 install script. npm ERR! This is most likely a problem with the modbus package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! ./make_libmodbus.sh && node-gyp configure --python=python2 && node- gyp build npm ERR! You can get their info via: npm ERR! npm owner ls modbus npm ERR! There is likely additional logging output above.npm ERR! System Linux 3.8.13 npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "modbus" npm ERR! cwd /home/root/dm npm ERR! node -v v0.8.22 npm ERR! npm -v 1.2.14 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/root/dm/npm-debug.log npm ERR! not ok code 0
Python version 2.7.3
I will admit I am horrible at understanding these npm errors and If i'm missing a dependency and just not seeing it I'm sorry.
— Reply to this email directly or view it on GitHubhttps://github.com/tuxnsk/nodejs_libmodbus/issues/5 .
Contacts: http://tuxnsk.ru/
Here is a dump of the full error: https://gist.github.com/rlemon/75c3d92bc7617ce31c56
At the top you can see my node / npm versions.
Just to verify that it wasn't my local version of node on the BBB I tried this from my Ubuntu VM and got the same results. I had a friend try on Arch and reported back that it worked (same node version and npm version)
Have you symlinked python2? If not, sudo ln -s /usr/bin/python /usr/bin/python2
2014/1/21 Robert Lemon notifications@github.com
Here is a dump of the full error: https://gist.github.com/rlemon/75c3d92bc7617ce31c56
At the top you can see my node / npm versions.
Just to verify that it wasn't my local version of node on the BBB I tried this from my Ubuntu VM and got the same results. I had a friend try on Arch and reported back that it worked (same node version and npm version)
— Reply to this email directly or view it on GitHubhttps://github.com/tuxnsk/nodejs_libmodbus/issues/5#issuecomment-32885867 .
Pozdrawiam, Mariusz Kierski
After that, try installing autoreconf (sudo apt-get install dh-autoreconf)
2014/1/21 Mariusz Kierski kartam92@gmail.com
Have you symlinked python2? If not, sudo ln -s /usr/bin/python /usr/bin/python2
2014/1/21 Robert Lemon notifications@github.com
Here is a dump of the full error: https://gist.github.com/rlemon/75c3d92bc7617ce31c56
At the top you can see my node / npm versions.
Just to verify that it wasn't my local version of node on the BBB I tried this from my Ubuntu VM and got the same results. I had a friend try on Arch and reported back that it worked (same node version and npm version)
— Reply to this email directly or view it on GitHubhttps://github.com/tuxnsk/nodejs_libmodbus/issues/5#issuecomment-32885867 .
Pozdrawiam, Mariusz Kierski
Pozdrawiam, Mariusz Kierski
you need install autoconf package
2014/1/21 chaser92 notifications@github.com
After that, try installing autoreconf (sudo apt-get install dh-autoreconf)
2014/1/21 Mariusz Kierski kartam92@gmail.com
Have you symlinked python2? If not, sudo ln -s /usr/bin/python /usr/bin/python2
2014/1/21 Robert Lemon notifications@github.com
Here is a dump of the full error: https://gist.github.com/rlemon/75c3d92bc7617ce31c56
At the top you can see my node / npm versions.
Just to verify that it wasn't my local version of node on the BBB I tried this from my Ubuntu VM and got the same results. I had a friend try on Arch and reported back that it worked (same node version and npm version)
— Reply to this email directly or view it on GitHub< https://github.com/tuxnsk/nodejs_libmodbus/issues/5#issuecomment-32885867>
.
Pozdrawiam, Mariusz Kierski
Pozdrawiam, Mariusz Kierski
— Reply to this email directly or view it on GitHubhttps://github.com/tuxnsk/nodejs_libmodbus/issues/5#issuecomment-32886769 .
Contacts: http://tuxnsk.ru/
Thanks guys. I'll try this and get back to you if I am still having issues.
@tuxnsk
Package autoconf (2.69-r10.1) installed in root is up to date.
@chaser92 symlink is there - made double sure by rm'ing it and re creating it. Still getting the same errors (I only tested this on Angstrom linux on the BBB itself).
Angstrom it a very limited version of linux and I may still be missing some dependencies (sorry kinda new to node and npm).
The package you need is dh-autoreconf, not (or not only) autoconf. If still not working, send me full npm-debug.log in a PM.
Unfortunately that isn't available for Angstrom under that name. I'll continue looking for it by another name. BTW I'm using the opkg package manager. On Jan 22, 2014 5:09 PM, "chaser92" notifications@github.com wrote:
The package you need is dh-autoreconf, not (or not only) autoconf.
— Reply to this email directly or view it on GitHubhttps://github.com/tuxnsk/nodejs_libmodbus/issues/5#issuecomment-33074412 .
I know opkg, but never used Angstrom. Try building autoreconf (GNU autotools, if I recall?) from source. I am sure there exists a package way though, because it's a very popular package utility for building things from source code.
It probably is just under a different name. I will continue looking tonight, little burnt out now.. Been attempting yo get modbus communication going for ten straight workdays now. On Jan 22, 2014 6:08 PM, "chaser92" notifications@github.com wrote:
I know opkg, but never used Angstrom. Try building autoreconf (GNU autotools, if I recall?) from source. I am sure there exists a package way though, because it's a very popular package utility for building things from source code.
— Reply to this email directly or view it on GitHubhttps://github.com/tuxnsk/nodejs_libmodbus/issues/5#issuecomment-33079654 .
Okay so I have verified all of those packages and they are installed. I've been messing around and think the issue is that I am not getting libmodbus from /stephane/libmodbus.git
# git clone https://github.com/stephane/libmodbus.git
Cloning into libmodbus...
error: while accessing https://github.com/stephane/libmodbus.git/info/refs
fatal: HTTP request failed
I will continue looking for a workaround for this. note: # git clone git://github.com/stephane/libmodbus.git
works.
Okay so last ditch effort - cloned the repo, changed the protocol and ran npm install --unsafe-perm
from the local directory and i'm getting make errors
make: Entering directory `/home/root/nodejs_libmodbus/build'
CXX(target) Release/obj.target/modbus_binding/src/main.o
../src/main.cpp: In function 'v8::Handle<v8::Value> tcp_accept_async(const v8::Arguments&)':
../src/main.cpp:719:66: error: invalid conversion from 'void (*)(uv_work_t*, int) {aka void (*)(uv_work_s*, int)}' to 'uv_after_work_cb {aka void (*)(uv_work_s*)}' [-fpermissive]
In file included from /home/root/.node-gyp/0.8.22/src/node.h:61:0,
from ../src/main.cpp:3:
/home/root/.node-gyp/0.8.22/deps/uv/include/uv.h:1322:15: error: initializing argument 4 of 'int uv_queue_work(uv_loop_t*, uv_work_t*, uv_work_cb, uv_after_work_cb)' [-fpermissive]
../src/main.cpp: In function 'v8::Handle<v8::Value> receive_async(const v8::Arguments&)':
../src/main.cpp:779:60: error: invalid conversion from 'void (*)(uv_work_t*, int) {aka void (*)(uv_work_s*, int)}' to 'uv_after_work_cb {aka void (*)(uv_work_s*)}' [-fpermissive]
In file included from /home/root/.node-gyp/0.8.22/src/node.h:61:0,
from ../src/main.cpp:3:
/home/root/.node-gyp/0.8.22/deps/uv/include/uv.h:1322:15: error: initializing argument 4 of 'int uv_queue_work(uv_loop_t*, uv_work_t*, uv_work_cb, uv_after_work_cb)' [-fpermissive]
../src/main.cpp: In function 'v8::Handle<v8::Value> connect_async(const v8::Arguments&)':
../src/main.cpp:824:60: error: invalid conversion from 'void (*)(uv_work_t*, int) {aka void (*)(uv_work_s*, int)}' to 'uv_after_work_cb {aka void (*)(uv_work_s*)}' [-fpermissive]
In file included from /home/root/.node-gyp/0.8.22/src/node.h:61:0,
from ../src/main.cpp:3:
/home/root/.node-gyp/0.8.22/deps/uv/include/uv.h:1322:15: error: initializing argument 4 of 'int uv_queue_work(uv_loop_t*, uv_work_t*, uv_work_cb, uv_after_work_cb)' [-fpermissive]
make: *** [Release/obj.target/modbus_binding/src/main.o] Error 1
make: Leaving directory `/home/root/nodejs_libmodbus/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/npm/node_modules/node-gyp/lib/build.js:256:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Linux 3.8.13
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build"
gyp ERR! cwd /home/root/nodejs_libmodbus
gyp ERR! node -v v0.8.22
gyp ERR! node-gyp -v v0.8.5
gyp ERR! not ok
npm ERR! modbus@0.0.11 install: `./make_libmodbus.sh && node-gyp configure --python=python2 && node-gyp build`
npm ERR! `sh "-c" "./make_libmodbus.sh && node-gyp configure --python=python2 && node-gyp build"` failed with 1
npm ERR!
npm ERR! Failed at the modbus@0.0.11 install script.
npm ERR! This is most likely a problem with the modbus package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./make_libmodbus.sh && node-gyp configure --python=python2 && node-gyp build
npm ERR! You can get their info via:
npm ERR! npm owner ls modbus
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.8.13
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "--unsafe-perm"
npm ERR! cwd /home/root/nodejs_libmodbus
npm ERR! node -v v0.8.22
npm ERR! npm -v 1.2.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/root/nodejs_libmodbus/npm-debug.log
npm ERR! not ok code 0
Any help getting this module installed and working would be appreciated. I've been trying to get a modbus library working for a few weeks now and am having no luck at all (I need to read/write serial RTU).
I've recently forked the jsModbus lib. It initially supported only TCP, but I'm in the process of adding RTU support. It's not perfect but I'm going to use it in production, and it supports (unlike other libs) multiple device addresses. Try it at github.com/chaser92/jsModbus (it's in alpha stage, in particular the timeouts are way too large right now)
2014-01-31 22:23 GMT+01:00 Robert Lemon notifications@github.com:
Okay so last ditch effort - cloned the repo, changed the protocol and ran npm install --unsafe-perm from the local directory and i'm getting make errors
make: Entering directory
/home/root/nodejs_libmodbus/build' CXX(target) Release/obj.target/modbus_binding/src/main.o ../src/main.cpp: In function 'v8::Handle<v8::Value> tcp_accept_async(const v8::Arguments&)': ../src/main.cpp:719:66: error: invalid conversion from 'void (*)(uv_work_t*, int) {aka void (*)(uv_work_s*, int)}' to 'uv_after_work_cb {aka void (*)(uv_work_s*)}' [-fpermissive] In file included from /home/root/.node-gyp/0.8.22/src/node.h:61:0, from ../src/main.cpp:3: /home/root/.node-gyp/0.8.22/deps/uv/include/uv.h:1322:15: error: initializing argument 4 of 'int uv_queue_work(uv_loop_t*, uv_work_t*, uv_work_cb, uv_after_work_cb)' [-fpermissive] ../src/main.cpp: In function 'v8::Handle<v8::Value> receive_async(const v8::Arguments&)': ../src/main.cpp:779:60: error: invalid conversion from 'void (*)(uv_work_t*, int) {aka void (*)(uv_work_s*, int)}' to 'uv_after_work_cb {aka void (*)(uv_work_s*)}' [-fpermissive] In file included from /home/root/.node-gyp/0.8.22/src/node.h:61:0, from ../src/main.cpp:3: /home/root/.node-gyp/0.8.22/deps/uv/include/uv.h:1322:15: error: initializing argument 4 of 'int uv_queue_work(uv_loop_t*, uv_work_t*, uv_work_cb, uv_after_work_cb)' [-fpermissive] ../src/main.cpp: In function 'v8::Handle<v8::Value> connect_async(const v8::Arguments&)': ../src/main.cpp:824:60: error: invalid conversion from 'void (*)(uv_work_t*, int) {aka void (*)(uv_work_s*, int)}' to 'uv_after_work_cb {aka void (*)(uv_work_s*)}' [-fpermissive] In file included from /home/root/.node-gyp/0.8.22/src/node.h:61:0, from ../src/main.cpp:3: /home/root/.node-gyp/0.8.22/deps/uv/include/uv.h:1322:15: error: initializing argument 4 of 'int uv_queue_work(uv_loop_t*, uv_work_t*, uv_work_cb, uv_after_work_cb)' [-fpermissive] make: *** [Release/obj.target/modbus_binding/src/main.o] Error 1 make: Leaving directory
/home/root/nodejs_libmodbus/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/npm/node_modules/node-gyp/lib/build.js:256:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17) gyp ERR! stack at Process._handle.onexit (child_process.js:678:10) gyp ERR! System Linux 3.8.13 gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" gyp ERR! cwd /home/root/nodejs_libmodbus gyp ERR! node -v v0.8.22 gyp ERR! node-gyp -v v0.8.5 gyp ERR! not ok npm ERR! modbus@0.0.11 install:./make_libmodbus.sh && node-gyp configure --python=python2 && node-gyp build
npm ERR!sh "-c" "./make_libmodbus.sh && node-gyp configure --python=python2 && node-gyp build"
failed with 1 npm ERR! npm ERR! Failed at the modbus@0.0.11 install script. npm ERR! This is most likely a problem with the modbus package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! ./make_libmodbus.sh && node-gyp configure --python=python2 && node-gyp build npm ERR! You can get their info via: npm ERR! npm owner ls modbus npm ERR! There is likely additional logging output above.npm ERR! System Linux 3.8.13 npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "--unsafe-perm" npm ERR! cwd /home/root/nodejs_libmodbus npm ERR! node -v v0.8.22 npm ERR! npm -v 1.2.14 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/root/nodejs_libmodbus/npm-debug.log npm ERR! not ok code 0
Any help getting this module installed and working would be appreciated. I've been trying to get a modbus library working for a few weeks now and am having no luck at all (I need to read/write serial RTU).
Reply to this email directly or view it on GitHubhttps://github.com/tuxnsk/nodejs_libmodbus/issues/5#issuecomment-33843779 .
Pozdrawiam, Mariusz Kierski
trying to install the package from npm I'm getting the following errors:
Python version 2.7.3
I will admit I am horrible at understanding these npm errors and If i'm missing a dependency and just not seeing it I'm sorry.