Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(install) Instantclient lnnz$$ library #12

Closed
soyuka opened this issue Sep 4, 2014 · 9 comments · Fixed by #14
Closed

(install) Instantclient lnnz$$ library #12

soyuka opened this issue Sep 4, 2014 · 9 comments · Fixed by #14

Comments

@soyuka
Copy link

soyuka commented Sep 4, 2014

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:

  • notify this to users in the README
  • add en env variable with the OCI installed version
  • parse the OCI_LIB_DIR for the proper version
@medokin
Copy link

medokin commented Sep 24, 2014

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
Copy link
Author

soyuka commented Sep 24, 2014

Yes change the lnnz12 value to lnnz11 before compiling.

@medokin
Copy link

medokin commented Sep 24, 2014

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

@soyuka
Copy link
Author

soyuka commented Sep 24, 2014

That's why I made the issue, yes.

@raymondfeng
Copy link
Member

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
Copy link
Author

soyuka commented Sep 24, 2014

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

@medokin
Copy link

medokin commented Sep 24, 2014

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
#12 (comment)
.

@soyuka
Copy link
Author

soyuka commented Sep 24, 2014

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

Given OCI_VERSION=11 it would be lnnz$OCI_VERSION.

bnoordhuis added a commit that referenced this issue Sep 25, 2014
Make the version of the OCI libraries to link against configurable
through the GYP_DEFINES environment variable.

Fixes #12.
@bnoordhuis
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants