?
Solved

installp: cannot execute binary file

Posted on 2010-01-08
8
Medium Priority
?
1,448 Views
Last Modified: 2012-06-27
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
0
Comment
Question by:stadmin
  • 5
  • 3
8 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 26209229
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
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 26209403
... 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
 
LVL 1

Author Comment

by:stadmin
ID: 26276632
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 68

Expert Comment

by:woolmilkporc
ID: 26276892
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
 
LVL 1

Author Comment

by:stadmin
ID: 26280617
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
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 150 total points
ID: 26281809
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
 
LVL 1

Author Closing Comment

by:stadmin
ID: 31674498
Replaced installp binnery and it worked.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 26396981
Any reason for grade B??
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question