Closed soyuka closed 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?
Yes change the lnnz12
value to lnnz11
before compiling.
So it means that i cannot just run "npm install strong-oracle"? I need to download it, and run the script manually?
That's why I made the issue, yes.
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
Yes but sometimes you can't just install the latest oracle version even if you want to ;).
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 .
@raymondfeng Could you add an env variable with the version used?
Given OCI_VERSION=11
it would be lnnz$OCI_VERSION
.
If someone could test #14, that would be great.
Hi,
The
lnnz12
library might differ according to the installed instanclient. Oracle 11 will have thelnnz11
library for example (https://github.com/strongloop/strong-oracle/blob/master/binding.gyp#L29).I see a few options here: