Problems with the rpm command


 
Thread Tools Search this Thread
Operating Systems AIX Problems with the rpm command
# 1  
Old 07-30-2015
Problems with the rpm command

Hi folks,

I have a problem with command rpm, I'm running the command and appears this error:

Code:
server:/tmp/python# uname -rv

2 5
server:/tmp/python# rpm -i python-2.3.4-2.aix5.1.ppc.rpm

exec(): 0509-036 Cannot load program /opt/freeware/bin/rpm because of the following errors:
        0509-130 Symbol resolution failed for /opt/freeware/lib/librpmbuild.so because:
        0509-136   Symbol __fd_select (number 29) is not exported from
                   dependent module /usr/lib/libc.a(shr.o).
        0509-150   Dependent module librpmbuild.so could not be loaded.
        0509-026 System error: Cannot run a file that does not have a valid format.
        0509-192 Examine .loader section symbols with the
                 'dump -Tv' command.
server:/tmp/python#

Which may be the problem?

Regards.

Last edited by Don Cragun; 07-30-2015 at 03:50 PM.. Reason: Fix CODE tag.
# 2  
Old 07-30-2015
It would seem that /opt/freeware/bin/rpm is linked with a version of the shared library /opt/freeware/lib/librpmbuild.so that is incompatible with the version of the statically linked /usr/lib/libc.a on your system. It is expecting at least one symbol (__fd_select) to be defined in the object file shr.o included in that library, but it was not found.
This User Gave Thanks to Don Cragun For This Post:
# 3  
Old 07-30-2015
Thanks for your support, but I'm beginner in the AIX, what can I do in this case ?

Code:
server:/tmp/python# ls -ld /opt/freeware/lib/librpmbuild.so*
lrwxrwxrwx   1 root     system           20 Jul 29 16:02 /opt/freeware/lib/librpmbuild.so -> librpmbuild.so.0.0.0
lrwxrwxrwx   1 root     system           20 Jul 29 16:02 /opt/freeware/lib/librpmbuild.so.0 -> librpmbuild.so.0.0.0
-rwxr-xr-x   1 root     system       200900 Mar 04 2015  /opt/freeware/lib/librpmbuild.so.0.0.0
server:/tmp/python# ls -ld /usr/lib/librpmbuild.so*
lrwxrwxrwx   1 root     system           42 Jan 12 2006  /usr/lib/librpmbuild.so -> /usr/opt/freeware/lib/librpmbuild.so.0.0.0
lrwxrwxrwx   1 root     system           42 Jan 12 2006  /usr/lib/librpmbuild.so.0 -> /usr/opt/freeware/lib/librpmbuild.so.0.0.0
lrwxrwxrwx   1 root     system           42 Jan 12 2006  /usr/lib/librpmbuild.so.0.0.0 -> /usr/opt/freeware/lib/librpmbuild.so.0.0.0
server:/tmp/python#

Regards.
# 4  
Old 07-31-2015
it seems that you have too old AIX and too new RPM. Can you show the output of lslpp -L rpm.rte?
This User Gave Thanks to agent.kgb For This Post:
# 5  
Old 07-31-2015
Thanks for your support, the output is below:

Code:
server:/tmp/python# lslpp -L rpm.rte
exec(): 0509-036 Cannot load program /opt/freeware/bin/rpm because of the following errors:
        0509-130 Symbol resolution failed for /opt/freeware/lib/librpmbuild.so because:
        0509-136   Symbol __fd_select (number 29) is not exported from
                   dependent module /usr/lib/libc.a(shr.o).
        0509-150   Dependent module librpmbuild.so could not be loaded.
        0509-026 System error: Cannot run a file that does not have a valid format.
        0509-192 Examine .loader section symbols with the
                 'dump -Tv' command.
  Fileset                      Level  State  Type  Description (Uninstaller)
  ----------------------------------------------------------------------------
  rpm.rte                   3.0.5.53    C     F    RPM Package Manager


State codes:
 A -- Applied.
 B -- Broken.
 C -- Committed.
 E -- EFIX Locked.
 O -- Obsolete.  (partially migrated to newer version)
 ? -- Inconsistent State...Run lppchk -v.

Type codes:
 F -- Installp Fileset
 P -- Product
 C -- Component
 T -- Feature
 R -- RPM Package
server:/tmp/python#

Regards.
# 6  
Old 08-01-2015
I don't see 3.0.5.53 under official IBM RPM versions:
IBM Fileset information for: rpm.rte - United States

I personally have 3.0.5.39 on my AIX 5.2 box, but it may be because I have 5.2 ML9 and not ML10. But even on my newest boxes I have only 3.0.5.52. Where did you get your version?

---------- Post updated at 11:04 AM ---------- Previous update was at 10:46 AM ----------

I've found rpm.rte 3.0.5.53 and made some tests on AIX 5.2. It seems that the last working RPM version for AIX 5.2 is 3.0.5.51.

Link to download - ftp://public.dhe.ibm.com/aix/freeSof...m.rte.3.0.5.51

After download execute the following command on the server as root:
Code:
# installp -acFXYd rpm.rte.3.0.5.51 all

This command should downgrade your RPM to 3.0.5.51 and make it usable.
This User Gave Thanks to agent.kgb For This Post:
# 7  
Old 08-02-2015
Hi agent.kgb,

It's working fine now Smilie:

Code:
server:/tmp/python# installp -acFXYd rpm.rte.3.0.5.51 all
+-----------------------------------------------------------------------------+
                    Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...

SUCCESSES
---------
  Filesets listed in this section passed pre-installation verification
  and will be installed.

  Selected Filesets
  -----------------
  rpm.rte 3.0.5.51                            # RPM Package Manager

  << End of Success Section >>

FILESET STATISTICS
------------------
    1  Selected to be installed, of which:
        1  Passed pre-installation verification
  ----
    1  Total to be installed

+-----------------------------------------------------------------------------+
                         Installing Software...
+-----------------------------------------------------------------------------+

installp:  APPLYING software for:
        rpm.rte 3.0.5.51


. . . . . << Copyright notice for rpm.rte >> . . . . . . .
 Licensed Materials - Property of IBM

 5765H4000
   Copyright International Business Machines Corp. 2000, 2010.
   Copyright Regents of the University of California 1990, 1993, 1994, 1995.
   Copyright Jean-loup Gailly and Mark Adler, 1995 - 1998.
   Copyright The President and Fellows of Harvard University 1995, 1996.
   Copyright Julian R Seward, 1996 - 2000
   Copyright Sleepycat Software, 1990 - 2000

 All rights reserved.
 US Government Users Restricted Rights - Use, duplication or disclosure
 restricted by GSA ADP Schedule Contract with IBM Corp.
. . . . . << End of copyright notice for rpm.rte >>. . . .

Please wait...
Finished processing all filesets.  (Total time:  44 secs).

+-----------------------------------------------------------------------------+
                                Summaries:
+-----------------------------------------------------------------------------+

Installation Summary
--------------------
Name                        Level           Part        Event       Result
-------------------------------------------------------------------------------
rpm.rte                     3.0.5.51        USR         APPLY       SUCCESS
rpm.rte                     3.0.5.51        ROOT        APPLY       SUCCESS
server:/tmp/python# lslpp -L rpm.rte
  Fileset                      Level  State  Type  Description (Uninstaller)
  ----------------------------------------------------------------------------
  rpm.rte                   3.0.5.51    C     F    RPM Package Manager


State codes:
 A -- Applied.
 B -- Broken.
 C -- Committed.
 E -- EFIX Locked.
 O -- Obsolete.  (partially migrated to newer version)
 ? -- Inconsistent State...Run lppchk -v.

Type codes:
 F -- Installp Fileset
 P -- Product
 C -- Component
 T -- Feature
 R -- RPM Package
server:/tmp/python#

Thanks for your support.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

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

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... (4 Replies)
Discussion started by: Ohmkar
4 Replies

2. Solaris

Yum, rpm, apt-get install command not found in Solaris

I am using solaris 10 yum command not found apt-get install command not found rpm command not found how to use yum and apt-get command in solaris how to install dhcp, openldap-servers packages in solaris (4 Replies)
Discussion started by: ainstin
4 Replies

3. AIX

Rpm issue with autoconf-2.63-1.AIX6.1.noarch.rpm

dears i am trying to install the autoconf-2.63-1.aix6.1.noarch.rpm but its shows the below error message . P700_dev/svn/dependencies>rpm -i autoconf-2.63-1.aix6.1.noarch.rpm error: failed dependencies: m4 is needed by autoconf-2.63-1 P700_dev/svn/dependencies> (6 Replies)
Discussion started by: thecobra151
6 Replies

4. 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

5. Shell Programming and Scripting

How to make RPM not write to RPM database if RPM fails to deploy?

How to make RPM not write to RPM database if RPM fails to deploy? IE I create an rpm spec file that contains the following if then exit 1 fi My rpm will fail at deployment, but if I do rpm -qa , I can see the rpm in the rpm db (3 Replies)
Discussion started by: 3junior
3 Replies

6. Shell Programming and Scripting

Extract RPM name from path to .rpm file

It's the end of the day and I just can't get my head around this. I'm trying to extract just the name of the RPM from the path to a .rpm file. So from: /home/me/rpm/RPMS/i386/nagios-our-plugins-1.2-6.i386.rpmI need to extract 'nagios-our-plugins'. I can't get the awk syntax right: awk '{... (5 Replies)
Discussion started by: aussieos
5 Replies

7. Linux

RPM used to installed to get a partcular command

Hi, I have a query in linux and please find the details of it I have a command in linux and i want to know which rpm has provided that command. ie: if we take ifconfig command ,i want to know what is the rpm package used to get that command. Regards Arun.Kakarla (3 Replies)
Discussion started by: Arun.Kakarla
3 Replies

8. SuSE

How to install .src.rpm ? ( source rpm )

Hi, I have got few RPM's from rpmfind.net ( mainly gcc ). But it seems to be src files instead of the image. so I think we have to build the src files according to target machine using rpmbuild. Can any one help me with 1) Various options of rpm build that have to be taken care 2)... (3 Replies)
Discussion started by: Sivaswami
3 Replies

9. Linux

Converting source rpm to binary rpm

Hi, I need to install an rpm file,but I only have '.src.rpm' version of it. I want to convert it to a binary rpm. so I tried this rpm --rebuild somethin.src.rpm But I am gettin '--rebuild:Invalid option' as output Is there another way to rebuild source rpm.? Thanks in... (2 Replies)
Discussion started by: eamani_sun
2 Replies

10. Linux

Failed dependencies of rpm / how does RPM check for ?

Hey, I've a problem installing a package. rpm -ivh brings the errors: libjvm.so is needed by libverify.so is needed by But I have installed the Java SDK like requested and the files are on the disk. But I have no idea how to find out, why rpm cann't find them. I have also... (2 Replies)
Discussion started by: mod
2 Replies
Login or Register to Ask a Question