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.  About the prerequisite RPM for installing python2.7.5

    Posted Mon November 14, 2022 01:32 AM
    Hi, I would like you to advice on introducing python2.7.5.

    We are building a TNM server and need to install python2.7.5. The AIX environment is 7.2 and I installed the following RPM file set that I was told here the other day.

    https://developer.ibm.com/tutorials/installing-and-configuring-gtk-on-aix/

    When we built a TNM server in the AIX7.1 environment last time, we installed python2.7.5 along with the following installation premises. 

    tcl-8.4.7-4.aix6.1.ppc.rpm
    tk-8.4.7-4.aix6.1.ppc.rpm
    gdbm-1.8.3-5.aix5.2.ppc.rpm
    readline-6.1-2.aix6.1.ppc.rpm

    I failed installed the latest version of the same RPM except for readline. It seems that libgcc should be 8.3.0.
    Since python2.7.5 is old, should I use the old RPM version for installation?

    Thank you in advance.
    Aiko Nishida


    ------------------------------
    Aiko Nishida
    ------------------------------

    #AIXOpenSource


  • 2.  RE: About the prerequisite RPM for installing python2.7.5

    Posted Mon November 14, 2022 02:04 AM
    It is always recommended to have recent versions of packages/rpms installed. Python 2 is already out of support for quite sometime.

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



  • 3.  RE: About the prerequisite RPM for installing python2.7.5

    Posted Mon November 14, 2022 02:22 AM
      |   view attached
    Hi, thank you for your quick reply.

    It seems that libgcc8.3.0 is a prerequisite for installing the latest version. I currently have libgcc 6.3.0-1 installed and when I try to install to 8.3.0 I get the following error.

    # rpm -ivh libgcc8-8.3.0-6.aix7.2.ppc.rpm
    error: Failed dependencies:
    libgcc <= 9.1.0 conflicts with libgcc8-8.3.0-6.ppc

    Is there any workaround? I have attached the log, so I want you to check it.

    best regards,
    Aiko Nishida


    ------------------------------
    Aiko Nishida
    ------------------------------

    Attachment(s)

    txt
    20221114.txt   5 KB 1 version


  • 4.  RE: About the prerequisite RPM for installing python2.7.5

    Posted Mon November 14, 2022 02:34 AM
    Without dnf, it will be difficult to update to multiversioned gcc rpms. 
    Probably you need to list all the installed rpms here. "rpm -qa"

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



  • 5.  RE: About the prerequisite RPM for installing python2.7.5

    Posted Mon November 14, 2022 02:53 AM
    Hi, thank you for your reply.

    Can dnf be installed in an environment that uses python2.7.5?
    The command execution result is below.

    libgcc-6.3.0-1.ppc
    zlib-1.2.11-1.ppc
    libffi-3.2.1-2.ppc
    glib2-2.56.1-2.ppc
    gmp-6.1.2-1.ppc
    libmpc-1.0.3-1.ppc
    libjpeg-6b-7.ppc
    xz-libs-5.2.4-1.ppc
    shared-mime-info-1.6-2.ppc
    libXrender-0.9.8-2waixX11.ppc
    freetype2-2.8-1.ppc
    fontconfig-2.11.95-3.ppc
    cairo-1.14.6-2waixX11.ppc
    libXft-2.3.2-4waixX11.ppc
    gdk-pixbuf-2.35.1-2waixX11.ppc
    unzip-6.0-3.ppc
    libstdc++-6.3.0-1.ppc
    ncurses-6.1-2.ppc
    gettext-0.19.8.1-3.ppc
    bash-4.4-3.ppc
    info-6.4-1.ppc
    mpfr-3.1.2-3.ppc
    libpng-1.6.27-2.ppc
    libtiff-3.8.2-1.ppc
    libxml2-2.9.7-1.ppc
    atk-2.20.0-3.ppc
    pixman-0.34.0-1.ppc
    expat-2.2.4-1.ppc
    lzo-2.10-2.ppc
    harfbuzz-1.2.7-2.ppc
    pango-1.40.1-2waixX11.ppc
    gtk2-2.24.30-2waixX11.ppc
    readline-8.1-1.ppc
    AIX-rpm-7.2.5.103-7.ppc

    best regards,
    Aiko Nishida

    ------------------------------
    Aiko Nishida
    ------------------------------



  • 6.  RE: About the prerequisite RPM for installing python2.7.5

    Posted Mon November 14, 2022 03:22 AM
    Yes , you can install dnf and then using dnf you can install python2.

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



  • 7.  RE: About the prerequisite RPM for installing python2.7.5

    Posted Wed November 16, 2022 07:37 PM
    Hi, thank you for your reply.
    I installed dnf. When I tried to install python2.7.5 by dnf, I got the following error. Should I respond by specifying the option described at the end of the error?

    root@arsmsomp1(SO)[/usr/local/nc/module/rpms]# LANG=C /opt/freeware/bin/dnf install -y ./python-2.7.5-1.aix6.1.ppc.rpm
    AIX generic repository 0.0 B/s | 0 B 00:00
    Errors during downloading metadata for repository 'AIX_Toolbox':
    - Curl error (6): Couldn't resolve host name for anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml [Could not resolve host: public.dhe.ibm.com]
    Error: Failed to download metadata for repo 'AIX_Toolbox': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    AIX noarch repository 0.0 B/s | 0 B 00:00
    Errors during downloading metadata for repository 'AIX_Toolbox_noarch':
    - Curl error (6): Couldn't resolve host name for anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/repodata/repomd.xml">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/repodata/repomd.xml [Could not resolve host: public.dhe.ibm.com]
    Error: Failed to download metadata for repo 'AIX_Toolbox_noarch': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    AIX 7.2 specific repository 0.0 B/s | 0 B 00:00
    Errors during downloading metadata for repository 'AIX_Toolbox_72':
    - Curl error (6): Couldn't resolve host name for anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/repodata/repomd.xml">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/repodata/repomd.xml [Could not resolve host: public.dhe.ibm.com]
    Error: Failed to download metadata for repo 'AIX_Toolbox_72': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    Ignoring repositories: AIX_Toolbox, AIX_Toolbox_noarch, AIX_Toolbox_72
    Error:
    Problem: conflicting requests
    - nothing provides /opt/freeware/bin/python2.7 needed by python-2.7.5-1.ppc
    - nothing provides /opt/freeware/bin/python2.7_64 needed by python-2.7.5-1.ppc
    - nothing provides libgdbm.a(libgdbm.so.3) needed by python-2.7.5-1.ppc
    (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

    best regards,
    Aiko Nishida


    ------------------------------
    Aiko Nishida
    ------------------------------



  • 8.  RE: About the prerequisite RPM for installing python2.7.5

    Posted Thu December 01, 2022 05:07 AM
    Sorry for late reply but as you can see from error output it is not able to resolve hostname.
    So either you AIX system is not on internet or can not connect to AIX toolbox or there is issue in name resolution. 

    "Curl error (6): Couldn't resolve host name for"

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