Link to home
Start Free TrialLog in
Avatar of stadmin
stadminFlag for United States of America

asked on

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
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

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
 
 
... 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.
 
Avatar of stadmin

ASKER

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#
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
Avatar of stadmin

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stadmin

ASKER

Replaced installp binnery and it worked.
Any reason for grade B??