Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  Weird conflict issue - libmpc-1.0.3-1.aix6.1.ppc.rpm

    Posted Mon November 25, 2019 11:31 AM

    Originally posted by: Teej42


    Hello folks - 

    I am on vacation so I couldn't investigate closely, and is hoping someone here may have an idea on why this conflict is happening:


    Preparing packages...
    mpfr-3.1.2-3.ppc
    Installing mpfr-3.1.2-3.aix6.1.ppc.rpm
    Preparing... ################################# [100%]
    Updating / installing...
    1:mpfr-3.1.2-3 ################################# [100%]
    Documenting mpfr-3.1.2-3.aix6.1.ppc.rpm
    Installing libmpc-1.0.3-1.aix6.1.ppc.rpm
    Preparing... ################################# [100%]
    file /usr/lib64/libmpc.so.3 conflicts between attempted installs of libmpc-1.0.3-1.ppc and libmpc-1.0.3-1.ppc
    Installation failed.

     

    Why is it conflicting between two packages that are exactly the same?

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 2.  Re: Weird conflict issue - libmpc-1.0.3-1.aix6.1.ppc.rpm

    Posted Mon November 25, 2019 01:43 PM

    Originally posted by: KiloBravo


    Typically this happens when you use the -i (Install) switch to rpm trying to upgrade a package instead of the -U (upgrade) switch.

    e.g.

      rpm -ivh mpfr-3.1.2-3.aix6.1.ppc.rpm # <= initial install

    VS

      rpm -Uvh mpfr-3.1.2-3.aix6.1.ppc.rpm # <= upgrade package

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 3.  Re: Weird conflict issue - libmpc-1.0.3-1.aix6.1.ppc.rpm

    Posted Thu December 12, 2019 09:05 AM

    Originally posted by: Teej42


    Okay, been having issues with posting here.

    This is the command I'm using in my shell script:

    + sudo rpm -Uvh --nodeps gmp-6.1.2-1.aix6.1.ppc.rpm
    Preparing...                          ################################# [100%]
            file /usr/lib64/libgmp.a conflicts between attempted installs of gmp-6.1.2-1.ppc and gmp-6.1.2-1.ppc
            file /usr/lib64/libgmp.so.10 conflicts between attempted installs of gmp-6.1.2-1.ppc and gmp-6.1.2-1.ppc
            file /usr/lib64/libgmpxx.a conflicts between attempted installs of gmp-6.1.2-1.ppc and gmp-6.1.2-1.ppc
            file /usr/lib64/libgmpxx.so.4 conflicts between attempted installs of gmp-6.1.2-1.ppc and gmp-6.1.2-1.ppc
    + [ 1 != 0 ]
    + echo Installation failed.
    Installation failed.


    The files does not exist:

    >ls -al /usr/lib64/libgmp*
    /usr/lib64/libgmp* not found

    I am using --nodeps because I do not want the rpm program to try to "satisfy requirements" by pulling from the internet.  There is a couple packages that have a recursive dependency on each other, and this is the only workaround on a sandboxed production server.

    This is still AIX 7.1, btw.

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 4.  Re: Weird conflict issue - libmpc-1.0.3-1.aix6.1.ppc.rpm

    Posted Thu December 12, 2019 10:00 AM

    Originally posted by: AyappanP


    Which version of rpm you are using ?

    lslpp -l | grep rpm.rte

    Whether "rpm-qa | grep gmp" still shows it ? 

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 5.  Re: Weird conflict issue - libmpc-1.0.3-1.aix6.1.ppc.rpm

    Posted Thu December 12, 2019 10:15 AM

    Originally posted by: Teej42


    >lslpp -l | grep rpm.rte
      rpm.rte                   4.13.0.6  COMMITTED  RPM Package Manager
      rpm.rte                   4.13.0.6  COMMITTED  RPM Package Manager
    
    >rpm -qa |grep gmp
    >
    

    (Basically not installed.)


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 6.  Re: Weird conflict issue - libmpc-1.0.3-1.aix6.1.ppc.rpm

    Posted Thu December 12, 2019 10:54 AM

    Originally posted by: AyappanP


    Do "rpm --rebuilddb" and then try to install it.

    rpm -ivh gmp-6.1.2-1.aix6.1.ppc.rpm


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 7.  Re: Weird conflict issue - libmpc-1.0.3-1.aix6.1.ppc.rpm

    Posted Thu December 12, 2019 10:59 AM

    Originally posted by: Teej42


    >sudo rpm --rebuilddb
    >sudo rpm -ivh --nodeps gmp-6.1.2-1.aix6.1.ppc.rpm
    Preparing...                          ################################# [100%]
            file /usr/lib64/libgmp.a conflicts between attempted installs of gmp-6.1.2-1.ppc and gmp-6.1.2-1.ppc
            file /usr/lib64/libgmp.so.10 conflicts between attempted installs of gmp-6.1.2-1.ppc and gmp-6.1.2-1.ppc
            file /usr/lib64/libgmpxx.a conflicts between attempted installs of gmp-6.1.2-1.ppc and gmp-6.1.2-1.ppc
            file /usr/lib64/libgmpxx.so.4 conflicts between attempted installs of gmp-6.1.2-1.ppc and gmp-6.1.2-1.ppc
    

    I tried -Uvh too with the same result.


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 8.  Re: Weird conflict issue - libmpc-1.0.3-1.aix6.1.ppc.rpm

    Posted Fri December 13, 2019 04:28 PM

    Originally posted by: Edward Davignon


    What about these?

    LANG=C /usr/bin/rpm -qf /usr/lib64/libgmp.a
    LANG=C /usr/bin/rpm -qla | grep /usr/lib64/libgmp

    LANG=C /usr/bin/rpm -qla | grep /usr/lib64/libgmp | xargs -n1 echo LANG=C /usr/bin/rpm -qf | PS4='+ ' sh -x

    Otherwise, "sudo LANG=C rpm -Va" or "sudo LANG=C rpm -Va -vv" might show some hints.

    Note: /usr/bin/rpm is a wrapper script that provides some sanity to /opt/freeware/bin/rpm


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 9.  Re: Weird conflict issue - libmpc-1.0.3-1.aix6.1.ppc.rpm

    Posted Thu December 26, 2019 07:44 AM
      |   view attached

    Originally posted by: Teej42


    Sorry for the delay in responding.

     

    See attached file for the detailed output based on the instructions you provided.  Please let us know if there is anything we should be concerned with regarding the output provided.


    #AIXOpenSource
    #AIX-Open-Source-Software

    Attachment(s)

    txt
    output.txt   342 KB 1 version