Author |
Message
|
chv_v |
Posted: Mon Mar 27, 2006 8:23 am Post subject: saveqmgr on linux |
|
|
Newbie
Joined: 01 Feb 2005 Posts: 9
|
Hi all,
I trying to execute saveqmgr on redhat linux
./saveqmgr.linux -m QM1DWAS1
I am getting this following error
./saveqmgr.linux: /lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by ./saveqmgr.linux)
I am on MQ5.3 CSD8
thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Mar 27, 2006 8:24 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Which linux?
Which kernel, which version?
What is your LD_LIBRARY_PATH look like? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
chv_v |
Posted: Mon Mar 27, 2006 8:38 am Post subject: saveqmgr on linux |
|
|
Newbie
Joined: 01 Feb 2005 Posts: 9
|
it is redhad linux version 2.4.9-e.3 |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Mar 27, 2006 8:49 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What does ls -al /lib/i686 produce?
Are you running saveqmgr as mqm user? or a user in the mqm group? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
wschutz |
Posted: Mon Mar 27, 2006 8:54 am Post subject: Re: saveqmgr on linux |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
chv_v wrote: |
it is redhad linux version 2.4.9-e.3 |
You might have to recompile it for that glibc...you should just be able to run make:
make -f makefile.linux _________________ -wayne |
|
Back to top |
|
 |
chv_v |
Posted: Mon Mar 27, 2006 8:55 am Post subject: |
|
|
Newbie
Joined: 01 Feb 2005 Posts: 9
|
m running as mqm
ls -al /lib/i686 produces this
drwxr-xr-x 2 root root 4096 Jan 19 2004 .
drwxr-xr-x 8 root root 4096 Mar 21 11:31 ..
-rwxr-xr-x 1 root root 5790313 Apr 23 2002 libc-2.2.4.so
lrwxrwxrwx 1 root root 13 Jan 19 2004 libc.so.6 -> libc-2.2.4.
so
-rwxr-xr-x 1 root root 626018 Apr 23 2002 libm-2.2.4.so
lrwxrwxrwx 1 root root 13 Jan 19 2004 libm.so.6 -> libm-2.2.4.
so
-rwxr-xr-x 1 root root 531781 Apr 23 2002 libpthread-0.9.so
lrwxrwxrwx 1 root root 17 Jan 19 2004 libpthread.so.0 -> libpt
hread-0.9.so
-rwxr-xr-x 1 root root 191648 Apr 23 2002 librt-2.2.4.so
lrwxrwxrwx 1 root root 14 Jan 19 2004 librt.so.1 -> librt-2.2.
4.so
thanks |
|
Back to top |
|
 |
chv_v |
Posted: Mon Mar 27, 2006 9:00 am Post subject: |
|
|
Newbie
Joined: 01 Feb 2005 Posts: 9
|
When i run
make -f makefile.linux
i am getting this error
gcc -c -DUNIX -Wall -o saveqmgr.o -I. -I/opt/mqm/inc saveqmgr.c
make: gcc: Command not found
make: *** [saveqmgr.o] Error 127
thanks |
|
Back to top |
|
 |
wschutz |
Posted: Mon Mar 27, 2006 10:55 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Do you have access to any other linux systems at this glibc level where the compiler (gcc) was installed? (If not, I can try and build a back level for you tonight if you e-mail me at my IBM e-mail address).
EDIT: you can also run saveqmgrc from another machine where you do have the correct library levels (and you'd need the MQ client). _________________ -wayne |
|
Back to top |
|
 |
emiddleware |
Posted: Wed Dec 17, 2014 3:39 am Post subject: |
|
|
Centurion
Joined: 03 Apr 2006 Posts: 120
|
Hi
I wanted to take backup of my MQ objects.
The version of MQ is v6.0.1.0.
OS version is Linux ip-10-0-0-136 2.6.32.19-0.3-ec2 #1 SMP 2010-09-17 20:28:21 +0200 x86_64 x86_64 x86_64 GNU/Linux
I downloaded MS03 and extracted the files as I wanted to run the command saveqmgr.
When I want to compile makefile.linux
I get the following error :
/tmp> make -f makefile.linux
gcc -c -DUNIX -Wall -o saveqmgr.o -I. -I/opt/mqm/inc saveqmgr.c
make: gcc: Command not found
make: *** [saveqmgr.o] Error 127
How do I check what is Error 127? where do I check for errors ?
The linker option set in makefile.linux is
LCOPTS = -m64 -o $@ -L$(MQMLIB) -L. $(LIBS)
LCOPTC = -m64 -o $@ -L$(MQMLIB) -L. $(LIBC)
# MQM library directory
MQMLIB = /opt/mqm/lib64
Is there anything else I am missing ?
 _________________ Best Regards,
E-MiddleWare |
|
Back to top |
|
 |
zpat |
Posted: Wed Dec 17, 2014 4:00 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
This should give you a clue
gcc: Command not found
Have you install gcc package?
Also why are you using a version of MQ that is about 10 years old? _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
exerk |
Posted: Wed Dec 17, 2014 4:07 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
zpat wrote: |
This should give you a clue
gcc: Command not found
Have you install gcc package?
Also why are you using a version of MQ that is about 10 years old? |
Also, why are you not using the already-compiled binaries provided? _________________ 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 |
|
 |
mqjeff |
Posted: Wed Dec 17, 2014 5:44 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
exerk wrote: |
zpat wrote: |
This should give you a clue
gcc: Command not found
Have you install gcc package?
Also why are you using a version of MQ that is about 10 years old? |
Also, why are you not using the already-compiled binaries provided? |
Presumably because the most recent package you can find is built against a newer level of MQ than v6.
It will run happily against even a v5.x queue manager.
But it may not run happily on the platform that is hosting the queue manager, because the platform that is hosting the qmgr is way too old for the compiled version.
This is one of the reasons for shipping saveqmgrc. |
|
Back to top |
|
 |
emiddleware |
Posted: Wed Dec 17, 2014 8:46 pm Post subject: |
|
|
Centurion
Joined: 03 Apr 2006 Posts: 120
|
zpat wrote: |
This should give you a clue
gcc: Command not found
Have you install gcc package?
Also why are you using a version of MQ that is about 10 years old? |
Hi zpat,
My client is currently using version MQ v6.0.1.0 and MB v6.
We have plans to migrate to MQ v7.5 and IIB v9.
I am first migrating the MQ objects first. _________________ Best Regards,
E-MiddleWare |
|
Back to top |
|
 |
emiddleware |
Posted: Wed Dec 17, 2014 8:51 pm Post subject: |
|
|
Centurion
Joined: 03 Apr 2006 Posts: 120
|
mqjeff wrote: |
exerk wrote: |
zpat wrote: |
This should give you a clue
gcc: Command not found
Have you install gcc package?
Also why are you using a version of MQ that is about 10 years old? |
Also, why are you not using the already-compiled binaries provided? |
Presumably because the most recent package you can find is built against a newer level of MQ than v6.
It will run happily against even a v5.x queue manager.
But it may not run happily on the platform that is hosting the queue manager, because the platform that is hosting the qmgr is way too old for the compiled version.
This is one of the reasons for shipping saveqmgrc. |
Hi Mqjeff,
I am actually working on migrating mq objects . since its in linux, I downloaded MS03 for linux in windows and copied to linux box via winscp.
I followed the instructions in the link http://www-01.ibm.com/support/docview.wss?uid=swg24000673.
I also saw other related links in this forum.
I somehow want to run the command saveqmgr command to take backup of my MQ objects .
If the platform is too old , what is the other work around ?
Please guide me. thanks. _________________ Best Regards,
E-MiddleWare |
|
Back to top |
|
 |
emiddleware |
Posted: Wed Dec 17, 2014 8:55 pm Post subject: |
|
|
Centurion
Joined: 03 Apr 2006 Posts: 120
|
zpat wrote: |
This should give you a clue
gcc: Command not found
Have you install gcc package?
Also why are you using a version of MQ that is about 10 years old? |
I downloaded MS03 and uncompressed it . I wanted to execute makefile.linux so that I can execute saveqmgr command to save MQ objects.
Linux version : Linux ip-10-0-0-136 2.6.32.19-0.3-ec2 #1 SMP 2010-09-17 20:28:21 +0200 x86_64 x86_64 x86_64 GNU/Linux
MQ version : 6.0.1.0
CMVC level: p600-100-051021
BuildType: IKAP - (Production)
What gcc package version should I download for Linux ?
What else I require ? _________________ Best Regards,
E-MiddleWare |
|
Back to top |
|
 |
|