-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Segmentation fault after install #582
Comments
Looks like some some environment thing is happening. Are you running SQL*Plus in the same terminal that you are trying to run Node? Try getting a newer version of the Oracle Client. At least 11.2.0.4, but 12.1 would be better. It would also be worth checking a newer version of Node, e.g. Node 6. There's no need to set ORACLE_HOME when using Instant Client. Did you unzip the Instant Client basic into /home/fakeuser/11202/lib or /home/fakeuser/11202? |
I am getting the similar error: Segmentation fault: 11 |
@arsragavan install and environment details would be useful. |
@cjbj node -e "require('segfault-handler').registerHandler('crash.log'); require('oracledb')" is throwing error.I have tried npm rebuild and also removing node_modules and npm install from scratch export OCI_LIB_DIR=/XXX/instantclient Btw, sqlplus works fine The stack trace is same as mentioned in the issue: #371 (comment) |
@arsragavan it doesn't occur for me on 10.11.6 so we'll need your help to work out what is going on. The issue you referenced seemed to be caused by access or environment configuration. What user is everything installed as? What user is running it? Do you have a copy of the old Instant Client lying around? Also, don't set ORACLE_HOME if you are using Instant Client. |
npm, node, instantclient everything is installed as my username (arsragavan) gcc and other Xcode libraries are installed as root |
@cjbj thanks for your reply, answers below; Are you running SQL*Plus in the same terminal that you are trying to run Node? Try getting a newer version of the Oracle Client. At least 11.2.0.4, but 12.1 would be better. It would also be worth checking a newer version of Node, e.g. Node 6. There's no need to set ORACLE_HOME when using Instant Client. Did you unzip the Instant Client basic into /home/fakeuser/11202/lib or /home/fakeuser/11202? Doing a standard unzip of the two Instant Client package would have the sdk directory at the same level as the libraries, not in a sub dir. |
Ok this can be closed as far as I'm concerned because I discovered, in fact, that a part of the oracle server had been installed instead of the instant client! Sorry for the time waste and thanks for your help.. |
It worked for me after setting the LD_LIBRARY_PATH environment variable to instantclient folder. I see this step is missing in the documentation: https://github.com/oracle/node-oracledb/blob/master/INSTALL.md#instosx |
@duncanh Sounds like you had some library clash. You can install node-oracledb using just the RDBMS libraries. @arsragavan you might want to check that, since LD_LIBRARY_PATH is a Linux thing, as far as I'm aware. OS X used to use DYLD_LIBARY_PATH until recent versions introduced SIP and stopped this variable working in subshells (see #149, #231). |
Hi - got a problem with loading this library after install. Many thanks in advance for any help you can offer! :)
(Can't seem to 'require' it at all)
Actual command is in the trace above, but installation appeared to go absolutely fine - logged in as fakeuser;
What is your version of Node.js?
v0.12.16
What is your version of the Oracle client (e.g. Instant Client)? How was it installed? Where it is installed?
Oracle Instant Client Basic 11.2.02 (not lite)
What is your OS and version?
Suse Linux Enterprise 11.3
What compiler version did you use? For example, with GCC, run
gcc --version
gcc (SUSE Linux) 4.3.4 [gcc-4_3-branch revision 152973]
Prob worth noting that;
The text was updated successfully, but these errors were encountered: