MQSeries Q Program Library Error

If you are using the IBM WebSphere MQ Q Program, also known as MA01, you may receive the following errors on Windows or Linux:

Error loading MQ library  RC(11)
Error loading MQ library  RC(126)

For both Windows and Linux, you simply have to download one of the appropriate WebSphere MQ V6.0 Clients (MQC6) or WebSphere MQ V7.0 Clients (MQC7). Free registration is required for these downloads.

On Windows, reboot your system after installing the Client libraries but before using the Q program. On Linux, you should add the command-line parameter -l mqic to the Q program for it to correctly find the necessary libraries.

If you have difficulties finding the installation instructions for WebSphere MQ like I did, you can grab the WebSphere MQ Quick Beginnings book for your appropriate operating system for WebSphere 6.0 or WebSphere 7.0.