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

Issue building on RHEL 6.2 with OCI 12.1.0.1.0

Open chiahrens opened this issue 12 years ago • 1 comments

The build seems to be looking for lzzn(oci_version), and it doesn't seem to be installed by the Oracle client 12.1.0.1.0 for Linux.

OS is RHEL 6.2 64 bit. Oracle client is Linux 64 bit 12.1.0.1.0.

I just removed it from binding.gyp, and everything builds and works fine.

Thanks

chiahrens avatar Aug 15 '13 22:08 chiahrens

-lnnz<(oci_version) refers to libnnz[version].so, which comes with the instant client basic package. By default the binding.gyp looks for libnnz11.so, but you can set the environment variable OCI_VERSION to "10" or "12" to override that. This is probably the cause of your issue: because you're using OCI 12, you need to set that environment variable with the value "12".

However, you are correct that the module builds and executes correctly even if the flag -lnnz<(oci_version) is removed. Maybe someone else knows why we explicitly link to it? (Perhaps it's necessary on some systems?)

johannish avatar Sep 10 '13 14:09 johannish