Closed MD2706GIT closed 3 years ago
Hi Massimo, Can you try running this on your IBM i? yum install unixODBC unixODBC-devel
I ran into a similar issue when trying to install node odbc the other day and if I remember correctly I had to install this on IBM i as well.
Hello Matt, thank you for replying. I was just trying to install the examples found in your blog ! I successfully installed the odbc you indicated, but the two node-red modules still fail... these are the messages coming from node-red: 4 Dec 10:27:44 - [info] Server now running at http://127.0.0.1:1880/ 4 Dec 10:28:22 - [info] Installing module: node-red-contrib-db2-for-i, version: 0.2.1 4 Dec 10:28:22 - [warn] Installation of module node-red-contrib-db2-for-i failed: 4 Dec 10:28:22 - [warn] ------------------------------------------ 4 Dec 10:28:22 - [warn] Error: spawn npm ENOENT 4 Dec 10:28:22 - [warn] ------------------------------------------ 4 Dec 10:28:22 - [error] Error: Install failed
Manually installing idb-connector (1.2.10) also fails, the log seems the same as the one I attached before... Everything looks very interesting, but I'm still stuck here...
It appears it's running the install from the bin directory, but doing a local install which seems like a very bad idea:
1179 warn enoent ENOENT: no such file or directory, open '/QOpenSys/pkgs/lib/nodejs14/bin/package.json'
1180 verbose enoent This is related to npm not being able to find a file.
Is this log from node-red or your manual install via SSH?
This is the log from manual install. The log coming from node-red is on my previous comment. Any suggestions on how to install ? I have to tell that I am an RPG developer, but I am trying to experiment the new open source capabilities...
Error: spawn npm ENOENT
seems to indicate that npm is not on the $PATH
. I'd suggest ensuring that /QOpenSys/pkgs/bin is on your $PATH and then starting node-red.
This IBM i OSS Readme goes over a number of the pieces needed. I am fairly new to open source as well and it takes some getting used to.
Thank you @kadler ! I set the path as follows and it finally worked ! PATH=/QOpenSys/pkgs/bin:$PATH export PATH
@thebeardedgeek now your dashboard is running, so I can start playing with it.. Anyway, I remember once I set in my home directory a .profile file to make the path "permanent"... this is the content, is there something wrong with it ? Thank you again
PATH=/QOpenSys/pkgs/bin:/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin
You may need to add export PATH
after it if you're not using Bash. If you are using Bash, you may need to check for .bash_profile which takes precedence over .profile.
Also make sure the data is in ASCII, not EBCDIC.
@MD2706GIT Did you get everything worked out on this?
Hello Matt, finally I got everything working, although I do not remember what i did.. it was some months ago. In any case, it's all OK. Thank you
Massimo
Il giorno gio 18 mar 2021 alle ore 13:54 Matt Seeberger < @.***> ha scritto:
@MD2706GIT https://github.com/MD2706GIT Did you get everything worked out on this?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/IBM/ibmi-oss-examples/issues/73#issuecomment-801901264, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJEWGTTBA3KN6LWJG6F2OYLTEHZZBANCNFSM4UNJDUZQ .
Closing as I believe this is resolved. Please reopen if you need further assistance. Thanks!
Hello. I successfully installed Node-red; from the menu "Manage palette" -> Install, I tried to install node-red-contrib-db2-for-i and node-red-dashboard but both installations fail. It appears it fails installing idb-connector. I also tried manually installing idb-connector from an SSH session, but it keeps failing. Could you please advise on how can I solve ? Thank you !
Here the log: 2020-12-04T10_51_53_880Z-debug.log