nearinfinity/node-oracle — Issue #1: Not building on OS X
Author: StevenLooman
Created: 2012-02-06 20:28:48+00:00
State: open

Great work! Unfortunately, it doesn't work on OS X (Lion)

After getting npm/mnm to use the correct library/include paths, it complains about being unable to find lib nnz11. nnz11 is _NOT_ part of the Oracle InstantClient for OS X.

nnz10 is part of the Oracle InstantClient for OS X, however. After linking against that I get the following:

[Steven ~]$ node
> require('oracle')
Segmentation fault: 11

Libraries oracle_bindings.node is linked against:

[Steven ~/node_modules/oracle/build/Release]$ otool -L oracle_bindings.node
oracle_bindings.node:
/opt/local/lib/oracle/libocci.dylib.10.1 (compatibility version 0.0.0, current version 0.0.0)
/opt/local/lib/oracle/libclntsh.dylib.10.1 (compatibility version 0.0.0, current version 0.0.0)
/opt/local/lib/oracle/libnnz10.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)