Closed BrettyWhite closed 9 years ago
It looks as though the file 'wscript' is not executing
sorry, i in army, now is not have time :(
2013/9/6 Brett M notifications@github.com
It looks as though the file 'wscript' is not executing
— Reply to this email directly or view it on GitHubhttps://github.com/tuxnsk/nodejs_libmodbus/issues/1#issuecomment-23897315 .
Contacts: http://tuxnsk.ru/
I have the same problem as brettwmc.
show me full build log
2013/11/8 narsene notifications@github.com
I have the same problem as brettwmc.
— Reply to this email directly or view it on GitHubhttps://github.com/tuxnsk/nodejs_libmodbus/issues/1#issuecomment-28064808 .
Contacts: http://tuxnsk.ru/
Thanks for replying!
I don't write very well in english too, i'll do my best to be comprehensible.
Attach to this mail you'll find two logs files.
I tried to install your module with this configuration:
I tried to install your module via npm but i get an error with the Python path (npm.log.txt). I tried to fix it with no success i don't know where or how to change the configure option "node-gyp configure --python=python2".
python2 is available on the system but only accessible directly with python or python2.7.
So i tried the compilation from source (build.log.txt). After the compilation success i get the same issue as brettwmc.
Thanks in advance for your answer!
npm http GET https://registry.npmjs.org/modbus npm http 304 https://registry.npmjs.org/modbus
modbus@0.0.8 install /opt/node/node_modules/modbus ./make_libmodbus.sh && node-gyp configure --python=python2 && node-gyp build
Cloning into 'libmodbus'...
HEAD is now at 79a7c1e Fix missing argument in synopsis section of modbus_rtu_set_serial_mode
patching file src/modbus.c
patching file src/modbus.h
patching file src/modbus-private.h
patching file src/modbus-rtu.c
patching file src/modbus-rtu-private.h
patching file src/modbus-tcp.c
patching file src/modbus-tcp-private.h
autoreconf: Entering directory .' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in
.'.
libtoolize: copying file ./ltmain.sh' libtoolize: Consider adding
AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding -I m4' to ACLOCAL_AMFLAGS in Makefile.am. autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:49: installing
./config.guess'
configure.ac:49: installing ./config.sub' configure.ac:28: installing
./install-sh'
configure.ac:28: installing ./missing' src/Makefile.am: installing
./depcomp'
autoreconf: Leaving directory `.'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... armv6l-unknown-linux-gnueabihf
checking host system type... armv6l-unknown-linux-gnueabihf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert armv6l-unknown-linux-gnueabihf file names to armv6l-unknown-linux-gnueabihf format... func_convert_file_noop
checking how to convert armv6l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking linux/serial.h usability... yes
checking linux/serial.h presence... yes
checking for linux/serial.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking for asciidoc... no
checking for xmlto... no
configure: WARNING: You are building an unreleased version of libmodbus and asciidoc or xmlto are not installed.
configure: WARNING: Documentation will not be built and manual pages will not be installed.
checking whether to build documentation... no
checking whether to install manpages... no
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether CYGWIN is declared... no
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for accept4... yes
checking for getaddrinfo... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strerror... yes
checking for strlcpy... no
checking winsock2.h usability... no
checking winsock2.h presence... no
checking for winsock2.h... no
checking whether TIOCSRS485 is declared... yes
checking whether TIOCM_RTS is declared... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/modbus-version.h
config.status: creating doc/Makefile
config.status: creating tests/Makefile
config.status: creating libmodbus.pc
config.status: creating libmodbus.spec
config.status: creating config.h
config.status: creating tests/unit-test.h
config.status: executing depfiles commands
config.status: executing libtool commands
make all-recursive
make[1]: entrant dans le répertoire « /opt/node/node_modules/modbus/libmodbus »
Making all in src
make[2]: entrant dans le répertoire « /opt/node/node_modules/modbus/libmodbus/src »
CC modbus.lo
CC modbus-data.lo
CC modbus-rtu.lo
CC modbus-tcp.lo
CCLD libmodbus.la
make[2]: quittant le répertoire « /opt/node/node_modules/modbus/libmodbus/src »
Making all in doc
make[2]: entrant dans le répertoire « /opt/node/node_modules/modbus/libmodbus/doc »
make[2]: Rien à faire pour « all ».
make[2]: quittant le répertoire « /opt/node/node_modules/modbus/libmodbus/doc »
Making all in tests
make[2]: entrant dans le répertoire « /opt/node/node_modules/modbus/libmodbus/tests »
(CDPATH="${ZSH_VERSION+.}:" && cd .. && /bin/bash /opt/node/node_modules/modbus/libmodbus/missing --run autoheader)
rm -f stamp-h2
touch unit-test.h.in
cd .. && /bin/bash ./config.status tests/unit-test.h
config.status: creating tests/unit-test.h
config.status: tests/unit-test.h is unchanged
make all-am
make[3]: entrant dans le répertoire « /opt/node/node_modules/modbus/libmodbus/tests »
CC bandwidth-server-one.o
CCLD bandwidth-server-one
CC bandwidth-server-many-up.o
CCLD bandwidth-server-many-up
CC bandwidth-client.o
CCLD bandwidth-client
CC random-test-server.o
CCLD random-test-server
CC random-test-client.o
CCLD random-test-client
CC unit-test-server.o
CCLD unit-test-server
CC unit-test-client.o
CCLD unit-test-client
CC version.o
CCLD version
make[3]: quittant le répertoire « /opt/node/node_modules/modbus/libmodbus/tests »
make[2]: quittant le répertoire « /opt/node/node_modules/modbus/libmodbus/tests »
make[2]: entrant dans le répertoire « /opt/node/node_modules/modbus/libmodbus »
make[2]: quittant le répertoire « /opt/node/node_modules/modbus/libmodbus »
make[1]: quittant le répertoire « /opt/node/node_modules/modbus/libmodbus »
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python2", you can set the PYTHON env variable.
gyp ERR! stack at failNoPython (/opt/node/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:118:14)
gyp ERR! stack at /opt/node/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:59:11
gyp ERR! stack at F (/opt/node/lib/node_modules/npm/node_modules/which/which.js:43:25)
gyp ERR! stack at E (/opt/node/lib/node_modules/npm/node_modules/which/which.js:46:29)
gyp ERR! stack at /opt/node/lib/node_modules/npm/node_modules/which/which.js:57:16
gyp ERR! stack at Object.oncomplete (fs.js:107:15)
gyp ERR! System Linux 3.6.11+
gyp ERR! command "node" "/opt/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--python=python2"
gyp ERR! cwd /opt/node/node_modules/modbus
gyp ERR! node -v v0.10.21
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
modbus@0.0.8 preuninstall /opt/node/node_modules/modbus rm -rf libmodbus build
npm ERR! weird error 1 npm ERR! not ok code 0
Cloning into 'libmodbus'...
HEAD is now at 79a7c1e Fix missing argument in synopsis section of modbus_rtu_set_serial_mode
patching file src/modbus.c
patching file src/modbus.h
patching file src/modbus-private.h
patching file src/modbus-rtu.c
patching file src/modbus-rtu-private.h
patching file src/modbus-tcp.c
patching file src/modbus-tcp-private.h
autoreconf: Entering directory .' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in
.'.
libtoolize: copying file ./ltmain.sh' libtoolize: Consider adding
AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding -I m4' to ACLOCAL_AMFLAGS in Makefile.am. autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:49: installing
./config.guess'
configure.ac:49: installing ./config.sub' configure.ac:28: installing
./install-sh'
configure.ac:28: installing ./missing' src/Makefile.am: installing
./depcomp'
autoreconf: Leaving directory `.'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... armv6l-unknown-linux-gnueabihf
checking host system type... armv6l-unknown-linux-gnueabihf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert armv6l-unknown-linux-gnueabihf file names to armv6l-unknown-linux-gnueabihf format... func_convert_file_noop
checking how to convert armv6l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking linux/serial.h usability... yes
checking linux/serial.h presence... yes
checking for linux/serial.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking for asciidoc... no
checking for xmlto... no
configure: WARNING: You are building an unreleased version of libmodbus and asciidoc or xmlto are not installed.
configure: WARNING: Documentation will not be built and manual pages will not be installed.
checking whether to build documentation... no
checking whether to install manpages... no
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether CYGWIN is declared... no
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for accept4... yes
checking for getaddrinfo... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strerror... yes
checking for strlcpy... no
checking winsock2.h usability... no
checking winsock2.h presence... no
checking for winsock2.h... no
checking whether TIOCSRS485 is declared... yes
checking whether TIOCM_RTS is declared... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/modbus-version.h
config.status: creating doc/Makefile
config.status: creating tests/Makefile
config.status: creating libmodbus.pc
config.status: creating libmodbus.spec
config.status: creating config.h
config.status: creating tests/unit-test.h
config.status: executing depfiles commands
config.status: executing libtool commands
make all-recursive
make[1]: entrant dans le répertoire « /home/pi/node_modules/modbus/libmodbus »
Making all in src
make[2]: entrant dans le répertoire « /home/pi/node_modules/modbus/libmodbus/src »
CC modbus.lo
CC modbus-data.lo
CC modbus-rtu.lo
CC modbus-tcp.lo
CCLD libmodbus.la
make[2]: quittant le répertoire « /home/pi/node_modules/modbus/libmodbus/src »
Making all in doc
make[2]: entrant dans le répertoire « /home/pi/node_modules/modbus/libmodbus/doc »
make[2]: Rien à faire pour « all ».
make[2]: quittant le répertoire « /home/pi/node_modules/modbus/libmodbus/doc »
Making all in tests
make[2]: entrant dans le répertoire « /home/pi/node_modules/modbus/libmodbus/tests »
(CDPATH="${ZSH_VERSION+.}:" && cd .. && /bin/bash /home/pi/node_modules/modbus/libmodbus/missing --run autoheader)
rm -f stamp-h2
touch unit-test.h.in
cd .. && /bin/bash ./config.status tests/unit-test.h
config.status: creating tests/unit-test.h
config.status: tests/unit-test.h is unchanged
make all-am
make[3]: entrant dans le répertoire « /home/pi/node_modules/modbus/libmodbus/tests »
CC bandwidth-server-one.o
CCLD bandwidth-server-one
CC bandwidth-server-many-up.o
CCLD bandwidth-server-many-up
CC bandwidth-client.o
CCLD bandwidth-client
CC random-test-server.o
CCLD random-test-server
CC random-test-client.o
CCLD random-test-client
CC unit-test-server.o
CCLD unit-test-server
CC unit-test-client.o
CCLD unit-test-client
CC version.o
CCLD version
make[3]: quittant le répertoire « /home/pi/node_modules/modbus/libmodbus/tests »
make[2]: quittant le répertoire « /home/pi/node_modules/modbus/libmodbus/tests »
make[2]: entrant dans le répertoire « /home/pi/node_modules/modbus/libmodbus »
make[2]: quittant le répertoire « /home/pi/node_modules/modbus/libmodbus »
make[1]: quittant le répertoire « /home/pi/node_modules/modbus/libmodbus »
Closed due to inactivity.
I tried installing from npm, which failed. I also compiled from script which seemed to have worked but there is still no "./build/Release/modbus_binding" for the line var mb = require("./build/Release/modbus_binding"); of the modbus.js file.
Any help will be appreciated.
Thanks!