I am installing Broker as root on a CentOS 6.3 VM.

Here is a note from IBM: If you plan to run the installation as a user with root authority, then complete the following steps:

Under root authority, the installation automatically creates a security group called mqbrkrs. You must add your root authority login ID to the group after it has been created.

If you have already installed WebSphere MQ on this system, a group called mqm and a user called mqm have already been defined. If you have not yet installed WebSphere MQ, you must create this group and user.

Add your root authority user login ID to the group mqm, along with the user ID mqm.

On some systems, you must log off and log on again for these new group definitions (mqbrkrs and mqm) to be recognized.

Uploaded the following files and unpacked them

Then ran chmod 750 on WMB install folders so I can run installer

./setupLinux64.bin

Configuring the installer for this system’s environment…

strings: ‘/lib/libc.so.6′: No such file

Launching installer…

./setuplinuxx64.bin: /tmp/install.dir.32648/Linux/resource/jre/jre/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

./setuplinuxx64.bin: line 2506: /tmp/install.dir.32648/Linux/resource/jre/jre/bin/java:

There is a missing dependency, so I ran the following command

yum install ld-linux.so.2

Result:
[root@localhost messagebroker_ia_runtime1]# yum install ld-linux.so.2

Loaded plugins: fastestmirror, refresh-packagekit, security

Loading mirror speeds from cached hostfile

* base: mirror.simwood.com

* extras: mirror.for.me.uk

* updates: www.mirrorservice.org

Setting up Install Process

Resolving Dependencies

–> Running transaction check

—> Package glibc.i686 0:2.12-1.80.el6_3.7 will be installed

–> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.12-1.80.el6_3.7.i686

–> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.80.el6_3.7.i686

–> Running transaction check

—> Package nss-softokn-freebl.i686 0:3.12.9-11.el6 will be installed

–> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================================================================================

Package Arch Version Repository Size

===========================================================================================================================================================================

Installing:

glibc i686 2.12-1.80.el6_3.7 updates 4.3 M

Installing for dependencies:

nss-softokn-freebl i686 3.12.9-11.el6 base 116 k

Transaction Summary

===========================================================================================================================================================================

Install 2 Package(s)

Total download size: 4.4 M

Installed size: 13 M

Is this ok [y/N]: y

Downloading Packages:

(1/2): glibc-2.12-1.80.el6_3.7.i686.rpm | 4.3 MB 00:01

(2/2): nss-softokn-freebl-3.12.9-11.el6.i686.rpm | 116 kB 00:00

—————————————————————————————————————————————————————————

Total 2.0 MB/s | 4.4 MB 00:02

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Installing : glibc-2.12-1.80.el6_3.7.i686 1/2

Installing : nss-softokn-freebl-3.12.9-11.el6.i686 2/2

Verifying : nss-softokn-freebl-3.12.9-11.el6.i686 1/2

Verifying : glibc-2.12-1.80.el6_3.7.i686 2/2

Installed:

glibc.i686 0:2.12-1.80.el6_3.7

Dependency Installed:

nss-softokn-freebl.i686 0:3.12.9-11.el6

Let’ stry again, and then we get this error

libgcc_s.so.1 must be installed for pthread_cancel to work

libgcc_s.so.1 must be installed for pthread_cancel to work

Launching installer…

libgcc_s.so.1 must be installed for pthread_cancel to work

JVMDUMP006I Processing dump event “abort”, detail “” – please wait.

JVMDUMP032I JVM requested System dump using ‘/tmp/install.dir.412/core.20130209.233058.412.0001.dmp’ in response to an event

libgcc_s.so.1 must be installed for pthread_cancel to work

Aborted (core dumped)

yum install libgcc_s.so.1

Result
[root@localhost messagebroker_ia_runtime1]# yum install libgcc_s.so.1

Loaded plugins: fastestmirror, refresh-packagekit, security

Loading mirror speeds from cached hostfile

* base: mirror.ox.ac.uk

* extras: mirror.ox.ac.uk

* updates: mirror.ox.ac.uk

Setting up Install Process

Resolving Dependencies

–> Running transaction check

—> Package libgcc.i686 0:4.4.6-4.el6 will be installed

–> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================================================

Package Arch Version Repository Size

=============================================================================================================================================================================================================================================

Installing:

libgcc i686 4.4.6-4.el6 base 111 k

Transaction Summary

=============================================================================================================================================================================================================================================

Install 1 Package(s)

Total download size: 111 k

Installed size: 144 k

Is this ok [y/N]: y

Downloading Packages:

libgcc-4.4.6-4.el6.i686.rpm | 111 kB 00:00

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Installing : libgcc-4.4.6-4.el6.i686 1/1

Verifying : libgcc-4.4.6-4.el6.i686 1/1

Installed:

libgcc.i686 0:4.4.6-4.el6

Complete!

[root@localhost messagebroker_ia_runtime1]#

Lets’s try again:

root@localhost messagebroker_ia_runtime1]# ./setuplinuxx64

Preparing to install…

Extracting the JRE from the installer archive…

Unpacking the JRE…

Extracting the installation resources from the installer archive…

Configuring the installer for this system’s environment…

Launching installer…

Graphical installers are not supported by the VM. The console mode will be used instead…

===============================================================================

Select language

—————

1- Deutsch

->2- English

3- Español

4- Français

5- Italiano

6- Português (Brasil)

Select language by number:

Follow instructions, I chose to install on

Default Install Folder: /opt/ibm/mqsi/8.0.0.1

[User] /opt/ibm/mqsi/8.0.0.1/IBM_WebSphere_Message_Broker_InstallLog.log

[Debug] /var/mqsi/WMB_8001_installer_debug.log

mqbrkrs:x:501:

[root@localhost wmb8]# cat /etc/group

You can see the new group has been created.

We then continue on and the installer completes. We now need to install WMQ 7.5

We have now only just installed the Broker components,

We now need to install WMQ.

Upload WMQ files and install WMQ core.

Installing WMQ 7.5

[root@localhost wmq75]# rpm -ivh MQSeriesRuntime-7.5.0-0.x86_64.rpm MQSeriesServer-7.5.0-0.x86_64.rpm

Preparing… ########################################### [100%]

1:MQSeriesRuntime ########################################### [ 50%]

2:MQSeriesServer ########################################### [100%]

mqm:x:495:502::/var/mqm:/bin/bash

[root@localhost wmq75]# cat /etc/passwd

OK so now we need to do a bit of profile and ownership maintenance:

We need to add root and mqm to the mqbrkrs group.

[root@localhost wmq75]# usermod -g mqm root

[root@localhost wmq75]# usermod -g mqbrkrs root

[root@localhost wmq75]# usermod -g mqbrkrs mqm

[root@localhost wmq75]# usermod -g mqm mqm

Now we can modify mqm’s profile so that it can automatically run MQ and MQSI commands:

[root@localhost wmq75]# su – mqm

-bash-4.1$ pwd

/var/mqm

We have proven we can login to the mqm account and we find that our home directory is /var/mqmq we can now modify .bashrc

Now since we did not create our mqm user correctly (should have done this first to ensure that we have a well prepared user’s hoe folder) we can use

cp /etc/skel/.* /etc/skel/* .

This command will copy in the profile scripts such as

-rw——-. 1 mqm mqm 63 Feb 10 00:06 .bash_history

-rw-r–r–. 1 mqm mqm 18 Feb 10 00:09 .bash_logout

-rw-r–r–. 1 mqm mqm 176 Feb 10 00:09 .bash_profile

-rw-r–r–. 1 mqm mqm 124 Feb 10 00:09 .bashrc

drwxrwsr-x. 13 mqm mqm 4096 Feb 10 00:09 .

-rw-r–r–. 1 mqm mqm 500 Feb 10 00:09 .emacs

Issue the mqsiprofile command:

. install_dir/bin/mqsiprofile

You must include the period and space preceding the location for this invocation to work correctly. Add this command to your login profile if you want it to be run at the start of every session.

This command accesses additional scripts that you have copied to the common/profiles directory, therefore the environment is initialized for runtime components and other resources such as databases.

OK, lets edit .bashrc as follows:

# User specific aliases and functions

#load MQ environment

. /opt/mqm/bin/setmqenv -s

#Load MQSI (WMB) environment

. /opt/ibm/mqsi/8.0.0.1//bin/mqsiprofile

A good idea is to test that we have access to both mq and mqso commands:

[mqm@localhost ~]$ dspmqver

Name: WebSphere MQ

Version: 7.5.0.0

Level: p000-L120604

BuildType: IKAP – (Production)

Platform: WebSphere MQ for Linux (x86-64 platform)

Mode: 64-bit

O/S: Linux 2.6.32-279.el6.x86_64

InstName: Installation1

InstDesc:

InstPath: /opt/mqm

DataPath: /var/mqm

Primary: No

MaxCmdLevel: 75

mqsilist
Result
[mqm@localhost ~]$ mqsilist

(utility.mqsilist)[1]BIP2229W: Warning: abend file directory (/var/mqsi/common/errors) open failed: errno 13. Using directory /tmp 0

Failed to open file /var/mqsi/common/log/utility.mqsilist.trace.bin.0 with error No such file or directory

Failed to open file /var/mqsi/common/log/utility.mqsilist.userTrace.bin.0 with error No such file or directory

BIP4516S: Failed to find all the required WebSphere MQ java classes. Class ‘com.ibm.mq.MQException’ not found in CLASSPATH ‘/opt/mqm/java/lib/com.ibm.mqjms.jar:/opt/mqm/java/lib/connector.jar:/opt/mqm/java/lib/com.ibm.mq.pcf.jar:/opt/mqm/java/lib/com.ibm.mq.jmqi.jar:/opt/mqm/java/lib/com.ibm.mq.jar:/opt/mqm/java/lib/com.ibm.mq.headers.jar:/opt/mqm/java/lib/com.ibm.mq.commonservices.jar:/opt/ibm/mqsi/8.0.0.1/messages:/opt/ibm/mqsi/8.0.0.1/classes:/opt/ibm/mqsi/8.0.0.1/classes/ConfigManagerProxy.jar:/opt/ibm/mqsi/8.0.0.1/classes/brokerutil.jar:/var/mqsi/common/wsrr’.

Not all the WebSphere MQ jars are installed on this machine. Message Broker requires that WebSphere MQ for Java is installed to work correctly.

Make sure that all the correct WebSphere MQ components are installed and that the CLASSPATH correctly contains the WebSphere MQ jar files.

As root…
[root@localhost wmq75]# rpm -ivh MQSeriesJava-7.5.0-0.x86_64.rpm MQSeriesJRE-7.5.0-0.x86_64.rpm

Preparing… ########################################### [100%]

1:MQSeriesJRE ########################################### [ 50%]

2:MQSeriesJava ########################################### [100%]

[mqm@localhost ~]$ mqsilist

(utility.mqsilist)[1]BIP2229W: Warning: abend file directory (/var/mqsi/common/errors) open failed: errno 13. Using directory /tmp 0

Failed to open file /var/mqsi/common/log/utility.mqsilist.trace.bin.0 with error No such file or directory

Failed to open file /var/mqsi/common/log/utility.mqsilist.userTrace.bin.0 with error No such file or directory

BIP1281I: No brokers have been defined on this machine.

BIP8071I: Successful command completion.

We can see that MQSI command work, but we get a few log errors:

We also need to ensure that we have ownership for mqsi folders

[root@localhost var]# chown -R mqm:mqbrkrs /var/mqsi/

[root@localhost var]# chown -R mqm:mqbrkrs /opt/ibm/mqsi/

If we still get the error then consult: http://www-01.ibm.com/support/docview.wss?uid=swg21580249

yum install ksh

and mkdir – p /var/mqsi/common/log/

We are now cool and can run MQSI and MQ command as mq user.

Install MQ Explorer

[root@localhost wmq75]# rpm -ivh MQSeriesExplorer-7.5.0-0.x86_64.rpm

Preparing… ########################################### [100%]

1:MQSeriesExplorer ########################################### [100%]

Running MQ Explorer

Log in to an X11 desktop session. Note you may need to either create a sudo account for your user to login as mqm or if this is a test environment like mine, you can change the mqm password using root and log in directly as mqm.

I use FREENX to connect to my Linux Server’s Gnome Desktop.

Anyway, however you connect to your dekstop you can run MQ Explorer if installed using the RPM by running to

/opt/mqm/bin/MQExplorer

You can search my blogs and sites for article’ son how to sue MQ Explorer

http://www.themiddlewareshop.com/2013/02/05/mq-explorer-security-examples-2/

Installing Message Broker Toolkit

You really do need MBTK installed. Both for development and administration purposes.

Unzip and untar the the three install disk sets.

I presume you are using a shell within g an X11 session

if running ./installToolkit.sh does nothing on CENTOS, then run Nothing to do

[root@localhost disk1]# ./installToolkit-silent.sh

CRIMA9C35370BE ERROR: The package IBM® WebSphere® Message Broker Toolkit requires system library libstdc++.so.5 or libstdc++.so.6. Make sure libstdc++.so.5 or libstdc++.so.6 is available in the system library path before installing this package.

We can now see the error.

yum install libstdc++.so.6

I did not try to get GUI to work in this example, but I do cover how to install it correctly on a on certified platform as described in module 1 of my Message Broker Developer course.

http://www.themiddlewareshop.com/products

I decided to run the silent install option, but unless you fix with my suggestion as per my course, you will not be able to launch MBTK.

Once you have applied my fixes you will be able to launch Message Broker Toolkit. In the example screen shot below, I just happened to be rung as root. But if you have set up your desktop correctly, you can use your user or mqm etc.

Reference

http://www-01.ibm.com/software/integration/wbimessagebroker/library/

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/index.jsp

Leave a Reply