AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  Installed some RPMs from the Toolbox cd and have some pre-reqs issues

    Posted Wed January 12, 2011 06:24 AM

    Originally posted by: SystemAdmin


    Hi I'm not sure if you can help, or if this is the correct place for this but here goes.

    I've installed some rpms on AIX5.3, 5300-10-03-1013 and have some issues with pre-reqs for emacs as can be seen with the following, has anyone here seen this before and know of how to fix this please.

    /opt/freeware/bin/emacs -nw
    exec(): 0509-036 Cannot load program /opt/freeware/bin/emacs because of the following errors:
    0509-150 Dependent module /usr/lib/libXpm.a(shr.o) could not be loaded.
    0509-152 Member shr.o is not found in archive
    ar t /usr/lib/libXpm.a
    data.o
    create.o
    misc.o
    rgb.o
    scan.o
    parse.o
    hashtab.o
    CrBufFrI.o
    CrDatFrP.o
    CrPFrBuf.o
    RdFToI.o
    WrFFrI.o
    CrBufFrP.o
    CrIFrBuf.o
    CrPFrDat.o
    RdFToP.o
    WrFFrP.o
    CrDatFrI.o
    CrIFrDat.o
    RdFToDat.o
    WrFFrDat.o
    Attrib.o
    CrIFrP.o
    CrPFrI.o
    Image.o
    Info.o
    RdFToBuf.o
    WrFFrBuf.o
    s_popen.o
    I have some of the X11 filesets installed

    lslpp -l X11*
    Fileset Level State Description

    Path: /usr/lib/objrepos
    X11.adt.lib 5.3.9.0 COMMITTED AIXwindows Application
    Development Toolkit Libraries
    X11.base.common 5.3.0.0 COMMITTED AIXwindows Runtime Common
    Directories
    X11.base.lib 5.3.10.0 COMMITTED AIXwindows Runtime Libraries
    X11.base.smt 5.3.0.30 COMMITTED AIXwindows Runtime Shared
    Memory Transport

    Path: /etc/objrepos
    X11.base.smt 5.3.0.30 COMMITTED AIXwindows Runtime Shared
    Memory Transport


  • 2.  Re: Installed some RPMs from the Toolbox cd and have some pre-reqs issues

    Posted Wed January 12, 2011 09:24 AM

    Originally posted by: flodstrom


    Did you by any chance also install the libXpm RPM?

    I remember that there used to be a questionable thing done when the freeware libXpm was installed. On our AIX 6.1 machines the /usr/lib/libXpm.a link was overwritten by the freeware version.

    Check where your /usr/lib/libXpm.a link points to. In case it points to somewhere in /opt/freeware/... then you have to restore the original link to the AIX version of libXpm.a. On our AIX 6.1 machines the system libXpm.a is under /usr/lpp/X11/R7/libXpm.a, I don't remember if it's same on AIX 5.3?


  • 3.  Re: Installed some RPMs from the Toolbox cd and have some pre-reqs issues

    Posted Tue July 24, 2012 05:57 PM

    Originally posted by: BrTucker


    I have been having the exact same problem. My /usr/lib/libXpm.a link was pointing to /opt/freeware/, instead of /usr/lpp/X11/lib/R76/libXpm.a (which I have discovered to be the correct path for AIX 5.3).

    I used the following command to fix the link:
    ln -s -f /usr/lpp/X11/lib/R6/libXpm.a /usr/lib/libXpm.a

    Unfortunately, I am still receiving the same error. I tried using the following command:
    ar t /usr/lpp/X11/lib/R6/libXpm.a

    Unfortunately, shr.o is not listed. If I try to install the xpm-3.4k-8 package from the Toolbox, I am told it is already installed. If I try to install the latest version of libXpm (3.5.10), I am told that /opt/freeware/lib/libXpm.a and /usr/lib/libXpm.a from libXpm-3.5.10-1 conflict with the files from xpm-3.4k-8.

    If I try to uninstall xpm-3.4k-8 using rpm -e xpm-3.4k-8, I get a message saying that it is not install. When I try to install the same package, it says it is already installed.

    Something has become messed up. Do you have any suggestions?


  • 4.  Re: Installed some RPMs from the Toolbox cd and have some pre-reqs issues

    Posted Sat July 28, 2012 11:35 PM

    Originally posted by: dkcc


    I am running AIX 5300-12-05-1140.
    On my system there is no /usr/lpp/X11/lib/R6/libXpm.a
    /opt/freeware/lib/libXpm.a exist.
    /usr/lib/libXpm.a is linked to /opt/freeware/lib/libXpm.a
    /opt/freeware/lib/libXpm.a (libXpm-3.5.10-1)
    $ ar -vt /opt/freeware/lib/libXpm.a
    rwxr-xr-x 0/0 104792 Jun 05 13:13 2012 libXpm.so.4
    rwxr-xr-x 0/0 104792 Jun 05 13:13 2012 shr.o

    Have you tried doing:
    1) rpm --rebuilddb
    2) updtvpkg

    Have you tried deleting xpm-3.4k-8 and then installing/reinstalling
    libXpm.a and then reinstalling xpm-3.4k-8? (Might have to use the
    rpm flag --nodeps to remove existing xpm-3.4k-8 and/or libXpm.a)

    I do not have xpm-3.4k-8 installed on my system so I
    do not see any conflicts.

    Another source for rpm beside Bull is: http://www.perzl.org/aix/index.php
    Michael does not have all the Linux application; but he does have a lot
    of the commonly used ones.
    Try installing Michael's libXpm.a. I believe that is where I got mine
    from. (Michael has version for AIX 5.1, 5.2, 5.3, 6.1 and 7.1)

    Have you noticed that while IBM does not support the Linux toolbox, AIX
    seems to use some of the application contained in the toolbox.
    Also IBM sometimes over writes things in the Linux toolbox when a
    TL or maintenance update is applied to the system.

    Good luck!