Author |
Message
|
pavanmq |
Posted: Thu Jul 24, 2014 10:32 pm Post subject: Error while installing wmq 7.0.1 in ubuntu 14.04 |
|
|
Newbie
Joined: 09 Jul 2014 Posts: 8
|
Please Help me out..
was following the instructions as stated in
IBM support
Installing WebSphere MQ on the Linux Ubuntu Distribution**
root@pavan-delly:/opt# ls
copyright MQSeriesMsg_ja-7.1.0-3.i386.rpm
crtmqpkg MQSeriesMsg_ko-7.1.0-3.i386.rpm
lap MQSeriesMsg_pl-7.1.0-3.i386.rpm
licenses MQSeriesMsg_pt-7.1.0-3.i386.rpm
mqlicense.sh MQSeriesMsg_ru-7.1.0-3.i386.rpm
MQSeriesClient-7.1.0-3.i386.rpm MQSeriesMsg_Zh_CN-7.1.0-3.i386.rpm
MQSeriesExplorer-7.1.0-3.i386.rpm MQSeriesMsg_Zh_TW-7.1.0-3.i386.rpm
MQSeriesGSKit-7.1.0-3.i386.rpm MQSeriesRuntime-7.1.0-3.i386.rpm
MQSeriesJava-7.1.0-3.i386.rpm MQSeriesSamples-7.1.0-3.i386.rpm
MQSeriesJRE-7.1.0-3.i386.rpm MQSeriesSDK-7.1.0-3.i386.rpm
MQSeriesMan-7.1.0-3.i386.rpm MQSeriesServer-7.1.0-3.i386.rpm
MQSeriesMsg_cs-7.1.0-3.i386.rpm MQSeriesTXClient-7.1.0-3.i386.rpm
MQSeriesMsg_de-7.1.0-3.i386.rpm PreReqs
MQSeriesMsg_es-7.1.0-3.i386.rpm READMEs
MQSeriesMsg_fr-7.1.0-3.i386.rpm repackage
MQSeriesMsg_hu-7.1.0-3.i386.rpm WMQ_7.1.0.3_TRIAL_LNX_X86_32_ML.tar.gz
MQSeriesMsg_it-7.1.0-3.i386.rpm
root@pavan-delly:/opt# ./mqlicense.sh
./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
^[[A
Agreement accepted: Proceed with install.
root@pavan-delly:/opt# rpm -ivh --nodeps --force-debian MQSeriesRuntime-*.rpm
Preparing... ################################# [100%]
Updating / installing...
1:MQSeriesRuntime-7.1.0-3 ################################# [100%]
/var/tmp/rpm-tmp.D2Qta2: 16: [: !=: unexpected operator
ERROR: Return code "127" from amqicdir for "-i -f", output is:
/var/tmp/rpm-tmp.D2Qta2: 1: /var/tmp/rpm-tmp.D2Qta2: /bin/amqicdir: not found
ERROR: Return code "127" from crtmqinst for "-p ", output is:
/var/tmp/rpm-tmp.D2Qta2: 1: /var/tmp/rpm-tmp.D2Qta2: /bin/crtmqinst: not found
ERROR: Return code "127" from amqicdir for "-s -f", output is:
/var/tmp/rpm-tmp.D2Qta2: 1: /var/tmp/rpm-tmp.D2Qta2: /bin/amqicdir: not found
ERROR: Return code "127" from setmqinst for "-r -p ", output is:
/var/tmp/rpm-tmp.D2Qta2: 1: /var/tmp/rpm-tmp.D2Qta2: /bin/setmqinst: not found
Thanks
Pavan
Last edited by pavanmq on Fri Jul 25, 2014 10:13 am; edited 1 time in total |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Jul 24, 2014 11:34 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Why don't you install all the RPM's in one go?
Then the dependencies between them will get resolved by the installer.
If you keep trying a single rpm at a time, eventually you will probably hit upon the right sequence but you can save yourself a lot of trouble by installing them in one go. _________________ 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 |
|
 |
pavanmq |
Posted: Fri Jul 25, 2014 9:49 am Post subject: |
|
|
Newbie
Joined: 09 Jul 2014 Posts: 8
|
Am following the same steps as stated in ibm support website
http://www-01.ibm.com/support/docview.wss?uid=swg21656068
MQSeriesRuntime doesn't need any dependencies...
For all other packages MQSeriesRuntime is the dependency...
When MQSeriesRuntime is not getting installed. . How can I proceed to other packages..?
Next package according to IBM recommendation installed is MQSeriesServer-*.rpm
root@pavan-delly:/opt# rpm -ivh --nodeps --force-debian MQSeriesServer-7.1.0-3.i386.rpm
Preparing... ################################# [100%]
ERROR: There is no MQSeriesRuntime installed at
error: %pre(MQSeriesServer-7.1.0-3.i386) scriptlet failed, exit status 1
error: MQSeriesServer-7.1.0-3.i386: install failed
Thanks
Pavan. |
|
Back to top |
|
 |
pavanmq |
Posted: Fri Jul 25, 2014 11:31 am Post subject: |
|
|
Newbie
Joined: 09 Jul 2014 Posts: 8
|
Error is that since path is not set..
It was mentioned in the same url of IBM support in the ending as
Known Issues
After that setting the path I made the installation.
All the packages were installed..
Still am unable to use my WMQseries...
wt ever MQ command in su mqm .. I type
am getting a single error
No such command found..
Feeling there is some error in setting the path only can anyone help me out.. ?
How to check if the installation is properly done ?
Do I need to go for a fresh installation or is there any other solution ? ?
Thanks
Pavan |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jul 25, 2014 11:46 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Does the PATH for either your user or the mqm user correctly reflect the installed location of the binaries?
Have you (by any means) identified the primary installation (required for WMQv7.1 and higher)? (setenv?)
Does it work if you su into mqm and then issue the command, as opposed to trying to run that dynamic command shell? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jul 25, 2014 11:49 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
I've also just noticed that while you claim (in the subject line) to be installing WMQv7.0.1 the packages are for WMQv7.1.0.3.
Which version are you actually installing?
If you think you're installing WMQv7.0 but are in fact installing WMQv7.1 this lends some weight to the theory you've missed a step that's not needed with 7.0 but is with 7.1. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
pavanmq |
Posted: Fri Jul 25, 2014 12:38 pm Post subject: |
|
|
Newbie
Joined: 09 Jul 2014 Posts: 8
|
I did not set any env..
How to find out tat path has been set exactly. .
After su into mqm not a single command of mq worked..
It is WMQ7.1.0 v am installing. ..
What did I miss..?
Plz let me know..
Thanks
Pavan |
|
Back to top |
|
 |
MB Developer |
Posted: Fri Jul 25, 2014 8:27 pm Post subject: |
|
|
 Disciple
Joined: 03 Feb 2014 Posts: 179
|
Hi Pavan
Go to the path where MQ is there and then follow below 4 steps...
1. sudo apt-get install rpm
2. ./mqlicense.sh
3. sudo rpm -ivh --nodeps --force-debian MQ*.rpm
4. rpm -qa | grep -i mq _________________ Thanks.... |
|
Back to top |
|
 |
pavanmq |
Posted: Fri Jul 25, 2014 10:51 pm Post subject: |
|
|
Newbie
Joined: 09 Jul 2014 Posts: 8
|
Hi Voyager
the last command output is
root@pavan-delly:/opt# rpm -qa | grep -i mq
MQSeriesServer-7.1.0-3.i386
MQSeriesJava-7.1.0-3.i386
MQSeriesExplorer-7.1.0-3.i386
MQSeriesSDK-7.1.0-3.i386
MQSeriesSamples-7.1.0-3.i386
MQSeriesMsg_de-7.1.0-3.i386
MQSeriesMsg_fr-7.1.0-3.i386
MQSeriesMsg_it-7.1.0-3.i386
MQSeriesMsg_ko-7.1.0-3.i386
MQSeriesMsg_pt-7.1.0-3.i386
MQSeriesMsg_Zh_CN-7.1.0-3.i386
MQSeriesTXClient-7.1.0-3.i386
MQSeriesRuntime-7.1.0-3.i386
MQSeriesClient-7.1.0-3.i386
MQSeriesJRE-7.1.0-3.i386
MQSeriesGSKit-7.1.0-3.i386
MQSeriesMan-7.1.0-3.i386
MQSeriesMsg_cs-7.1.0-3.i386
MQSeriesMsg_es-7.1.0-3.i386
MQSeriesMsg_hu-7.1.0-3.i386
MQSeriesMsg_ja-7.1.0-3.i386
MQSeriesMsg_pl-7.1.0-3.i386
MQSeriesMsg_ru-7.1.0-3.i386
MQSeriesMsg_Zh_TW-7.1.0-3.i386
Regards
Pavan |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Jul 25, 2014 11:17 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
There is a basic thing in Unix/Linux that several posters have missed completly if recent threads are anything to go by.
There is a file called .bashrc in your account home directory. There is even a system wide one. If you are using a different shell then the name will be different but the principles remain the same.
So...
you have to set your PATH environment varible so that the MQ commands are on it. IF you don't then you will have to put the full path name before every command.
Edit .bashrc and add a line that looks something like
Code: |
PATH=$PATH:/opt/mqm/bin
export PATH
|
IF the path to the MQ executables is in a different place to /opt/mqm/bin then replace where it really is in the above example.
Save the file, log out of the terminal and create one again and you will have access to the MQ commands.
Because this was not done, su - mqm won't have access to the MQ commands.
Over the years, I have found this problem to be one of the most infuriating things a user who is moving from Windows to Linux encounters. Well, that an the need to put ./ in front of commands where the application is in your current directory.
When you get more experienced (And wiser) you can put the definitions into the system wide file so that they don't have to be defined for each and every user. _________________ 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 |
|
 |
MB Developer |
Posted: Sat Jul 26, 2014 1:33 am Post subject: |
|
|
 Disciple
Joined: 03 Feb 2014 Posts: 179
|
Hi Pavan,
Are you Create user mqm and group mqm.
If you are not creating any user and group.
Then follow the below steps in root.
Create user and group mqm
1. useradd mqm
2. groupadd mqm
3. usermod -a -G mqm mqm
4. See Groups with root access then
groups root
5. See users in a particular group
lid -g mqm
6. See How many users in linux
cat /etc/passwd _________________ Thanks.... |
|
Back to top |
|
 |
pavanmq |
Posted: Wed Jul 30, 2014 2:42 am Post subject: |
|
|
Newbie
Joined: 09 Jul 2014 Posts: 8
|
Dear voyager
user and the group already exits..
root@pavan-delly:~# lid -g mqm
mqm(uid=999)
root@pavan-delly:~# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
libuuid:x:100:101::/var/lib/libuuid:
syslog:x:101:104::/home/syslog:/bin/false
messagebus:x:102:106::/var/run/dbus:/bin/false
usbmux:x:103:46:usbmux daemon,,,:/home/usbmux:/bin/false
dnsmasq:x:104:65534:dnsmasq,,,:/var/lib/misc:/bin/false
avahi-autoipd:x:105:113:Avahi autoip daemon,,,:/var/lib/avahi-autoipd:/bin/false
kernoops:x:106:65534:Kernel Oops Tracking Daemon,,,:/:/bin/false
rtkit:x:107:114:RealtimeKit,,,:/proc:/bin/false
saned:x:108:115::/home/saned:/bin/false
whoopsie:x:109:116::/nonexistent:/bin/false
speech-dispatcher:x:110:29:Speech Dispatcher,,,:/var/run/speech-dispatcher:/bin/sh
avahi:x:111:117:Avahi mDNS daemon,,,:/var/run/avahi-daemon:/bin/false
lightdm:x:112:118:Light Display Manager:/var/lib/lightdm:/bin/false
colord:x:113:121:colord colour management daemon,,,:/var/lib/colord:/bin/false
hplip:x:114:7:HPLIP system user,,,:/var/run/hplip:/bin/false
pulse:x:115:122:PulseAudio daemon,,,:/var/run/pulse:/bin/false
pavan:x:1000:1000:pavan,,,:/home/pavan:/bin/bash
mqm:x:999:1001::/var/mqm:
root@pavan-delly:~#
Thanks
Pavan |
|
Back to top |
|
 |
pavanmq |
Posted: Wed Jul 30, 2014 2:53 am Post subject: |
|
|
Newbie
Joined: 09 Jul 2014 Posts: 8
|
Dear Jedi Knight,
Opened the terminal
sudo -i and became root
now su mqm
Am going in /opt/mqm/samp/bin
and there am trying to use mqm commands but of no use..
Not even dspmq is working..
Just getting no such command is found
and regarding setting the PATH in a file named .bashrc... whr exactly in the file should I add the code.. export=PATH ? there is no pattern found in the file when i searched for that...
Thanks and Regards
Pavan |
|
Back to top |
|
 |
MB Developer |
Posted: Wed Jul 30, 2014 3:39 am Post subject: |
|
|
 Disciple
Joined: 03 Feb 2014 Posts: 179
|
Hi Pavan
Find this Link (alt+w)
And Don't use voyager ,Jedi Knight ... this are the some designations ,these will be changed when your no.of posts will increase (now you are in Novice) so it is not name. _________________ Thanks.... |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Jul 30, 2014 8:26 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Pavan,
I can see that you really are new to Linux.
PATH is a builtin shell variable.
Start a command/terminal window and do the following
My instructions for .bashrc basically add the path to the MQ binaries to your shell PATH. _________________ 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 |
|
 |
|