Error when installing WebSphere MQ -> There are two solutions, check (A) for config issues and (B) for architecture issues.

Error: ./ line 176: ./lap/jre/ibm-java-x86_64-60/jre/bin/java: cannot execute binary file

ERROR: Installation will not succeed unless the license agreement can be accepted.

If the error was caused by a display problem,read the license agreement file (LA_xx, where xx represents your language ) in the ‘licenses’ directory, and then run the following command: -accept

Only use this command if you accept the license agreement. For other errors, contact your IBM support centre

Solution – Part A

Install MQ config Script to evaluate your system
Here is a result of me running on CENTOS 6.2 before trying to install WMQ 7.5
[root@localhost wmq7.5]# ./mqconfig -v 7.5
mqconfig: V3.6 analyzing CentOS release 6.2 (Final) settings for WebSphere
MQ V7.5

System V Semaphores

semmsl (sem:1) 500 semaphores IBM>=500 PASS

semmns (sem:2) 2 of 256000 semaphores (0%) IBM>=256000 PASS

semopm (sem:3) 250 operations IBM>=250 PASS

semmni (sem:4) 2 of 1024 sets (0%) IBM>=1024 PASS

System V Shared Memory

shmmax 4294967295 bytes IBM>=268435456 PASS

shmmni 4 of 4096 sets (0%) IBM>=4096 PASS

shmall 384 of 2097152 pages (0%) IBM>=2097152 PASS

System Settings

file-max 2336 of 524288 files (0%) IBM>=524288 PASS

tcp_keepalive_time 300 seconds IBM<=300 PASS

Current User Limits (root)

nofile (-Hn) 1024 files IBM>=10240 FAIL

nofile (-Sn) 1024 files IBM>=10240 FAIL

nproc (-Hu) 0 of 31289 processes (0%) IBM>=4096 PASS

nproc (-Su) 0 of 1024 processes (0%) IBM>=4096 FAIL

Solution Part b
You may be trying to install a 64bit version on a 32bit JVM
You can query your Linux distribution for fnid our the architecture. As you can see below the architecture is i686 which means 32 bit platform.
[root@localhost wmq7.5]# cat /proc/version
Linux version 2.6.32-220.23.1.el6.i686 ( (gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) ) #1 SMP Mon Jun 18 16:56:21 BST 2012
Download and install the 32 bit version of WMQ 7.5

Leave a Reply