Operating System - HP-UX
1825770 Members
1987 Online
109687 Solutions
New Discussion

/usr/ccs/bin/ar corruption

 
SOLVED
Go to solution
Marco Shaw_1
Respected Contributor

/usr/ccs/bin/ar corruption

HP-UX beginner...

I'm getting errors with ar trying to install some packages.

root@[foo]/var/adm/sw> ls -l /usr/ccs/bin/ar
-r-xr-xr-x 1 root bin 28112 Oct 29 2003 /usr/ccs/bin/ar
root@[foo]/var/adm/sw> file /usr/ccs/bin/ar
/usr/ccs/bin/ar: ELF-32 executable object file
root@[foo]/var/adm/sw> /usr/ccs/bin/ar
ksh: /usr/ccs/bin/ar: cannot execute

That size doesn't match at all the size of ar on another of our HP-UX 11.23 servers.

We don't have a backup of this system (might have a Ignite done, not sure). Can I simply copy ar from another server running the same OS? Can I reinstall a particular package?

What's the easiest way to fix this?

5 REPLIES 5
Calandrello
Trusted Contributor

Re: /usr/ccs/bin/ar corruption

occurred some error in the installation of depot?
Pete Randall
Outstanding Contributor
Solution

Re: /usr/ccs/bin/ar corruption

Marco,

I would first try copying it from another (identical) server. You may find that there are other problems after the copy, but that's a relatively simple first approach.


Pete

Pete
Peter Godron
Honored Contributor

Re: /usr/ccs/bin/ar corruption

Marco,
certainly worth a try to copy from another system. But keep the original as a backup!
Jaime Bolanos Rojas.
Honored Contributor

Re: /usr/ccs/bin/ar corruption

Marco,

Also you might want to change to owner to bin bin, not sure that is going to fix the issue, but at least that is how is on my system.

Regards,

Jaime.
Work hard when the need comes out.
Marco Shaw_1
Respected Contributor

Re: /usr/ccs/bin/ar corruption

A copy of ar from another system was successfull.