tuxnsk / nodejs_libmodbus

libmodbus binding for nodejs
41 stars 66 forks source link

Does not install on Raspbian - Raspberry Pi #40

Closed robogeek closed 7 years ago

robogeek commented 7 years ago

I have it installed and working on Ubuntu - I wanted to see it work on my Raspberry Pi as well. I'm using the method of npm install ../nodejs_libmodbus where that directory is a clone of the github repository.

Early in the process I get these messages

Checking connectivity... done.
HEAD is now at f935846 Bump release to v3.1.4
configure.ac:33: installing 'build-aux/compile'
configure.ac:56: installing 'build-aux/config.guess'
configure.ac:56: installing 'build-aux/config.sub'
configure.ac:32: installing 'build-aux/install-sh'
configure.ac:32: installing 'build-aux/missing'
src/Makefile.am:2: error: Libtool library used but 'LIBTOOL' is undefined
src/Makefile.am:2:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/Makefile.am:2:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/Makefile.am:2:   If 'LT_INIT' is in 'configure.ac', make sure
src/Makefile.am:2:   its definition is in aclocal's search path.
src/Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
autoreconf2.50: automake failed with exit status: 1

--------------------------
Running autoreconf failed.
--------------------------

Then at the end of running the configure script I get this message:

checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking whether make supports nested variables... (cached) yes
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
./configure: line 5308: syntax error near unexpected token `disable-static'
./configure: line 5308: `LT_INIT(disable-static win32-dll pic-only)'

And my Node.js version is very much up-to-date ;-)

$ node --version
v6.9.1
robogeek commented 7 years ago

Nevermind - solved with: $ sudo apt-get install libtool