ibm-messaging / mq-mqi-nodejs

Calling IBM MQ from Node.js - a JavaScript MQI wrapper
Apache License 2.0
79 stars 42 forks source link

Value to be set for setmqenv! #149

Closed sikkans closed 2 years ago

sikkans commented 2 years ago

Hi,

I cloned the library and ran non install after setting MQIJS_NOREDIST to '', so that it does not get downloaded. Rather I have downloaded it manually and unzipped the contents. When I run one of the sample program, I get below error

Cannot find MQ C library. System appears to be : win32[x64] Has the MQ C client been installed? Have you run setmqenv?

What value should be set to variable setmqenv?

ibmmqmet commented 2 years ago

setmqenv is a program - which is why you "run" it, not set it.

And it is described in the product documentation here

sikkans commented 2 years ago

Thanks Mark. I downloaded 9.3.0.0-IBM-MQC-Redist-Win64 manually as it was failing when I did npm install. I set the PATH to the bin folder under 9.3.0.0-IBM-MQC-Redist-Win64, through export command.

I do see setmqenv.cmd under the bin folder of 9.3.0.0-IBM-MQC-Redist-Win64. In the readme you had mentioned to run setmqenv from node_modules/ibmmq/samples. But I don't find any setmqenv under that folder. If I run . setmqenv -s -k from that folder through gitbash, I get an error that no such file or directory.

sikkans commented 2 years ago

Never mind. I figured it out