One of the pre-reqs that if needed by MQ7 (or more specifically gsk7bas) is that it needs – libstdc++.so.5.
If you try and find this package its often not available. To install it run the following commands
yum groupinstall “Compatibility libraries”
yum install libstdc++.so.5
If you want to install MQ 188.8.131.52 you will also need
yum install libstdc++.so.6