Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. Downloaded the client zip from OTN per the install doc on my laptop and then SCP'ed them to a linux VM
  2. Once SCP'ed:
  3. cd /opt/oracle
  4. unzip instantclient-basic-linux.x64-12.1.0.2.0.zip
  5. unzip instantclient-sdk-linux.x64-12.1.0.2.0.zip
  6. mv instantclient_12_1 instantclient
  7. cd instantclient
  8. ln -s libclntsh.so.12.1 libclntsh.so
  9. sudo yum install libaio1
  10. export LD_LIBRARY_PATH=/opt/oracle/instantclient:$LD_LIBRARY_PATH
  11. 916 sudo vi /etc/ld.so.conf.d/oracle-instantclient.conf to add /opt/oracle/instantclient/
  12. 917 sudo ldconfig
  13. export OCI_LIB_DIR=/opt/oracle/instantclient
  14. export OCI_INC_DIR=/opt/oracle/instantclient/sdk/include
  15. I don't have a proxy so proceeded to install:
  16. sudo npm install oracledb (I had to use sudo, otherwise the install was hitting permission issues)
  17. create a test select1.js to connect to a remove orcl instance
  18. hit error at this point:
  19. node_modules/oracledb/lib/oracledb.js:38
  20. throw err;
  21. ^
  22.  
  23. Error: Module did not self-register.
  24. at Object.Module._extensions..node (module.js:598:18)
  25. at Module.load (module.js:488:32)
  26. at tryModuleLoad (module.js:447:12)
  27. at Function.Module._load (module.js:439:3)
  28. at Module.require (module.js:498:17)
  29. at require (internal/module.js:20:19)
  30. at Object.<anonymous> (/home/nnirnakar/test/node_modules/oracledb/lib/oracledb.js:35:19)
  31. at Module._compile (module.js:571:32)
  32. at Object.Module._extensions..js (module.js:580:10)
  33. at Module.load (module.js:488:32)
  34.  
  35. I then try:
  36. sudo rm -rf node_modules
  37. sudo npm cache clean
  38. sudo npm install oracledb
  39. sudo npm rebuild
  40. ..but none of these help
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement