installp: cannot execute binary file

I am trying to install scom client for AIX and it gives below error.
bash-3.2# installp
bash: /usr/sbin/installp: cannot execute binary file
bash-3.2# installp -X -d scx-1.0.4-248.aix.5.ppc.lpp scx.rte
bash: /usr/sbin/installp: cannot execute binary file
running installp itself is not working.
aix version -5.3
LVL 1
stadminAsked:
Who is Participating?
 
woolmilkporcConnect With a Mentor Commented:
OK,
your /usr/sbin/installp is corrupted.
Could it be that you accidentally overwrote it with the contents of an installation package (">" instead of "|" or so)?
The file is way too large and the identifying information ("what") consists only of arbitrary code. "file" should have said "executable (RISC System/6000) or object module"
You will have to restore /usr/sbin/installp from backup or copy it from another AIX system of the exactly identical oslevel. Check with "oslevel -s" beforehand!
Good luck!
wmp
0
 
woolmilkporcCommented:
Hi,
the -d flag of installp points to a device or a directory containing packages.
You're obviously trying to use -d to point to a file, which is wrong.
Move scx-1.0.4-248.aix.5.ppc.lpp to a suitable directory ( /usr/sys/inst.images is a standard location, which I will assume in the further instructions), then issue (as root)
  • inutoc /usr/sys/inst.images
to create the required table of contents.
Then install with
  • installp -aX -d /usr/sys/inst.images scx.rte
Note this will apply the software (i.e. save the old version as a fallback option).
To install with commit (do not save the old version) use additionally the -c flag of installp -
installp -acX -d /usr/sys/inst.images scx.rte

or commit the package after some testing with
  • installp -c scx.rte
You can also use smitty to install. Use
  • smitty install_all
then fill in the required values and go.
Good luck!
wmp
 
 
0
 
woolmilkporcCommented:
... and for the "cannot execute ..." thing -
Are you really on AIX?
Did you upgrade the AIX system (new TL or Service Pack) and forgot to reboot?
Are you root?
Normally, such an error should not happen with AIX's installp.
Issue file /usr/sbin/installp and see what you get. If in doubt, please post the outcome.
 
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
stadminAuthor Commented:
Hi Thanks for help, II did attempted your suggestion and posted below the outcome.

moved file to inst.images and tried installing it :-
bash-3.2# cp scx-1.0.4-248.aix.5.ppc.lpp /usr/sys/inst.images/
bash-3.2# inutoc /usr/sys/inst.images
bash-3.2# installp -acX -d /usr/sys/inst.images/ scx.rte
bash: /usr/sbin/installp: cannot execute binary file
bash-3.2#
yes, i am on a aix version below:-
AIX Version 5
(C) Copyrights by IBM and by others 1982, 2007.
login: root
root's Password:
*******************************************************************************
*                                                                             *
*                                                                             *
*  Welcome to AIX Version 5.3!                                                *
*                  
just running installp also giveing this error.. and its not after any ML updates and just rebooted three days back.
bash-3.2#
bash-3.2# /usr/sbin/installp
bash: /usr/sbin/installp: cannot execute binary file
bash-3.2#
0
 
woolmilkporcCommented:
Now that's just weird!
It looks quite as if you were trying to execute some non-AIX binary.

Please post the results of

file /usr/sbin/installp
what /usr/sbin/installp
ls -l /usr/sbin/installp

I will compare this to what I see on my systems.

wmp
0
 
stadminAuthor Commented:
Thank you wmp,
pls find below the outputs...

bash-3.2# what /usr/sbin/installp
/usr/sbin/installp:
        23  1.5  src/bos/usr/ccs/lib/libpthreads/init.c, libpth, bos53H, h2006_10B1 3/5/06 21:33
:24
        61      1.15  src/bos/usr/ccs/lib/libc/__threads_init.c, libcthrd, bos53H, h2006_10B1 3/
5/06 16:44:58
        23  1.5  src/bos/usr/ccs/lib/libpthreads/init.c, libpth, bos53H, h2006_10B1 3/5/06 21:33
:24
        61      1.15  src/bos/usr/ccs/lib/libc/__threads_init.c, libcthrd, bos53H, h2006_10B1 3/
5/06 16:44:58
        23  1.5  src/bos/usr/ccs/lib/libpthreads/init.c, libpth, bos53H, h2006_10B1 3/5/06 21:33
:24
        61      1.15  src/bos/usr/ccs/lib/libc/__threads_init.c, libcthrd, bos53H, h2006_10B1 3/
5/06 16:44:58
        23  1.5  src/bos/usr/ccs/lib/libpthreads/init.c, libpth, bos53H, h2006_10B1 3/5/06 21:33
:24
        61      1.15  src/bos/usr/ccs/lib/libc/__threads_init.c, libcthrd, bos53H, h2006_10B1 3/
5/06 16:44:58
        23  1.5  src/bos/usr/ccs/lib/libpthreads/init.c, libpth, bos53H, h2006_10B1 3/5/06 21:33
:24
        61      1.15  src/bos/usr/ccs/lib/libc/__threads_init.c, libcthrd, bos53H, h2006_10B1 3/
5/06 16:44:58
        79  1.10  src/bos/usr/ccs/lib/libm/floor.c, libm, bos53A, a2004_31D2 7/7/04 13:54:29
        08  1.5  src/bos/usr/ccs/lib/libm/fenv.c, libm, bos53J, j2007_07B8 12/26/06 01:00:09
        86  1.37  src/bos/usr/ccs/lib/libm/pow.c, libm, bos53D, d2005_24C3 6/6/05 06:53:25
        23  1.5  src/bos/usr/ccs/lib/libpthreads/init.c, libpth, bos53H, h2006_10B1 3/5/06 21:33
:24
        61      1.15  src/bos/usr/ccs/lib/libc/__threads_init.c, libcthrd, bos53H, h2006_10B1 3/
5/06 16:44:58
        79  1.10  src/bos/usr/ccs/lib/libm/floor.c, libm, bos53A, a2004_31D2 7/7/04 13:54:29
        08  1.5  src/bos/usr/ccs/lib/libm/fenv.c, libm, bos53J, j2007_07B8 12/26/06 01:00:09
        86  1.37  src/bos/usr/ccs/lib/libm/pow.c, libm, bos53D, d2005_24C3 6/6/05 06:53:25
        23  1.5  src/bos/usr/ccs/lib/libpthreads/init.c, libpth, bos53H, h2006_10B1 3/5/06 21:33
:24
        61      1.15  src/bos/usr/ccs/lib/libc/__threads_init.c, libcthrd, bos53H, h2006_10B1 3/
5/06 16:44:58

 file /usr/sbin/installp
/usr/sbin/installp: backup/restore format file
bash-3.2# ls -l /usr/sbin/installp
-rwxrwxrwx   1 root     system     46694400 Dec 29 00:23 /usr/sbin/installp
0
 
stadminAuthor Commented:
Replaced installp binnery and it worked.
0
 
woolmilkporcCommented:
Any reason for grade B??
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.