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
Cannot install the latest version (1.3.0) #251
Comments
This could be issue with your PC enviroment. What OS you have? Also try search google on this issue. https://www.robertkehoe.com/2015/03/fix-node-gyp-rebuild-error-on-windows/ |
I tried Mac OS X and Ubuntu. Neither worked. |
In short, while installing oracledb package binary module for oracledb is needed to compile and C compiler fails to do that. Do you have development tools and oracle client libraries on that OS you try? |
And check this for development tools you usualy need http://stackoverflow.com/questions/21365714/nodejs-error-installing-with-npm |
One more thing to try. According to this - node-inspector/v8-debug#7 There is problem with grunt-node-inspector. Try install latest version of it by issuing:
|
These are my steps:
I can install other packages though like "request", "redis", etc. My node version is 0.10.40. The requirement says that the package requires >0.10.28,<3.0.0. Thanks |
Check compile messages before ones you have posted.There should be some compile errors within driver binaries. |
Do you need proxy set? On Ubuntu, did you install libaio1? |
@cjbj Yes. I am behind proxy so I set proxy settings and installed libaio1. The docs mentions them https://github.com/oracle/node-oracledb/blob/master/INSTALL.md#instzip. |
Some more detail about how you installed Instant Client and set the OCI_*_DIR variables might help us find a solution. |
// Install oracle instant client // Install nvm |
What exactly did you do with ld.so.conf - and why did you also set LD_LIBRARY_PATH? Normally you would do one or the other. Does the verbose 'npm install' log show anything? Are there directory permission problems? |
I permanently added to LD_LIBRARY_PATH to "/etc/ld.so.conf.d/oracle-instantclient.conf" as I don't have other oracle installations. The documentation says: "To run applications, you will need to set the link path: export LD_LIBRARY_PATH=/opt/oracle/instantclient:$LD_LIBRARY_PATH Alternatively, if there is no other Oracle software on the machine that will be impacted, permanently add Instant Client to the run-time link path. Do this on Linux by creating a file /etc/ld.so.conf.d/oracle-instantclient.conf that contains the library location /opt/oracle/instantclient, and then run ldconfig as the root user." So, I did: My proxy settings are fine because I can install any other software or tools or node js packages from the server. I configured /etc/environment and /etc/apt/apt.conf.d/95proxies properly. npm install oracledb --verbose
gyp info it worked if it ends with ok npm ERR! oracledb@1.3.0 install: npm ERR! Please include the following file with any support request: |
I don't understand why it is so difficult to install oracledb package compared to mysql, redis, etc. |
The
It is not a shell script, so it won't understand |
@Sukhrob your error list is showing that you are using an old version of node-gyp (node-gyp@2.0.1). Could you try to upgrade and see if it works? |
I ended up using java as a bridge to connect to the remote oracle database as it is not working for my colleagues either. Anyway, thanks @cjbj, @Bigous, @gintsgints for your support. I wish I could find the problem if it exists and save time for others who may also have this problem. But, I haven't got enough time right now and need a solution immediately. But, I will come back to deal with this problem later so that others can benefit. |
@Sukhrob thanks for letting us know the outcome. |
The text was updated successfully, but these errors were encountered: