Issue with installing rpm in AIX 6.1

I am trying to install an rpm : libiconv-1.14-1.aix5.1.ppc.rpm which is a dependency to install GIT.

While I gave the command I got the foll message:

root:user-> $ rpm -i -v libiconv-1.14-1.aix5.1.ppc.rpm
libiconv-1.14-1
ar: Cannot open or remove a file containing a running program.
ar: 0707-113 The fopen system call failed on file /opt/freeware/lib/libiconv.a.
ar: Cannot open or remove a file containing a running program.
ar: 0707-113 The fopen system call failed on file /opt/freeware/lib/libiconv.a.

But when I gave the rpm -qa command the package is listed as libiconv-1.14-1 but does not work correctly.

How can I correctly install this rpm.

Did you use fuser to try to work out what was using the file? There could be lots, just a few, a single or nothing (i.e. it was transient)

/usr/sbin/fuser /opt/freeware/lib/libiconv.a

I hope that this helps,
Robin
Liverpool/Blackburn
UK

1 Like

@rbatte1:Thanks for the reply.
It seems the there was some issue with with LIBPATH variable which was solved after re-setting it.