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.  0707-109 Member name libpython2.7.so does not exist.

    Posted Thu August 05, 2021 07:51 PM
    Hi folks
    while running 
    yum install curl, i  may have corrupted python 2.7.10
    $yum list
    exec(): 0509-036 Cannot load program /opt/freeware/bin/python2 because of the following errors:
    0509-150 Dependent module /opt/freeware/lib64/libpython2.7.a(libpython2.7.so) could not be loaded.
    0509-103 The module has an invalid magic number.

    $ldd /opt/freeware/bin/python2

    /opt/freeware/bin/python2 needs:
    /usr/lib/libbsd.a(shr.o)
    /opt/freeware/lib64/libpython2.7.a(libpython2.7.so)
    a
    r: 0707-109 Member name libpython2.7.so does not exist.
    dump: /tmp/tmpdir11272634/extract/libpython2.7.so: 0654-106 Cannot open the specified file.
    /usr/lib/libpthreads.a(shr_xpg5.o)
    /usr/lib/libc.a(shr.o)
    /usr/lib/librtl.a(shr.o)
    /unix
    /usr/lib/libpthreads.a(shr_comm.o)
    /usr/lib/libcrypt.a(shr.o)

    $echo $LIBPATH
    /opt/freeware/lib64:/opt/freeware/lib:

    $ls -l /opt/freeware/lib64/libpython2.7.a
    -r-xr-xr-x 1 root system 7212825 Jun 22 2016 /opt/freeware/lib64/libpython2.7.a

    root @ $ls -l /opt/freeware/lib/libpython2.7.a
    -r-xr-xr-x 1 root system 6117999 Jun 22 2016 /opt/freeware/lib/libpython2.7.a

    Anyone has similar issue?

    Your help is greatly appreciated

    Dharma




    ------------------------------
    Dharma Sanassy
    ------------------------------

    #AIXOpenSource


  • 2.  RE: 0707-109 Member name libpython2.7.so does not exist.

    Posted Fri August 06, 2021 02:40 AM
    I think the problem is because of setting LIBPATH. 
    You are adding lib64 path before lib path and it is using lib64 for 32bit application (python).
    Please unset LIBPATH and see if you still face the issue.

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



  • 3.  RE: 0707-109 Member name libpython2.7.so does not exist.

    Posted Mon August 09, 2021 04:25 PM
    You are correct 
    root @res1: / $export LIBPATH=/opt/freeware/lib:/usr/lib:
     
     
    Fixed the issue
    root @resig1: / $yum list
    AIX_Toolbox | 2.6 kB 00:00:00
    AIX_Toolbox_72 | 2.5 kB 00:00:00
    AIX_Toolbox_noarch | 2.5 kB 00
     
     
    Thanks so much
    Dharma