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

Missing include files for OCI #39

Open
sigyun opened this issue Jun 5, 2012 · 1 comment
Open

Missing include files for OCI #39

sigyun opened this issue Jun 5, 2012 · 1 comment

Comments

@sigyun
Copy link

sigyun commented Jun 5, 2012

Hi
I'm trying to use node-db-oracle but it's not easy T.T
this is the message for my error

node-waf configure build --verbose
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : ok /home/sigyun/Downloads/node_modules
Checking for node prefix : ok /usr/local
Checking for header occi.h : 22:08:34 runner system command -> ['/usr/bin/g++', '-g', '-Wall', '-I/opt/instantclient/sdk/include/', '../test.cpp', '-c', '-o', 'Release/test_1.o']
22:08:35 runner system command -> ['/usr/bin/g++', 'Release/test_1.o', '-o', '/home/sigyun/Downloads/node_modules/db-oracle/build/.conf_check_0/testbuild/Release/testprog', '-L/opt/instantclient', '-locci', '-lclntsh', '-lnnz11']
Missing include files for OCI
/home/sigyun/Downloads/node_modules/db-oracle/wscript:42: error: the configuration failed (see '/home/sigyun/Downloads/node_modules/db-oracle/build/config.log')

and this is config.log

<==
[1/2] �[32mcxx: build/.conf_check_0/test.cpp -> build/.conf_check_0/testbuild/Release/test_1.o
�[0m['/usr/bin/g++', '-g', '-Wall', '-I/opt/instantclient/sdk/include/', '../test.cpp', '-c', '-o', 'Release/test_1.o']
[2/2] �[33mcxx_link: build/.conf_check_0/testbuild/Release/test_1.o -> build/.conf_check_0/testbuild/Release/testprog
�[0m/usr/bin/ld: skipping incompatible /opt/instantclient/libocci.so when searching for -locci
/usr/bin/ld: cannot find -locci
/usr/bin/ld: skipping incompatible /opt/instantclient/libclntsh.so when searching for -lclntsh
/usr/bin/ld: cannot find -lclntsh
/usr/bin/ld: skipping incompatible /opt/instantclient/libnnz11.so when searching for -lnnz11
/usr/bin/ld: cannot find -lnnz11
collect2: ld returned 1 exit status
['/usr/bin/g++', 'Release/test_1.o', '-o', '/home/sigyun/Downloads/node_modules/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

I think it couldn't find include file
like locci / lclntsh and lnnz11

but I already set OCI_INCLUDE_DIR and OCI_LIB_DIR

declare -x OCI_INCLUDE_DIR="/opt/instantclient/sdk/include/"
declare -x OCI_LIB_DIR="/opt/instantclient"

so, I don't know what to do help me T T

@radiodario
Copy link

I'm finding the same issue, on Mac os x

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

No branches or pull requests

2 participants