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

Install Python3 (AIX 7.1)

  • 1.  Install Python3 (AIX 7.1)

    Posted Wed June 13, 2018 08:10 AM

    Originally posted by: Hit32


    The Python3 installation dependency error can not be solved at all.

    Any suggestions?

    ========================================================

    The following dependency error occurs at installation.

    bash-4.2# ls
    python3-3.6.3-1.aix6.1.ppc.rpm        python3-docs-3.6.3-1.aix6.1.ppc.rpm
    python3-devel-3.6.3-1.aix6.1.ppc.rpm  python3-tools-3.6.3-1.aix6.1.ppc.rpm
    bash-4.2# rpm -Uvh python3-*
    error: failed dependencies:
            libcrypto.a(libcrypto.so) is needed by python3-3.6.3-1
            libssl.a(libssl.so) is needed by python3-3.6.3-1
    bash-4.2#

    ========================================================

    *Reference information

    bash-4.2# ls -l  /usr/linux/lib | grep libssl
    lrwxrwxrwx    1 root     system           26 Jan 23 2017  libssl.a -> /opt/freeware/lib/libssl.a
    lrwxrwxrwx    1 root     system           27 May 31 13:41 libssl.so -> /opt/freeware/lib/libssl.so
    lrwxrwxrwx    1 root     system           33 Jun 13 17:30 libssl.so.1.0.1 -> /opt/freeware/lib/libssl.so.1.0.1
    bash-4.2# ls -l  /usr/linux/lib | grep libcrypt
    lrwxrwxrwx    1 root     system           29 Jan 23 2017  libcrypto.a -> /opt/freeware/lib/libcrypto.a
    lrwxrwxrwx    1 root     system           30 May 31 13:41 libcrypto.so -> /opt/freeware/lib/libcrypto.so
    lrwxrwxrwx    1 root     system           36 Jun 13 17:30 libcrypto.so.1.0.1 -> /opt/freeware/lib/libcrypto.so.1.0.1

    bash-4.2# ls -l  /usr/lib | grep libcrypt
    -r-xr-xr-x    1 bin      bin           11575 Nov 15 2016  libcrypt.a
    -r-xr-xr-x    1 root     system     11626939 Jun 10 2014  libcrypto.a
    -r-xr-xr-x    1 root     system      4857978 Jun 10 2014  libcrypto_compat.a
    bash-4.2# ls -l  /usr/lib | grep libssl
    -r-xr-xr-x    1 root     system      2546006 Jun 10 2014  libssl.a
    -r-xr-xr-x    1 root     system      1086056 Jun 10 2014  libssl_compat.a
    ---

    *Python2 is already installed.

    bash-4.2# rpm -qa | grep python
    python-docs-2.7.5-1
    python-2.7.5-1
    python-devel-2.7.5-1
    python-tools-2.7.5-1
    bash-4.2#

    ========================================================

     



  • 2.  Re: Install Python3 (AIX 7.1)

    Posted Wed June 13, 2018 09:41 AM

    Originally posted by: AyappanP


    Do you have openssl rpm installed from bullfreeware or perzl ? If that is the case, remove it and try to use the one from AIX web expansion pack https://www-01.ibm.com/marketing/iwm/iwm/web/reg/download.do?source=aixbp&lang=en_US&S_PKG=openssl&cp=UTF-8&dlmethod=http 

    The problem here seems to be with openssl rpm. 



  • 3.  Re: Install Python3 (AIX 7.1)

    Posted Fri June 22, 2018 02:49 AM

    Originally posted by: Hit32


    Thank you for replying.and  sorry to be late replying.

    Yes.I installed from oss4aix.org.

    Does the "web expansion pack" library configurations differ from these rpm packages?

     

    The same dependency error is occured when I update python2.

    Is it becase the version of openssl is old?

     

    =================================================

    bash-4.2# rpm -ivh python-2.7.5-1.aix6.1.ppc.rpm python-devel-2.7.5-1.aix6.1.ppc.rpm python-docs-2.7.5-1.aix6.1.ppc.rpm python-tools-2.7.5-1.aix6.1.ppc.rpm
    python                      ##################################################
    python-devel                ##################################################
    python-docs                 ##################################################
    python-tools                ##################################################
    bash-4.2# rpm -Uvh python-2.7.13-1.aix6.1.ppc.rpm python-devel-2.7.13-1.aix6.1.ppc.rpm python-docs-2.7.13-1.aix6.1.ppc.rpm python-tools-2.7.13-1.aix6.1.ppc.rpm
    error: failed dependencies:
            libcrypto.a(libcrypto.so) is needed by python-2.7.13-1
            libssl.a(libssl.so) is needed by python-2.7.13-1
    bash-4.2#

    =================================================

     

    Thanks.

    Yu



  • 4.  Re: Install Python3 (AIX 7.1)

    Posted Fri June 22, 2018 10:13 AM

    Originally posted by: AyappanP


    Yes, the web expansion pack library is different from the one in oss4aix. It comes in installp format. Install it and run "updtvpkg" command.

    Then try to install python from AIX Toolbox.



  • 5.  Re: Install Python3 (AIX 7.1)

    Posted Wed June 27, 2018 03:17 AM
      |   view attached

    Originally posted by: Hit32


    Because it is determined to be spam, so Please refer to the attached file.

    thanks.

    Yu

    Attachment(s)

    txt
    reply.txt   1 KB 1 version


  • 6.  Re: Install Python3 (AIX 7.1)

    Posted Wed June 27, 2018 08:20 AM

    Originally posted by: AyappanP


    Just check whether the /usr/lib/libssl.a & libcrypto.a has .so member inside it.

    /usr/bin/ar -tv /usr/lib/libssl.a 

     

    And also run "updtvpkg" command and try installing python again.



  • 7.  Re: Install Python3 (AIX 7.1)

    Posted Wed July 04, 2018 11:53 PM

    Originally posted by: Hit32


    The /usr/lib/libssl.a and  /usr/lib/libcrypto.a has .so member inside it

    ---
    bash-4.2# /usr/bin/ar -tv /usr/lib/libssl.a
    rwxrwxr-x 435159/781431 645479 Jun  6 22:02 2014 libssl.so.1.0.0
    rwxrwxr-x 435159/781431 509428 Jun  6 22:05 2014 libssl.so.0.9.8
    bash-4.2# /usr/bin/ar -tv /usr/lib/libcrypto.a
    rwxrwxr-x 435159/781431 2966034 Jun  6 22:02 2014 libcrypto.so.1.0.0
    rwxrwxr-x 435159/781431 2254051 Jun  6 22:04 2014 libcrypto.so.0.9.8
    ---

    Trying  run "updtvpkg" before installing python,but the same dependency error is occured.

     

    Thank you.

    Yu

     



  • 8.  Re: Install Python3 (AIX 7.1)

    Posted Thu July 05, 2018 01:23 AM

    Originally posted by: Hit32


    It seems to be the problem the .so library.

    **************************************************************
    bash-4.2# rpm -qpR python-2.7.5-1.aix6.1.ppc.rpm
    /bin/sh
    /opt/freeware/bin/python
    /opt/freeware/bin/python2.7
    /opt/freeware/bin/python2.7_64
    /usr/bin/env
    libC.a(ansi_32.o)
    libC.a(shr.o)
    libbsd.a(shr.o)
    libbz2.a(libbz2.so.1)
    libc.a(shr.o)
    libcrypt.a(shr.o)
    libcrypto.a(libcrypto.so.0.9.8)★ exist
    libcurses.a(shr42.o)
    libexpat.a(libexpat.so.1)
    libgdbm.a(libgdbm.so.3)
    libintl.a(libintl.so.1)
    libnsl.a(shr.o)
    libpthreads.a(shr_comm.o)
    libpthreads.a(shr_xpg5.o)
    libpython2.7.a(libpython2.7.so)
    libreadline.a(libreadline.so.6)
    librtl.a(shr.o)
    libssl.a(libssl.so.0.9.8)★ exist
    libtcl8.4.so
    libtk8.4.so
    libz.a(libz.so.1)
    bash-4.2#
    **************************************************************

    **************************************************************
    bash-4.2# rpm -qpR python3-3.5.2-3.aix6.1.ppc.rpm
    rpmlib(VersionedDependencies) <= 3.0.3-1
    bzip2
    db >= 4.8
    expat >= 2.0.0
    gdbm
    gmp
    libffi
    ncurses
    readline >= 5.2
    sqlite >= 3
    zlib
    gettext
    /bin/sh
    /bin/sh
    /opt/freeware/bin/python3.5
    /usr/bin/env
    libbsd.a(shr.o)
    libbz2.a(libbz2.so.1)
    libc.a(shr.o)
    libcrypt.a(shr.o)
    libcrypto.a(libcrypto.so)★
    libexpat.a(libexpat.so.1)
    libffi.a(libffi.so.6)
    libgcc_s.a(shr.o)
    libgdbm.a(libgdbm.so.3)
    libintl.a(libintl.so.8)
    liblzma.a(liblzma.so.5)
    libncurses.a(libncurses.so.6)
    libnsl.a(shr.o)
    libpanel.a(libpanel.so.6)
    libpthreads.a(shr_comm.o)
    libpthreads.a(shr_xpg5.o)
    libpython3.5m.so
    libreadline.a(libreadline.so.6)
    librtl.a(shr.o)
    libsqlite3.a(libsqlite3.so.0)
    libssl.a(libssl.so)★
    libz.a(libz.so.1)
    **************************************************************

     

    The next trial  didn't  slove it.

    **************************************************************

    bash-4.2# ar -xv /usr/lib/libcrypto.a
    x - libcrypto.so.1.0.0
    x - libcrypto.so.0.9.8
    bash-4.2# ls -l | grep libcrypto
    -r-xr-xr-x    1 root     system     11626939 Jun 10 2014  libcrypto.a
    -rwxrwxr-x    1 root     system      2254051 Jul  5 14:47 libcrypto.so.0.9.8
    -rwxrwxr-x    1 root     system      2966034 Jul  5 14:47 libcrypto.so.1.0.0
    -r-xr-xr-x    1 root     system      4857978 Jun 10 2014  libcrypto_compat.a
    bash-4.2# pwd
    /usr/lib


    bash-4.2# ln -s libcrypto.so.0.9.8 libcrypto.so
    bash-4.2# ls -l | grep libcrypto
    -r-xr-xr-x    1 root     system     11626939 Jun 10 2014  libcrypto.a
    lrwxrwxrwx    1 root     system           18 Jul  5 14:50 libcrypto.so -> libcrypto.so.0.9.8
    -rwxrwxr-x    1 root     system      2254051 Jul  5 14:47 libcrypto.so.0.9.8
    -rwxrwxr-x    1 root     system      2966034 Jul  5 14:47 libcrypto.so.1.0.0
    -r-xr-xr-x    1 root     system      4857978 Jun 10 2014  libcrypto_compat.a

    **************************************************************

     

    Thank you.

    Yu



  • 9.  Re: Install Python3 (AIX 7.1)

    Posted Thu July 05, 2018 02:09 AM

    Originally posted by: AyappanP


    As i mentioned earlier, remove the openssl rpm & get the openssl installp package from AIX web download pack programs. Install it and run "updtvpkg" .

    Then try to install python.



  • 10.  Re: Install Python3 (AIX 7.1)

    Posted Mon August 27, 2018 10:14 AM

    Originally posted by: Hit32


    Sorry for the late reply.

    Thanks to you, the problem has been solved.

     

    thanks,

    Yu



  • 11.  Re: Install Python3 (AIX 7.1)

    Posted Tue August 28, 2018 01:43 AM
      |   view attached

    Originally posted by: Hit32


    Thank you for the advice on installation.

    I will ask additional questions./

    An error described in the attached text occurs when executing the command.

    Any suggestions?

    thanks,

    Yu

    Attachment(s)

    txt
    20180828_python_t1.txt   3 KB 1 version


  • 12.  Re: Install Python3 (AIX 7.1)

    Posted Tue August 28, 2018 03:21 AM

    Originally posted by: AyappanP


    You have older libgcc rpm. Please update it to libgcc-6.3.0 version.



  • 13.  Re: Install Python3 (AIX 7.1)

    Posted Tue August 28, 2018 05:19 AM

    Originally posted by: Hit32


    The problem is solved.

    thank you so much.

    YU