AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
Expand all | Collapse all

Insallation unzip AIX7.2

  • 1.  Insallation unzip AIX7.2

    Posted Thu June 09, 2022 09:45 AM
    Edited by SANKET RATHI Mon June 13, 2022 09:47 AM
      |   view attached
    Hello, 

    I need your help to fix this issue when we want to install unzip in AIX 7.2.
    oslevel : 7200-02-02-1806

    # rpm -i --test unzip-6.0-3.aix6.1.ppc.rpm
    error: Failed dependencies:
            /bin/sh is needed by unzip-6.0-3.ppc
            libc.a(shr.o) is needed by unzip-6.0-3.ppc

    But 
    # ls -l /bin/sh
    -r-xr-xr-x    5 bin      bin          313906 Nov 28 2017  /bin/sh

    We updated rpm.rte from 4.13.0.2 to 4.15.1.3
    Installation Summary
    --------------------
    Name Level Part Event Result
    -------------------------------------------------------------------------------
    rpm.rte 4.15.1.3 USR APPLY SUCCESS
    rpm.rte 4.15.1.3 ROOT APPLY SUCCESS


    After that, we have done

    # rpm -qa
    [root@bu8z] /source/unzip
    # /usr/sbin/updtvpkg
    Please wait...error: open of /packages/aix/creation_rpm/RPMS/ppc/AIX-rpm-7.2.2.15-1.aix7.2.ppc.rpm failed: No such file or directory
    warning: line 8: It's not recommended to have unversioned Obsoletes: Obsoletes: SysProvides
    Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Mq2aea
    + umask 022
    + cd /packages/aix/creation_rpm/BUILD
    + RPM_EC=0
    + jobs -p
    + exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Mu2aeb
    + umask 022
    + cd /packages/aix/creation_rpm/BUILD
    + RPM_EC=0
    + jobs -p
    + exit 0
    Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Mu2aec
    + umask 022
    + cd /packages/aix/creation_rpm/BUILD
    + RPM_EC=0
    + jobs -p
    + exit 0
    Processing files: AIX-rpm-7.2.2.15-1.ppc
    Wrote: /packages/aix/creation_rpm/SRPMS/AIX-rpm-7.2.2.15-1.src.rpm
    Wrote: /packages/aix/creation_rpm/RPMS/ppc/AIX-rpm-7.2.2.15-1.ppc.rpm
    Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.M32aed
    + umask 022
    + cd /packages/aix/creation_rpm/BUILD
    + RPM_EC=0
    + jobs -p
    + exit 0

    [root@bu8z] /source/unzip
    # rpm -qa
    [root@bu8z] /source/unzip
    #

    We have also done updtvpkg debug with sh -x /usr/sbin/updtvpkg in attachment 

    Can you please help us  ?

    Thanks in advance
    Regards
    HBO

    michiyo.cartron-saeki@atos.net">

    Attachment(s)

    txt
    Logs.txt   4 KB 1 version


  • 2.  RE: Insallation unzip AIX7.2

    Posted Mon June 13, 2022 06:29 AM
    You are not able to create virtual rpm package that provides AIX libraries and files.
    updtvpkg command is used to build virtual rpm package AIX-rpm.
    In your case updtvpkg command is failing because looks like you have set rpm dirs path (/packages/aix/creation_rpm/) differently than default AIX.
    And probably this directory structure does not exist on your system.

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 3.  RE: Insallation unzip AIX7.2

    Posted Tue June 14, 2022 09:51 AM
    Hello Sanket,

    Thank you very much for your help.
    I don't urderstand what do you mean about differently than default AIX path ( what is this default path in AIX) /opt/freeware/packages ?? And probably this directory structure does not exist on your system.

    The version of rpm is 
    # lslpp -l|grep rpm.rte
      rpm.rte                  4.15.1.3  COMMITTED  RPM Package Manager
      rpm.rte                  4.15.1.3  COMMITTED  RPM Package Manager

    # rpm -q AIX-rpm --provides
    package AIX-rpm is not installed

    Concretely, what should I modify to have AIX-rpm installed please  ?

    Thanks a lot for your availability

    HBO


    ------------------------------
    Hakim BOUDJEMIL
    ------------------------------



  • 4.  RE: Insallation unzip AIX7.2

    Posted Tue June 14, 2022 11:25 AM
    Hi Hakim,

    Can you check what is the output of  "rpm --showrc | grep topdir" ?
    By default the _topdir macro is set as " _topdir %{_usrsrc}/packages"  where usrsrc is /opt/freeware/src.

    Do you have .rpmmacros file in your users home path where _topdir is set to "/packages/aix/creation_rpm/" ?

    ------------------------------
    SANGAMESH
    ------------------------------



  • 5.  RE: Insallation unzip AIX7.2

    Posted Thu June 16, 2022 06:31 AM
    Hi Sangamesh,

    Thank for all

    root@bu8z] /
    # rpm --showrc | grep topdir
    -13: _builddir  %{_topdir}/BUILD
    -13: _rpmdir    %{_topdir}/RPMS
    -13: _sourcedir %{_topdir}/SOURCES
    -13: _specdir   %{_topdir}/SPECS
    -13: _srcrpmdir %{_topdir}/SRPMS
    -13: _topdir    %{_usrsrc}/creation_rpm
    [root@bu8z] /

    For Do you have .rpmmacros file in your users home path where _topdir is set to "/packages/aix/creation_rpm/" ?
    I didn't not really understand your request and how I can answer it.

    Hope to read you 

    Thank
    Regards,

    Hakim


    ------------------------------
    HBO
    ------------------------------



  • 6.  RE: Insallation unzip AIX7.2

    Posted Thu June 16, 2022 10:16 AM
    Hi Hakim,

    You can check this with command "cat ~/.rpmmacros"

    I think you are having a different "_build_name_fmt" in your .rpmmacros file than the default one which is causing this issue.

    %_build_name_fmt %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm

    Instead of the default one.

    # rpm --showrc | grep _build_name_fmt
    -13: _build_name_fmt %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{OS}.%%{ARCH}.rpm



    ------------------------------
    SANGAMESH
    ------------------------------



  • 7.  RE: Insallation unzip AIX7.2

    Posted Fri June 17, 2022 06:09 AM
    Hi Sangamesh, 

    [root@bu8z] /
    # cat .rpmmacros
    --Customization of directories
    %_usr           /packages
    %_usrsrc        %{_usr}/aix
    %_topdir        %{_usrsrc}/creation_rpm

    #---- Customization of the build rpm name
    %_rpmfilename   %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%{ARCH}.rpm
    [root@bu8z] /
    #
    # rpm --showrc | grep _build_name_fmt
    -13: _build_name_fmt    %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{OS}.%%{ARCH}.rpm
    [root@bu8z] /

    Thank you very much
    Regards, 

    Hakim 
    HBO

    ------------------------------
    HBO
    ------------------------------



  • 8.  RE: Insallation unzip AIX7.2

    Posted Fri June 17, 2022 08:10 AM
    Hi Hakim

    By default _rpmfilename is same as _build_name_fmt.

    # rpm --showrc | grep _rpmfilename
    -13: _rpmfilename %{_build_name_fmt}

    And updtvpkg creates and looks for AIX-rpm package in the _build_name_fmt format.

    Since you have different _rpmfilename and _build_name_fmt updtvpkg is not able to find the created virtual package.

    ------------------------------
    SANGAMESH
    ------------------------------



  • 9.  RE: Insallation unzip AIX7.2

    Posted Mon July 11, 2022 11:57 AM
    Hi Sangamesh,

    Sorry for the delay,
    If  I have different rpmfilename and _build_name_fmt how I can modify them to be equal and resolve updtvpkg 

    Thank in advance
    Hakim
    HBO


    ------------------------------
    HBO
    ------------------------------



  • 10.  RE: Insallation unzip AIX7.2

    Posted Tue July 12, 2022 03:36 AM
    You need to check why .rpmmacros is configured that way ( probably by previous admins). 
    Removing it,  then login again and then running updtvpkg will fix the problem here.

    ------------------------------
    Ayappan P
    ------------------------------