node-sqlserver-v8 icon indicating copy to clipboard operation
node-sqlserver-v8 copied to clipboard

Compilation error while installing in Linux

Open blundercon opened this issue 4 years ago • 1 comments

I keep getting the following error while trying to install in RHEL:

  CXX(target) Release/obj.target/sqlserverv8/src/ConnectionHandles.o
In file included from ../src/ConnectionHandles.h:22:0,
                 from ../src/ConnectionHandles.cpp:1:
../src/stdafx.h:38:24: fatal error: sqlspi.h: No such file or directory
     #include <sqlspi.h>
                        ^
compilation terminated.
make: *** [Release/obj.target/sqlserverv8/src/ConnectionHandles.o] Error 1

Please let me know if you need any more info.

blundercon avatar Feb 23 '21 15:02 blundercon

looks like it cannot find the ODBC header files? is ODBC installed and which folder - it is possible you will have to add additional include folders in the binding.gyp file used to build the code - we do ship with binaries for various linux distros so this seems to be a platform for which we do not have compatible builds. If it cannot find a match it will try to build code locally and at that point it needs the ms obdc driver shared objects and dev include files.

TimelordUK avatar Feb 26 '21 13:02 TimelordUK