Author |
Message
|
exerk |
Posted: Thu Jun 12, 2014 5:12 am Post subject: |
|
|
Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
I suggest you get an experienced *NIX Sys Admin to help you... _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
|
smdavies99 |
Posted: Thu Jun 12, 2014 6:00 am Post subject: |
|
|
Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
exerk wrote: |
I suggest you get an experienced *NIX Sys Admin to help you... |
IMHO this had better be an experienced Ubuntu hacker rather than a proper UNIX/ Linux (RHEL/SUSE) Sys Admin.
Ubuntu is a law until themselves. A law that often gets broken with new releases. That was why I gave up on it years ago and returned to the Oasis of stability that is RHEL/CentOS. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
|
exerk |
Posted: Thu Jun 12, 2014 6:06 am Post subject: |
|
|
Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
smdavies99 wrote: |
exerk wrote: |
I suggest you get an experienced *NIX Sys Admin to help you... |
IMHO this had better be an experienced Ubuntu hacker rather than a proper UNIX/ Linux (RHEL/SUSE) Sys Admin.
Ubuntu is a law until themselves. A law that often gets broken with new releases. That was why I gave up on it years ago and returned to the Oasis of stability that is RHEL/CentOS. |
Ubuntu Server 14.04 LTS is extremely user friendly and even I had no trouble installing WMQ V7.5 on it (64-Bit by the way) so I wonder which version the OP is using? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
|
Philip Morten |
Posted: Thu Jun 12, 2014 11:18 am Post subject: |
|
|
Master
Joined: 07 Mar 2002 Posts: 230 Location: Hursley Park
|
This is occurring because, by default, Ubuntu have /bin/sh pointing to dash instead of bash. The [[ ]] syntax is one of the incompatibilities between the two shells. You can get rid of this by editing mqlicense.sh and changing the #!/bin/sh to #!/bin/bash. _________________ Philip Morten
The postings on this site are my own and do not necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
|
smdavies99 |
Posted: Sat Jun 14, 2014 10:43 pm Post subject: |
|
|
Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Philip Morten wrote: |
This is occurring because, by default, Ubuntu have /bin/sh pointing to dash instead of bash. The [[ ]] syntax is one of the incompatibilities between the two shells. You can get rid of this by editing mqlicense.sh and changing the #!/bin/sh to #!/bin/bash. |
And how many 'normal' Ubuntu users know this? Not many is my guess.
Canonical are well known in the Linux world for 'doing their own thing and to hell with the rest of us'. I was once a supporter of what they were trying to do but persistent upgrades kept breaking stuff right-left-and-centre so I hauled up the white flag and moved to CentOS/RHEL. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
|
tczielke |
Posted: Sun Jun 15, 2014 5:24 am Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 939 Location: Illinois, USA
|
I have found this type of inconsistent behavior in shell scripting too often common for the Unix shell scripting environment. It is a non-conforming, inconsistent world that drives me batty with the shell scripts that we have to support across different versions of Solaris and Linux. My deepest sympathies to anyone like IBM that has to support shell scripts over even more Unix variants. |
|
Back to top |
|
|
MB Developer |
Posted: Sun Jun 15, 2014 8:57 pm Post subject: |
|
|
Disciple
Joined: 03 Feb 2014 Posts: 179
|
Hi Philip Morten,
Philip Morten wrote: |
This is occurring because, by default, Ubuntu have /bin/sh pointing to dash instead of bash. The [[ ]] syntax is one of the incompatibilities between the two shells. You can get rid of this by editing mqlicense.sh and changing the #!/bin/sh to #!/bin/bash. |
Sorry for the delay in replying....
I was tryed what you are said above ....#!/bin/sh to #!/bin/bash
Then Mqlicense is accepted but when rpm -ivh MQSeriesRuntime-7.1.0-3.i386.rpm then error will occurred.
root@binary-G41-M7:/home/binary/SW/MQ7.1.0.3_Linux_32bit# ./mqlicense.sh -accept
./mqlicense.sh: 98: ./mqlicense.sh: [[: not found
Licensed Materials - Property of IBM
5724-H72
(C) Copyright IBM Corporation 1994, 2011 All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
Displaying license agreement on :0
Agreement accepted: Proceed with install.
root@binary-G41-M7:/home/binary/SW/MQ7.1.0.3_Linux_32bit# rpm -ivh MQSeriesRuntime-7.1.0-3.i386.rpm
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
error: Failed dependencies:
/bin/sh is needed by MQSeriesRuntime-7.1.0-3.i386
Thanks in Advance... |
|
Back to top |
|
|
smdavies99 |
Posted: Mon Jun 16, 2014 12:19 am Post subject: |
|
|
Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Code: |
root@binary-G41-M7:/home/binary/SW/MQ7.1.0.3_Linux_32bit# rpm -ivh MQSeriesRuntime-7.1.0-3.i386.rpm
rpm: RPM should not be used directly install RPM packages, use Alien instead!
|
did you read this bit of the output?
If you really continue to struggle and can't get the services of a decent Ubuntu admin then I'd look at switching distros to say CentOS. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
|
Philip Morten |
Posted: Mon Jun 16, 2014 1:15 am Post subject: |
|
|
Master
Joined: 07 Mar 2002 Posts: 230 Location: Hursley Park
|
MB Developer wrote: |
root@binary-G41-M7:/home/binary/SW/MQ7.1.0.3_Linux_32bit# rpm -ivh MQSeriesRuntime-7.1.0-3.i386.rpm
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
error: Failed dependencies:
/bin/sh is needed by MQSeriesRuntime-7.1.0-3.i386
Thanks in Advance... |
See the Technote about installing on Ubuntu at http://www-01.ibm.com/support/docview.wss?uid=swg21656068 _________________ Philip Morten
The postings on this site are my own and do not necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
|
MB Developer |
Posted: Mon Jun 16, 2014 8:47 pm Post subject: |
|
|
Disciple
Joined: 03 Feb 2014 Posts: 179
|
Hi Philip Morten ,smdavies99, exerk and All,
Really thanks for all Responses Now MQ is installed.
But I have a problem
When I run "dspmqver" then it will show error
root@binary-G41-M7:/home/binary/MQ7.1.0.3_Linux_32bit# dspmqver
dspmqver: command not found
binary@binary-G41-M7:~$ dspmqver
dspmqver: command not found
These are the packages installed.
root@binary-G41-M7:/home/binary/MQ7.1.0.3_Linux_32bit# rpm -qa | grep -i mq
MQSeriesRuntime-7.1.0-3.i386
MQSeriesClient-7.1.0-3.i386
MQSeriesJRE-7.1.0-3.i386
MQSeriesExplorer-7.1.0-3.i386
MQSeriesMan-7.1.0-3.i386
MQSeriesTXClient-7.1.0-3.i386
MQSeriesServer-7.1.0-3.i386
MQSeriesJava-7.1.0-3.i386
MQSeriesGSKit-7.1.0-3.i386
MQSeriesSDK-7.1.0-3.i386
MQSeriesSamples-7.1.0-3.i386
MQSeriesMsg_es-7.1.0-3.i386
root@binary-G41-M7:/home/binary/MQ7.1.0.3_Linux_32bit#
Thanks |
|
Back to top |
|
|
bruce2359 |
Posted: Mon Jun 16, 2014 9:34 pm Post subject: |
|
|
Poobah
Joined: 05 Jan 2008 Posts: 9396 Location: US: west coast, almost. Otherwise, enroute.
|
dspmqver: command not found is an error message from your unix shell telling you that dspmqver cannot be found in the search path.
If you do an ls command, do you see dspmqver? If so, try ./dspmqver _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
|
exerk |
Posted: Mon Jun 16, 2014 11:34 pm Post subject: |
|
|
Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
MB Developer wrote: |
But I have a problem
When I run "dspmqver" then it will show error
root@binary-G41-M7:/home/binary/MQ7.1.0.3_Linux_32bit# dspmqver
dspmqver: command not found
binary@binary-G41-M7:~$ dspmqver
dspmqver: command not found |
You installed WMQ V7.1 - try researching the setting of Primary Installations or setting up your environment before using it... _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
|
Tibor |
Posted: Tue Jun 17, 2014 5:41 am Post subject: |
|
|
Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
As exerk mentioned, you should set the primary installation, more information here and here |
|
Back to top |
|
|
MB Developer |
Posted: Wed Jun 18, 2014 7:45 pm Post subject: |
|
|
Disciple
Joined: 03 Feb 2014 Posts: 179
|
Hi All,
Thanks for your time ....
This command is working to install MQ in Ubuntu.
rpm -ivh --nodeps --force-debian --prefix /opt/mqm MQSeriesRuntime-*rpm
LINK
Thanks.... |
|
Back to top |
|
|
|