--
You received this message because you are subscribed to the Google Groups "LoopbackJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loopbackjs+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Stevens-MacBook-Air:proofOfConcept SWESTF01$ sudo npm install loopback-connector-oracle --savePassword:npm WARN package.json proofOf...@0.0.1 No descriptionnpm WARN package.json proofOf...@0.0.1 No repository field.npm WARN package.json proofOf...@0.0.1 No README data> loopback-ora...@1.2.1 install /Users/SWESTF01/Documents/proofOfConcept/node_modules/loopback-connector-oracle/node_modules/loopback-oracle-installer> node pkginstall.jshttp://7e9918db41dd01dbf98e-ec15952f71452bc0809d79c86f5751b6.r22.cf1.rackcdn.com/loopback-oracle-MacOSX-x64-1.3.0.tar.gz is now extracted to /Users/SWESTF01/Documents/proofOfConcept/node_modules/loopback-connector-oracle/node_modules/Users/SWESTF01/strong-oracle.rc/Users/SWESTF01/strong-oracle.rc has been modified.---------------------------------------------------------------------------The node-oracle module and the Oracle specific libraries have beeninstalled in /Users/SWESTF01/Documents/proofOfConcept/node_modules/loopback-connector-oracle/node_modules/loopback-oracle-installer.The default bashrc (/etc/bashrc) or user's bash_profile (~/.bash_profile)paths have been modified to use this path. If you use a shell other thanbash, please remember to set the DYLD_LIBRARY_PATH prior to using node.Example:$ export DYLD_LIBRARY_PATH=":/Users/SWESTF01/Documents/proofOfConcept/node_modules/loopback-connector-oracle/node_modules/instantclient"loopback-con...@1.4.0 node_modules/loopback-connector-oracle├── de...@0.8.1├── loopback-...@1.1.0├── as...@0.9.0└── loopback-ora...@1.2.1 (grace...@2.0.3, fst...@0.1.25, t...@0.1.19, req...@2.36.0, buffere...@0.0.1)Stevens-MacBook-Air:proofOfConcept SWESTF01$ slc runsupervisor running without clustering (unsupervised)connect.multipart() will be removed in connect 3.0visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternativesconnect.limit() will be removed in connect 3.02014-06-26T14:55:24.227Z pid:367 worker:supervisor INFO strong-agent not profiling, configuration not found.2014-06-26T14:55:24.229Z pid:367 worker:supervisor Generate configuration with:2014-06-26T14:55:24.230Z pid:367 worker:supervisor npm install -g strong-cli2014-06-26T14:55:24.230Z pid:367 worker:supervisor slc strongops2014-06-26T14:55:24.231Z pid:367 worker:supervisor See http://docs.strongloop.com/strong-agent for more information.Browse your REST API at http://0.0.0.0:3000/explorerLoopBack server listening @ http://0.0.0.0:3000/GET / 200 5ms - 63bGET /explorer/ 200 5ms - 2.92kbGET /explorer/css/hightlight.default.css 200 6ms - 2.09kbGET /explorer/css/screen.css 200 6ms - 46.93kbGET /explorer/lib/jquery-1.8.0.min.js 200 6ms - 90.39kbGET /explorer/lib/jquery.wiggle.min.js 200 6ms - 762bGET /explorer/lib/jquery.slideto.min.js 200 5ms - 369bGET /explorer/lib/jquery.ba-bbq.min.js 200 4ms - 4.02kbGET /explorer/lib/underscore-min.js 200 15ms - 12.52kbGET /explorer/lib/backbone-min.js 200 13ms - 16.08kbGET /explorer/lib/handlebars-1.0.0.js 200 19ms - 71.06kbGET /explorer/lib/swagger.js 200 13ms - 27.38kbGET /explorer/lib/highlight.7.3.pack.js 200 12ms - 7.32kbGET /explorer/swagger-ui.js 200 13ms - 71.93kbGET /explorer/fonts/OsJ2DjdpjqFRVUSto6IffLO3LdcAZYWl9Si6vvxL-qU.woff 200 3ms - 24.79kbGET /explorer/images/logo_small.png 200 3ms - 2.62kbGET /explorer/fonts/0ihfXUL2emPh0ROJezvraLO3LdcAZYWl9Si6vvxL-qU.woff 200 4ms - 28.86kbGET /explorer/config.json 304 1msGET /api/swagger/resources 304 24msGET /api/swagger/users 200 4ms - 12.42kbGET /api/swagger/accessTokens 200 2ms - 7.81kbGET /api/swagger/applications 200 3ms - 7kbGET /api/swagger/push 304 1msGET /api/swagger/installations 200 1ms - 9.84kbGET /api/swagger/notifications 200 3ms - 7.02kbGET /explorer/images/throbber.gif 200 1ms - 9.04kb
Stevens-MacBook-Air:proofOfConcept SWESTF01$ slc runsupervisor running without clustering (unsupervised)module.js:340throw err;^Error: Cannot find module 'oracle'at Function.Module._resolveFilename (module.js:338:15)at Function.Module._load (module.js:280:25)at Module.require (module.js:364:17)at require (module.js:380:17)at Object.<anonymous> (/Users/SWESTF01/Documents/proofOfConcept/app.js:2:16)at Module._compile (module.js:456:26)at Object.Module._extensions..js (module.js:474:10)at Module.load (module.js:356:32)at Function.Module._load (module.js:312:12)at Object.<anonymous> (/usr/local/lib/node_modules/strong-supervisor/bin/slr:29:19)
Stevens-MacBook-Air:proofOfConcept SWESTF01$
Stevens-MacBook-Air:proofOfConcept SWESTF01$ sudo npm install strong-oracle --save
npm WARN package.json proofOf...@0.0.1 No descriptionnpm WARN package.json proofOf...@0.0.1 No repository field.npm WARN package.json proofOf...@0.0.1 No README data
> strong...@1.2.0 install /Users/SWESTF01/Documents/proofOfConcept/node_modules/strong-oracle> node-gyp rebuildgyp ERR! build errorgyp ERR! stack Error: not found: makegyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:43:28)gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:46:29)gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:57:16ERR! stack at Object.oncomplete (fs.js:107:15)gyp ERR! System Darwin 11.4.2gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /Users/SWESTF01/Documents/proofOfConcept/node_modules/strong-oraclegyp ERR! node -v v0.10.29gyp ERR! node-gyp -v v0.13.1gyp ERR! not oknpm ERR! strong...@1.2.0 install: `node-gyp rebuild`npm ERR! Exit status 1npm ERR!npm ERR! Failed at the strong...@1.2.0 install script.npm ERR! This is most likely a problem with the strong-oracle package,npm ERR! not with npm itself.npm ERR! Tell the author that this fails on your system:npm ERR! node-gyp rebuildnpm ERR! You can get their info via:npm ERR! npm owner ls strong-oraclenpm ERR! There is likely additional logging output above.npm ERR! System Darwin 11.4.2npm ERR! command "node" "/usr/local/bin/npm" "install" "strong-oracle" "--save"npm ERR! cwd /Users/SWESTF01/Documents/proofOfConceptnpm ERR! node -v v0.10.29npm ERR! npm -v 1.4.14npm ERR! code ELIFECYCLEnpm ERR!npm ERR! Additional logging details can be found in:npm ERR! /Users/SWESTF01/Documents/proofOfConcept/npm-debug.lognpm ERR! not ok code 0
Stevens-MacBook-Air:proofOfConcept SWESTF01$ sudo npm install strong-oracle --save
Password:
npm WARN package.json proofOf...@0.0.1 No descriptionnpm WARN package.json proofOf...@0.0.1 No repository field.npm WARN package.json proofOf...@0.0.1 No README data> strong...@1.2.0 install /Users/SWESTF01/Documents/proofOfConcept/node_modules/strong-oracle> node-gyp rebuild
CXX(target) Release/obj.target/oracle_bindings/src/connection.oIn file included from ../src/connection.cpp:2:../src/connection.h:9:10: fatal error: 'occi.h' file not found#include <occi.h>^1 error generated.make: *** [Release/obj.target/oracle_bindings/src/connection.o] Error 1gyp ERR! build errorgyp ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)gyp ERR! stack at ChildProcess.emit (events.js:98:17)gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
Stevens-MacBook-Air:proofOfConcept SWESTF01$
Thanks again Raymond for all of your help.
Stevens-MacBook-Air:~ SWESTF01$ cd $OCI_LIB_DIRStevens-MacBook-Air:instantclient_11_2 SWESTF01$ ln -s libclntsh.dylib.11.1 libclntsh.dylibln: libclntsh.dylib: File existsStevens-MacBook-Air:instantclient_11_2 SWESTF01$ ln -s libocci.dylib.11.1 libocci.dylibln: libocci.dylib: File existsStevens-MacBook-Air:instantclient_11_2 SWESTF01$ printenvOCI_INCLUDE_DIR=/Users/SWESTF01/Documents/instantclient_11_2/sdk/includeTERM_PROGRAM=Apple_TerminalTERM=xterm-256colorSHELL=/bin/bashTMPDIR=/var/folders/8z/bt9kgtn52kbc3j3fn7fl1xc00000gn/T/Apple_PubSub_Socket_Render=/tmp/launch-2YMinC/RenderTERM_PROGRAM_VERSION=303.2OLDPWD=/Users/SWESTF01TERM_SESSION_ID=4FDD5293-0CD2-4C64-9A67-F6C581F4792BOCI_HOME=/Users/SWESTF01/Documents/instantclient_11_2USER=SWESTF01COMMAND_MODE=unix2003SSH_AUTH_SOCK=/tmp/launch-h5IsEF/Listeners__CF_USER_TEXT_ENCODING=0x1F5:0:0Apple_Ubiquity_Message=/tmp/launch-lOXcFy/Apple_Ubiquity_MessagePATH=/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/binPWD=/Users/SWESTF01/Documents/instantclient_11_2LANG=en_CA.UTF-8SHLVL=1HOME=/Users/SWESTF01LOGNAME=SWESTF01DISPLAY=/tmp/launch-CQ75zq/org.x:0OCI_LIB_DIR=/Users/SWESTF01/Documents/instantclient_11_2SECURITYSESSIONID=186a4_=/usr/bin/printenvStevens-MacBook-Air:instantclient_11_2 SWESTF01$ cd ..Stevens-MacBook-Air:Documents SWESTF01$ cd proofOfConcept/
C:\nodejs\mafia>slc run
strong-agent not profiling, configuration not found.
Generate configuration with:npm install -g strong-clislc strongops
See http://docs.strongloop.com/strong-agent for more information.
supervisor running without clustering (unsupervised)connect.multipart() will be removed in connect 3.0visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternativesconnect.limit() will be removed in connect 3.0
C:\nodejs\mafia\node_modules\loopback-connector-oracle\lib\oracle.js:13throw err;^Error: The specified procedure could not be found.C:\nodejs\mafia\node_modules\loopback-connector-oracle\node_modules\strong-oracle\build\Release\oracle_bindings.node
at Module.load (module.js:356:32)at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)at require (module.js:380:17)
at Object.<anonymous> (C:\nodejs\mafia\node_modules\loopback-connector-oracle\node_modules\strong-oracle\lib\oracle.js:4:14)
at Module._compile (module.js:456:26)at Object.Module._extensions..js (module.js:474:10)at Module.load (module.js:356:32)at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)C:\nodejs\mafia>
var oracleConnector = require('loopback-connector-oracle');
var oracleDriver = require('strong-oracle');
var connectData = { 'tns': 'MY_DESC_NAME', 'user': 'USER_XXX', 'password': 'XXXXXXX', 'database': 'MY_DB' };oracleConnector.connect(connectData, function(err, connection) {
if (err) { console.log('Error connecting to db:', err); return; }connection.execute('SELECT systimestamp FROM dual', [], function(err, results) {if (err) { console.log('Error executing query:', err); return; }console.log(results);connection.close(); // call only when query is finished executing});});