mariano / node-db-oracle

Oracle database bindings for Node.js
http://nodejsdb.org
141 stars 34 forks source link

Cannot install on debian #14

Closed amirotin closed 13 years ago

amirotin commented 13 years ago

Using latest oracle instantclient 11.2.0.3.0 x86 get the following error:

[1/2] cxx: build/.conf_check_0/test.cpp -> build/.conf_check_0/testbuild/Release/test_1.o
['/usr/bin/g++', '-g', '-Wall', '-I/opt/instantclient/sdk/include/', '../test.cpp', '-c', '-o', 'Release/test_1.o']
[2/2] cxx_link: build/.conf_check_0/testbuild/Release/test_1.o -> build/.conf_check_0/testbuild/Release/testprog
/usr/bin/ld: cannot find -locci
collect2: ld returned 1 exit status
['/usr/bin/g++', 'Release/test_1.o', '-o', '/var/claimweb/node-db-oracle/build/.conf_check_0/testbuild/Release/testprog', '-L/opt/instantclient', '-locci', '-lclntsh', '-lnnz11']
command returned 'Build failed:  -> task failed (err #1): \n\t{task: cxx_link test_1.o -> testprog}'Missing include files for OCI

Instantclient is located in /opt/instantclient

mariano commented 13 years ago

Can you do a:

$ ls -la /opt/instantclient

Because this line:

/usr/bin/ld: cannot find -locci

Tells you it's not finding libocci. If you see libocci.so in /opt/instantclient, try doing:

$ sudo ldconfig

And then re-installing db-oracle.

amirotin commented 13 years ago

It;s ok now. I've libocci.so.11.1. Just created symlink

2011/11/11 Mariano Iglesias < reply@reply.github.com>

Can you do a:

$ ls -la /opt/instantclient

Because this line:

/usr/bin/ld: cannot find -locci

Tells you it's not finding libocci. If you see libocci.so in /opt/instantclient, try doing:

$ sudo ldconfig

And then re-installing db-oracle.


Reply to this email directly or view it on GitHub: https://github.com/mariano/node-db-oracle/issues/14#issuecomment-2708573

mariano commented 13 years ago

Can you post what you did on this ticket so others with similar problems can see the solution?

mariano commented 13 years ago

Closing this

amirotin commented 13 years ago

Check if you have some libs with extension different to .so (.so.11.1 for example) and just do symbolic link ( ln -s /opt/instantclient/ libocci.so.11.1 /opt/instanyclient/libocci.so)

2011/11/11 Mariano Iglesias < reply@reply.github.com>

Can you post what you did on this ticket so others with similar problems can see the solution?


Reply to this email directly or view it on GitHub: https://github.com/mariano/node-db-oracle/issues/14#issuecomment-2708717