mariano / node-db-oracle

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

Mountain Lion #44

Open RealFlaco opened 12 years ago

RealFlaco commented 12 years ago

Hi:

I've been trying to install this module without any success, the following lines are taken from config.log file:

[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 ld: warning: ld: warning: ld: warning: ignoring file Release/test_1.o, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 1 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): Release/test_1.oignoring file /opt/instantclient/libocci.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /opt/instantclient/libocci.dylibignoring file /opt/instantclient/libclntsh.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /opt/instantclient/libclntsh.dylib

ld: warning: ignoring file /opt/instantclient/libnnz10.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /opt/instantclient/libnnz10.dylib Undefined symbols for architecture i386: "_main", referenced from: start in crt1.10.6.o ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status ['/usr/bin/g++', 'Release/test_1.o', '-o', '/Users/flaco/Sites/NodeApps/node_modules/db-oracle/build/.conf_check_0/testbuild/Release/testprog', '-arch', 'i386', '-L/opt/instantclient', '-locci', '-lclntsh', '-lnnz10'] command returned 'Build failed: -> task failed (err #1): \n\t{task: cxx_link test_1.o -> testprog}'Missing include files for OCI

Hoping someone here could help me :(

RealFlaco commented 12 years ago

This happens if making use of the instant client x64

ghost commented 11 years ago

See https://github.com/joyent/node/issues/3633