sqlanywhere / node-sqlanywhere

SAP SQL Anywhere Database Client for Node
Apache License 2.0
39 stars 36 forks source link

Example code won't run on OSX #22

Closed rafriki closed 7 years ago

rafriki commented 7 years ago

Running the example code in the readme gives the following error:

$ node index.js
../sqlanywhere-dxm/index.js:12
  if (err) throw err;
           ^

Error: Code: -2004 Msg: Can't initialize DBCAPI

Have the following dependencies installed globally:

$ node -v && python --version && make --version && node-gyp --version
v7.1.0
Python 2.7.13
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0
v3.5.0
gperrow-SAP commented 7 years ago

What version of SQL Anywhere do you have installed?