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
  • 1.  python3 3.7.9 symlinks in /usr/bin are missing

    Posted Thu September 17, 2020 06:44 AM
    Hi,

    python3 3.7.6 had symlinks in /usr/bin:

    # rpm -q python3
    python3-3.7.6-1.ppc
    # ls -l /usr/bin/python3*
    lrwxrwxrwx 1 root system 30 Sep 17 12:41 /usr/bin/python3 -> ../../opt/freeware/bin/python3
    lrwxrwxrwx 1 root system 32 Sep 17 12:41 /usr/bin/python3.7 -> ../../opt/freeware/bin/python3.7
    lrwxrwxrwx 1 root system 35 Sep 17 12:41 /usr/bin/python3.7_32 -> ../../opt/freeware/bin/python3.7_32
    lrwxrwxrwx 1 root system 35 Sep 17 12:41 /usr/bin/python3.7_64 -> ../../opt/freeware/bin/python3.7_64
    lrwxrwxrwx 1 root system 33 Sep 17 12:41 /usr/bin/python3.7m -> ../../opt/freeware/bin/python3.7m
    lrwxrwxrwx 1 root system 36 Sep 17 12:41 /usr/bin/python3.7m_32 -> ../../opt/freeware/bin/python3.7m_32
    lrwxrwxrwx 1 root system 36 Sep 17 12:41 /usr/bin/python3.7m_64 -> ../../opt/freeware/bin/python3.7m_64
    lrwxrwxrwx 1 root system 33 Sep 17 12:41 /usr/bin/python3_32 -> ../../opt/freeware/bin/python3_32
    lrwxrwxrwx 1 root system 33 Sep 17 12:41 /usr/bin/python3_64 -> ../../opt/freeware/bin/python3_64

    After update, they're missing:

    # yum -y update
    Setting up Update Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package python3.ppc 0:3.7.6-1 will be updated
    ---> Package python3.ppc 0:3.7.9-1 will be an update
    --> Finished Dependency Resolution

    Dependencies Resolved

    =================================================================================================================================================================================================
    Package Arch Version Repository Size
    =================================================================================================================================================================================================
    Updating:
    python3 ppc 3.7.9-1 AIX_Toolbox 39 M

    Transaction Summary
    =================================================================================================================================================================================================
    Upgrade 1 Package

    Total size: 39 M
    Downloading Packages:
    Running Transaction Check
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Updating : python3-3.7.9-1.ppc 1/2
    Cleanup : python3-3.7.6-1.ppc 2/2

    Updated:
    python3.ppc 0:3.7.9-1

    Complete!
    # rpm -q python3
    python3-3.7.9-1.ppc
    # ls -l /usr/bin/python3*
    ls: 0653-341 The file /usr/bin/python3* does not exist.

    ------------------------------
    Andrey Klyachkin
    ------------------------------


  • 2.  RE: python3 3.7.9 symlinks in /usr/bin are missing
    Best Answer

    Posted Thu September 17, 2020 07:59 AM
    Hi Andrey,

    Yes we are no more going to provide symlinks in /usr for packages from AIX toolbox.
    This cause issues with the base AIX binaries, libraries and include files.
    Going forwards we are going to start removing symlinks from /usr for all packages and request everyone to use /opt path.
    This is going to be some inconvenience initially but it is good for long run.

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



  • 3.  RE: python3 3.7.9 symlinks in /usr/bin are missing

    Posted Mon December 05, 2022 09:01 AM
    I have the same issue and IBM Spectrum Scale DM' smmsysmoncontrol command is looking for it in /usr/bin.

        mmsysmoncontrol restart

         Fri Dec  2 13:37:00 EST 2022: [W] Python >= 3.6 not found in /usr/bin/python3. The Spectrum Scale monitoring service will not be started.

    Any suggestions?



    ------------------------------
    Carl Gerlach
    ------------------------------



  • 4.  RE: python3 3.7.9 symlinks in /usr/bin are missing

    Posted Mon December 05, 2022 02:26 PM
    Hi Carl,

    Though their policy has changed about putting symlinks in, there's no reason you can't do it if you need them. Try setting your PATH first, then resort to links.

    ------------------------------
    Mario Stargard
    ------------------------------



  • 5.  RE: python3 3.7.9 symlinks in /usr/bin are missing

    Posted Tue December 06, 2022 08:50 AM
    Thanks Mario. Thats right. If user wants to create symlink in their environment they can still create.
    From AIX toolbox we will not do as we are not aware of environment and blindly polluting /usr can result in other issues (we have seen that in past)

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