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


 
Thread Tools Search this Thread
Operating Systems AIX I'm facing problem with rpm command, when running the command and appears this error:
# 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!)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Facing abnormality in Find command

Whenever the below command is being executed by a scheduler at UNIX environment, we are getting below error cd /tmp/log find . -ignore_readdir_race ! -name . -prune -iname 'XYZ*' -type f -mtime +4 -printf "%f\n" ./tmpfile.script_name.2.31885.201906071336.tmp': No such file or directory... (2 Replies)
Discussion started by: Anirban2208
2 Replies

2. Shell Programming and Scripting

Problem running plsql using printf command on bash shell

I am running plsql using printf on a shell, but i am getting some strange error, can someone point what exactly am i missing, $ echo $SHELL /bin/bash $ printf " > SET serveroutput ON trimspool on feed off echo off > declare > p_val number; > d_val varchar2(10); > begin > SELECT... (1 Reply)
Discussion started by: kamauv234
1 Replies

3. Emergency UNIX and Linux Support

Problem when trying to remove a package using rpm command - error: package is not installed

Hello, i have installed a package by using the command sudo rpm -i filepackage.rpm package filepackage is already installed when i try to remove it, i get an error saying "is not installed": sudo rpm -e filepackage.rpm error: package filepackage is not installed How can... (4 Replies)
Discussion started by: g_p
4 Replies

4. Shell Programming and Scripting

Problem facing command using shell

Dear Brothers! Need your help for the case where I am running one command on prompt and its giving us the correct output, but when i use the same command from shell its directs no output.:wall: the command on command prompt is ls -ltrh * | nawk '{if ($5~ '/$'M'/') print $9}' | grep -v... (1 Reply)
Discussion started by: jojo123
1 Replies

5. UNIX for Dummies Questions & Answers

error while running nm command

I am running nm for a file. the command is nm -f libC.a but it gives below error nm: libC.a: 0654-203 Specify an XCOFF object module. any solution ? Please use and tags when posting code, data or logs etc. to preserve formatting and enhance readability, thanks. (2 Replies)
Discussion started by: yatrik007
2 Replies

6. AIX

Error running the history command

When I try to run the history command from the prompt i get the following error: $ history ksh: cd: 0403-011 The specified substitution is not valid for this command. ON running history with a parameter I get the following $ history -10 ksh: cd: 0403-008 The number of parameters... (6 Replies)
Discussion started by: meetzap
6 Replies

7. Shell Programming and Scripting

Problem facing in using awk command

Hi., I am not able to replace the string with another string using gsub fn of awk command. My code: awk 'BEGIN gsub(004,IND,004)' p.txt and my i/p file p.txt is of the format: av|004|adkf|Kent,004|s av|005|ssdf|Kd,IT park|s . . . and my desired o/p should be of : (13 Replies)
Discussion started by: av_vinay
13 Replies

8. Shell Programming and Scripting

Problem running var (with spaces) as command

I seem to be fighting bash's shell expansions.. I set this variable: CMD="export MVAR=\"1 2 3\"" if I try to run it, it is clear the shell is parsing along the spaces of the contents of MYVAR: > $CMD + export 'MYVAR="1' 2 '3"' + MYVAR='"1' -bash: export: `2': not a valid identifier... (3 Replies)
Discussion started by: bbw
3 Replies

9. UNIX for Dummies Questions & Answers

facing problem with cut command

hi , i used ls -ltr | cut -f 1 > \dev\tty but all teh coulmns r getting printed instead of only one........how can i resolve this? prob 2 : wud be able start cutting from last field......supposing in the case of dyanmic list.i dunno the field number of last column.......so is... (3 Replies)
Discussion started by: vivekshankar
3 Replies

10. UNIX for Advanced & Expert Users

Error when running the make command

Hi, Not really sure whether this question should go to this forum but am giving it a shot. I have compiled a simple C program test.c. #include <stdio.h> #include <stdlib.h> #include <string.h> static int a; int test() { a=a+1; return a; } When I run a make command, I get this: ... (2 Replies)
Discussion started by: nattynatty
2 Replies
Login or Register to Ask a Question