strongloop / strong-oracle

Deprecated: Node.js Driver for Oracle databases (Use https://github.com/oracle/node-oracledb instead)
Other
45 stars 18 forks source link

(install) Instantclient lnnz$$ library #12

Closed soyuka closed 9 years ago

soyuka commented 10 years ago

Hi,

The lnnz12 library might differ according to the installed instanclient. Oracle 11 will have the lnnz11 library for example (https://github.com/strongloop/strong-oracle/blob/master/binding.gyp#L29).

I see a few options here:

medokin commented 9 years ago

Yeah i am getting an error on v11:

make: Gehe in Verzeichnis '/home/superuser/node_modules/strong-oracle/build'
  CXX(target) Release/obj.target/oracle_bindings/src/connection.o
  CXX(target) Release/obj.target/oracle_bindings/src/oracle_bindings.o
  CXX(target) Release/obj.target/oracle_bindings/src/executeBaton.o
  CXX(target) Release/obj.target/oracle_bindings/src/outParam.o
  CXX(target) Release/obj.target/oracle_bindings/src/reader.o
  CXX(target) Release/obj.target/oracle_bindings/src/statement.o
  SOLINK_MODULE(target) Release/obj.target/oracle_bindings.node
/usr/bin/ld: cannot find -lnnz12
collect2: error: ld returned 1 exit status

Is there a workaround?

soyuka commented 9 years ago

Yes change the lnnz12 value to lnnz11 before compiling.

medokin commented 9 years ago

So it means that i cannot just run "npm install strong-oracle"? I need to download it, and run the script manually?

soyuka commented 9 years ago

That's why I made the issue, yes.

raymondfeng commented 9 years ago

If you install the latest version of instant client for linux, the version is lnnz12.

You can also check out https://github.com/strongloop/loopback-oracle-installer

soyuka commented 9 years ago

Yes but sometimes you can't just install the latest oracle version even if you want to ;).

medokin commented 9 years ago

I agree, Version 11 mandatory for me as well. +1 Am 24.09.2014 18:14 schrieb "Antoine Bluchet" notifications@github.com:

Yes but sometimes you can't just unstall the latest oracle version like this ;).

— Reply to this email directly or view it on GitHub https://github.com/strongloop/strong-oracle/issues/12#issuecomment-56695270 .

soyuka commented 9 years ago

@raymondfeng Could you add an env variable with the version used?

Given OCI_VERSION=11 it would be lnnz$OCI_VERSION.

bnoordhuis commented 9 years ago

If someone could test #14, that would be great.