-
Notifications
You must be signed in to change notification settings - Fork 149
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
Problem when installing with no internet connection #436
Comments
@vincenthodicq Seems, few system environment variables not get updated. Do you see file ibm_db/installer/clidriver/lib/lidb2.so.1 after installation? If yes, |
@vincenthodicq Please share the output of |
Hi @bimalkjha , sorry for the delay but issue must not be closed. Like your comment saying that some variables were not updated, my problem was fixed by executing As said in previous posts, there is no clidriver in ibm_db/installer directory. Only on the path that I manually configured using IBM_DB_HOME. When doing an online installation, clidriver folder is copied to ibm_db/installer directory; when doing an offline installation with IBM_DB_HOME var, clidriver is not copied, only referenced to the path of IBM_DB_HOME. Why clidriver directory is not copied in ibm_db/installer directory with an offline one? It would have fixed everything. I know I can set automatically my variables in my linux to be loaded after a reboot or connection. But I still have to source setenv file manually after each install. This must be avoided, module must work after a npm install directly. I must not script some steps to make it work, if there is a future release with rework on installation scripts, my setup would not be working anymore... |
Hi @vincenthodicq ,
Well, Let me try to clear the scenario:
I hope this clarifies. |
Hi Rohit, thanks for the interest of my problem ;-) My goal is to install ibm_db on an offline server, let's call it DEV. But when running my application, it is failing as it is looking for clidriver files inside the node_modules/ibm_db/installer directory. If it was using path of IBM_DB_HOME variable (that was correctly set on my server), it would not have failed as this var is pointing to the location of clidriver. This is the problem. I have to explicitly invoke setenv.sh script located at node_modules/ibm_db/installer to make it work. Whereas, with an online install, no need to do anything after the install. |
What platform you are using? |
Linux RHEL 7.3 |
And what all environment variables are set in your system related to this module? Why you are setting IBM_DB_INSTALLER_URL if you are already setting IBM_DB_HOME? I mean both are for same purpose but works differently (you need to use just one):
Check this link for reference: env variables So, let me get back to the problem. Can you please check if there is any "LD_LIBRARY_PATH" env variable set or not? (- in those cases when you are getting above error. I am sure at the time of online installation ibm_db is setting this variable but not sure about offline installation - you will need to set that manually) |
I was setting IBM_DB_INSTALLER_URL to void to be sure to use IBM_DB_HOME var. LD_LIBRARY_PATH is not set after installation of ibm_db. After running setenv.sh script, variable is set. |
Yes, so you will need to set LD_LIBRARY_PATH env variable to --> $IBM_DB_HOME/lib
I think that should work and you will not get any further error. |
Thanks for notifying it, I will update this information (about LD_LIBRARY_PATH) in the README doc. |
Thanks Rohit, setting both IBM_DB_HOME & LD_LIBRARY_PATH before offline installation of ibm_db makes it work. |
Hi @rhtpandeyIN , With your explanations, everything is working perfectly on 1 server: I added IBM_DB_HOME & LD_LIBRARY_PATH as env variables and my app with ibm_db is working nice. I had to deploy to another environment where I reproduced the same configuration. And this time, even with IBM_DB_HOME & LD_LIBRARY_PATH present as env vars, my app is failing with: `/opt/myapp/node_modules/bindings/bindings.js:83 Error: libdb2.so.1: cannot open shared object file: No such file or directory I used ldd command to find if all libraries were found for /opt/myapp/node_modules/ibm_db/build/Release/odbc_bindings.node file:
libdb2.so.1 is found by the system. But when running node application, it fails. Do you have an idea? Thanks again for your help PS: I removed LD_LIBRARY_PATH from my system and re-launch ldd command. It shows: |
Hi,
this issue is related to #424 issue that was closed a few weeks back. With advices from @bimalkjha, installation of ibm_db is succesful on a server without internet connection using following commands:
export IBM_DB_INSTALLER_URL=
export IBM_DB_HOME=/opt/clidriver/
npm install --nodedir=/home/myuser/.node-gyp/6.9.5/
No error after npm install commands. But when launching our application, there are some missing files from ibm_db install directory:
When installing ibm_db on a server with internet connection, no issue, no missing file.
Thanks in advance for your help.
The text was updated successfully, but these errors were encountered: