node-odbc icon indicating copy to clipboard operation
node-odbc copied to clipboard

Load Sybase driver in UnixODBC (macOS)

Open ghost opened this issue 6 years ago • 2 comments

Hi there !

Would it be possible to load a Sybase driver (like libdbodbc16.so or the bundle one) with unixodbc on MacOS ?

I've already tried but the driver won't load or it crashes.

At the moment I'm using FreeTDS but I would prefer using the official Sybase one (better compatibility).

Thanks 👍

Edit: Is there a way not to use the UnixODBC on macOS and use the one installed on the machine directly (like on Windows) ?

ghost avatar Jun 18 '19 13:06 ghost

I haven't played around with ODBC on mac, but I believe the native Mac driver manager uses iODBC. I'm not sure but the Sybase one might target either unixODBC or iODBC, which I believe have slightly different interfaces. This package targets unixODBC because it is mostly interoperable with the native Windows ODBC Driver Manager, and most Mac users can download and use unixODBC instead of iODBC.

markirish avatar Jun 26 '19 23:06 markirish

The instructions at the bottom of this page might help, you can try to target unixODBC when you build it and see if that helps:

http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc20116.1550/html/aseodbc/aseodbc6.htm

markirish avatar Jun 27 '19 00:06 markirish