Monthly Archives: September 2011

Install IBM WebSphere MQ on Ubuntu


Install following packages, if not already installed.

sudo apt-get install rpm
sudo apt-get install ia32-libs
sudo apt-get install libgtk2.0-dev

I have noticed some shell related warnings like

[: 120: MQSeriesTXClient: unexpected operator
[: 134: MQSeriesClient: unexpected operator

Though it doesn’t affect WSMQ installation, but to avoid this make sure default shell is bash not dash

unlink /bin/sh
ln -s /bin/bash /bin/sh

Download the tar ball into a new directory, then extract (use appropriate name of tar ball)

tar -xzvf WMQSOURCE.tar.gz

Accept the license agreement

sudo ./ -accept

Note: Do the above command from a non-X11 console/terminal

Install the rpm packages

rpm --nodeps --force-debian -ivh MQSeriesRuntime-6.0.1-0.x86_64.rpm
rpm --nodeps --force-debian -ivh MQSeriesSamples-6.0.1-0.x86_64.rpm
rpm --nodeps --force-debian -ivh MQSeriesSDK-6.0.1-0.x86_64.rpm
rpm --nodeps --force-debian -ivh MQSeriesServer-6.0.1-0.x86_64.rpm
rpm --nodeps --force-debian -ivh MQSeriesMan-6.0.1-0.x86_64.rpm
rpm --nodeps --force-debian -ivh MQSeriesJava-6.0.1-0.x86_64.rpm
rpm --nodeps --force-debian -ivh MQSeriesTXClient-6.0.1-0.x86_64.rpm
rpm --nodeps --force-debian -ivh MQSeriesClient-6.0.1-0.x86_64.rpm

Note:  –force-debian option is new with Ubuntu 9.10 and can be left out with prior releases of Ubuntu

Automatic Startup

Please download MSL1 support SupportPac from IBM website.

This SupportPac provides an RPM package containing an init script to start and stop IBM WebSphere MQ Queue Managers.

Installation Instructions

Download the tar ball into a new directory, then extract

tar xzf msl1.tar.gz

Install the rpm packages

cd MSL1
rpm -ivh --nodeps --force-debian MSL1-1.0.1-1.noarch.rpm

Rename installed init script for your ease of use

mv /etc/init.d/ /etc/init.d/wsmq

You can manage your queue manger using service command e.g.

service wsmq status
service wsmq stop
service wsmq start

If you have difficulties installing init script, you can download this service.tar here and follow the instructions below

tar -xvf service.tar
mkdir /etc/conf.d
cp /etc/conf.d
cp wsmq /etc/init.d/

service wsmq status


To uninstall all MQSeries RPM packages

sudo rpm -qa | grep MQSeries | xargs sudo rpm -e --noscripts --force-debian --nodeps
sudo rpm -qa | grep gsk7bas  | xargs sudo rpm -e --noscripts --force-debian --nodeps


sudo rpm -e --nodeps --noscripts --force-debian `rpm -qa | grep MQS`

Also delete WSMQ data

rm -rf /var/mqm/*
rm -rf /opt/mqm
Array ( [marginTop] => 100 [pageid] => @techish1 [alignment] => left [width] => 292 [height] => 300 [color_scheme] => light [header] => header [footer] => footer [border] => true [scrollbar] => scrollbar [linkcolor] => #2EA2CC )