I'm facing problem with rpm command, when running the command and appears this error:

Tags
aix, rpm, solved

 
Thread Tools Search this Thread
# 1  
Old 11-10-2017
I'm facing problem with rpm command, when running the command and appears this error:

Code:
exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
        0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.1).
        0509-150   Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded.
        0509-152   Member shr4.o is not found in archive
        0509-022 Cannot load module rpm.
        0509-150   Dependent module /opt/freeware/lib/libintl.a(libintl.so.1) could not be loaded.
        0509-022 Cannot load module .

Code:
bash-3.2#cd /opt/freeware/lib
gcc                   libgcc_s.a            libpopt.so            librpm.so.0.0.0       pthread
libatomic.a           libiconv.a            libpopt.so.0          librpmbuild.so        rpm
libbz2.a              libiconv.la           libpopt.so.0.0.0      librpmbuild.so.0      rpmpopt
libcharset.a          libintl.a             librpm.so             librpmbuild.so.0.0.0  rpmrc
libcharset.la         libintl.la            librpm.so.0           libz.a

Any solutions?

Last edited by Ohmkar; 11-10-2017 at 02:37 PM..
# 2  
Old 11-13-2017
Welcome Ohmkar,

I have a few to questions pose in response first:-
  • What have you tried so far/what command are you running?
  • Is this all the output/errors you get?
  • What OS and version are you using?
Most importantly, What have you been running?



Thanks, in advance,
Robin
# 3  
Old 11-13-2017
Problem Resolved

Problem Resolved...

I tried to install GCC in Aix7.1 while installing related rpm and dependencies...

I Got below error
Code:
exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
        0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.1).
        0509-150   Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded.
        0509-152   Member shr4.o is not found in archive
        0509-022 Cannot load module rpm.
        0509-150   Dependent module /opt/freeware/lib/libintl.a(libintl.so.1) could not be loaded.
        0509-022 Cannot load module .

I came to know that rpm got corrupted and senior suggested to install rpm.rte with compatible version.

It worked for me...

As i'm a new user not able to post links...
# 4  
Old 11-13-2017
Thanks for letting us know.



Kind regards,
Robin
# 5  
Old 11-22-2017
IMHO: mixing RPM packages and INSTALLP packages leads to confusing situations - such as you have now.

For a hint at some of the issues you can read a bolg of mine at IBM Systems Magazine - Why I Stay Away From Using gcc (on AIX)

However, to help you a bit further - we need to understand why this error is occuring. Likely you have replaced the libiconv.a provided by rpm.rte by something provided by an rpm (e.g., a gnu iconv rpm).

1) use ldd /usr/bin/rpm and post the output.
2) more searching: find / -name libiconv.a -ls

That will give us a bit to work with.

Happy hunting (or - hope this helps!)

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Problem running plsql using printf command on bash shell kamauv234 Shell Programming and Scripting 1 09-27-2018 01:33 AM
Command to check only Autosys running jobs with autorep like command sidnow Shell Programming and Scripting 0 11-04-2014 10:03 PM
FATAL: Error running install command for binfmt_0000 gigolos Red Hat 0 03-12-2014 07:11 PM
Library file error while running command solaris_1977 UNIX for Advanced & Expert Users 15 12-03-2013 09:01 PM
Getting syntax error while running awk command pokhraj_d Shell Programming and Scripting 9 07-03-2013 05:20 AM
Problem when trying to remove a package using rpm command - error: package is not installed g_p Emergency UNIX and Linux Support 4 04-04-2012 06:36 AM
Problem facing command using shell jojo123 Shell Programming and Scripting 1 08-21-2011 08:55 AM
Running set options from the command line and bash command Straitsfan UNIX for Dummies Questions & Answers 5 07-28-2011 12:27 PM
error while running nm command yatrik007 UNIX for Dummies Questions & Answers 2 02-09-2011 09:46 PM
Error running the history command meetzap AIX 6 01-06-2011 02:40 AM
Problem facing in using awk command av_vinay Shell Programming and Scripting 13 05-25-2010 01:33 AM
Problem running var (with spaces) as command bbw Shell Programming and Scripting 3 04-01-2010 05:26 PM
inconsistent ls command display at the command prompt & running as a cron job rajranibl SuSE 5 07-30-2007 09:26 AM
facing problem with cut command vivekshankar UNIX for Dummies Questions & Answers 3 05-25-2005 01:21 PM
Error when running the make command nattynatty UNIX for Advanced & Expert Users 2 03-25-2003 05:30 AM