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

samba installation through yum

  • 1.  samba installation through yum

    Posted Wed November 07, 2018 04:08 PM

    Originally posted by: lfoo


    We are getting errors with dependent module lib errors with samba installation through yum, the listed lib modules seemed to be present on our AIX 7.1TL5SP1 lpar  Any suggestion on how to get through with yum installation below?  Thanks.

     

    # yum install samba

    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

            0509-022 Cannot load module /usr/lib/libglib-2.0.a(libglib-2.0.so.0).
            0509-150   Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.
            0509-152   Member libiconv.so.2 is not found in archive
            0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so.
            0509-150   Dependent module /usr/lib/libglib-2.0.a(libglib-2.0.so.0) could not be loaded.

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.10 (default, Jun 22 2016, 05:57:59) [C]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
      http://yum.baseurl.org/wiki/Faq

     

     

    lrwxrwxrwx    1 root     system           36 May 20 2013  /usr/lib/libglib-2.0.a@ -> ../../opt/freeware/lib/libglib-2.0.a*
    -r--r--r--    1 bin      bin          788913 Feb 08 2018  /usr/lib/libiconv.a
    -rwxr-xr-x    1 root     system       184631 Feb 24 2017  /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so*
    lrwxrwxrwx    1 root     system           36 May 20 2013  /usr/lib/libglib-2.0.a@ -> ../../opt/freeware/lib/libglib-2.0.a*

     



  • 2.  Re: samba installation through yum

    Posted Thu November 08, 2018 01:25 AM

    Originally posted by: AyappanP


    You don't seem to have AIX Toolbox glib2 rpm

    Please install the one from Toolbox.



  • 3.  Re: samba installation through yum

    Posted Thu November 08, 2018 10:55 AM

    Originally posted by: lfoo


    Thanks @AyappanP 43b0c085-7945-4b4f-8d26-6f7252a212b8. The glib2 rpm installation from AIX Toolbox completed without any issues, Subsequent installation of samba returns with errors below. Any suggestions?

     

    # yum install samba
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

            0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so.
            0509-150   Dependent module libglib-2.0.a(libglib-2.0.so.0) could not be loaded.
            0509-022 Cannot load module libglib-2.0.a(libglib-2.0.so.0).
            0509-026 System error: A file or directory in the path name does not exist.
            0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so.
            0509-150   Dependent module /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so could not be loaded.

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.10 (default, Jun 22 2016, 05:57:59) [C]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
      http://yum.baseurl.org/wiki/Faq


     



  • 4.  Re: samba installation through yum

    Posted Fri November 09, 2018 01:22 AM

    Originally posted by: AyappanP


    Some problem with your installation. Run the below command and share the output.

    # ldd /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so
    /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so needs:
             /usr/lib/libglib-2.0.a(libglib-2.0.so.0)
             /usr/lib/libxml2.a(libxml2.so.2)
             /usr/lib/libsqlite3.a(libsqlite3.so.0)
             /usr/lib/libc.a(shr.o)
             /usr/lib/librtl.a(shr.o)
             /opt/freeware/lib/libgcc_s.a(shr.o)
             /usr/lib/libiconv.a(shr4.o)
             /usr/lib/libpthreads.a(shr_xpg5.o)
             /usr/lib/libintl.a(libintl.so.8)
             /usr/lib/libpthread.a(shr_xpg5.o)
             /unix
             /usr/lib/libcrypt.a(shr.o)
             /usr/lib/libpthreads.a(shr_comm.o)

     



  • 5.  Re: samba installation through yum

    Posted Fri November 09, 2018 12:29 PM

    Originally posted by: lfoo


     @AyappanA 5fa29054-1be4-4825-acfd-66dd6484639f see below for output. Thanks.

    # ldd  /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so
    /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so needs:
    Cannot find libglib-2.0.a(libglib-2.0.so.0)
             /usr/lib/libxml2.a(libxml2.so.2)
             /usr/lib/libsqlite3.a(libsqlite3.so.0)
             /usr/lib/libc.a(shr.o)
             /usr/lib/librtl.a(shr.o)
             /usr/lib/libpthread.a(shr_xpg5.o)
             /usr/lib/libiconv.a(shr4.o)
             /unix
             /usr/lib/libcrypt.a(shr.o)
             /usr/lib/libpthreads.a(shr_comm.o)
     



  • 6.  Re: samba installation through yum

    Posted Mon November 12, 2018 05:46 AM

    Originally posted by: AyappanP


    It seems like you don't have libglib-2.0.a(libglib-2.0.so.0) library present in the system.

    Please re-check whether you have the glib2 rpm installed and the library is present /usr/lib & /opt/freeware/lib.

     



  • 7.  Re: samba installation through yum

    Posted Mon November 12, 2018 11:02 AM

    Originally posted by: lfoo


    # rpm -qa | grep glib2
    glib2-2.36.0-1.ppc

     

    / # ls -l /usr/lib/libglib*
    lrwxrwxrwx    1 root     system           36 Nov 08 09:08 /usr/lib/libglib-2.0.a@ -> ../../opt/freeware/lib/libglib-2.0.a
    lrwxrwxrwx    1 root     system           37 May 20 2013  /usr/lib/libglib-2.0.so@ -> ../../opt/freeware/lib/libglib-2.0.so*
    lrwxrwxrwx    1 root     system           39 May 20 2013  /usr/lib/libglib-2.0.so.0@ -> ../../opt/freeware/lib/libglib-2.0.so.0*
     # ls -l /opt/freeware/lib/libglib*
    lrwxrwxrwx    1 root     system           16 May 20 2013  /opt/freeware/lib/libglib-2.0.so@ -> libglib-2.0.so.0*
    -rwxr-xr-x    1 root     system      1801664 Apr 02 2013  /opt/freeware/lib/libglib-2.0.so.0*

     

    Wonder if the issue is related to inconsistencies in python modules instead? Any suggestion on how to remediate the state with yum?

     # yum list installed
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

            0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so.
            0509-150   Dependent module libglib-2.0.a(libglib-2.0.so.0) could not be loaded.
            0509-022 Cannot load module libglib-2.0.a(libglib-2.0.so.0).
            0509-026 System error: A file or directory in the path name does not exist.
            0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so.
            0509-150   Dependent module /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so could not be loaded.

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.10 (default, Jun 22 2016, 05:57:59) [C]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
      http://yum.baseurl.org/wiki/Faq

     

     

    # rpm -qa | grep python
    python-pycurl-7.19.3-1.ppc
    python-tools-2.7.10-1.ppc
    python-2.7.10-1.ppc
    python-iniparse-0.4-1.noarch
    python-urlgrabber-3.10.1-1.noarch
    python-devel-2.7.10-1.ppc

     

    Thanks ahead @AyappanP 43b0c085-7945-4b4f-8d26-6f7252a212b8!.



     



  • 8.  Re: samba installation through yum

    Posted Mon November 12, 2018 11:28 AM

    Originally posted by: AyappanP


    If you see the output more clearly, there is no libglib-2.0.a in /opt/freeware/lib.

    Something wrong with your installation. Please reinstall it.

     

     



  • 9.  Re: samba installation through yum

    Posted Mon November 12, 2018 12:14 PM

    Originally posted by: lfoo


    glib2 installed but the yum state is still cloudy. The errors with python modules still running amok with each yum operations.

     

    # yum list installed glib2
    Installed Packages
    glib2.ppc                                    2.56.1-2                                     @AIX_Toolbox

     

     #rpm -qa | grep -i glib2
    glib2-2.14.6-2.ppc
    glib2-2.56.1-2.ppc
     

     

    lrwxrwxrwx    1 root     system           36 Nov 12 10:49 /usr/lib/libglib-2.0.a@ -> ../../opt/freeware/lib/libglib-2.0.a*
    lrwxrwxrwx    1 root     system           37 Nov 12 10:49 /usr/lib/libglib-2.0.so@ -> ../../opt/freeware/lib/libglib-2.0.so*
    lrwxrwxrwx    1 root     system           39 Nov 12 10:49 /usr/lib/libglib-2.0.so.0@ -> ../../opt/freeware/lib/libglib-2.0.so.0*
     

     

     # ls -l /opt/freeware/lib/libglib*
    -rwxr-xr-x    1 root     system     15384286 Aug 07 01:57 /opt/freeware/lib/libglib-2.0.a*
    lrwxrwxrwx    1 root     system           16 Nov 12 10:48 /opt/freeware/lib/libglib-2.0.so@ -> libglib-2.0.so.0*
    -rwxr-xr-x    1 root     system      7281447 Aug 07 01:57 /opt/freeware/lib/libglib-2.0.so.0*

     # yum search
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

            0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
            0509-150   Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so) could not be loaded.
            0509-152   Member libcrypto.so is not found in archive
            0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
            0509-150   Dependent module /opt/freeware/lib/python2.7/site-packages/pycurl.so could not be loaded.

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.15 (default, Sep 28 2018, 03:58:41)
    [GCC 6.3.0]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
      http://yum.baseurl.org/wiki/Faq

     

    # yum install samba
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

            0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
            0509-150   Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so) could not be loaded.
            0509-152   Member libcrypto.so is not found in archive
            0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
            0509-150   Dependent module /opt/freeware/lib/python2.7/site-packages/pycurl.so could not be loaded.

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.15 (default, Sep 28 2018, 03:58:41)
    [GCC 6.3.0]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
      http://yum.baseurl.org/wiki/Faq

     


     



  • 10.  Re: samba installation through yum

    Posted Mon November 12, 2018 12:23 PM

    Originally posted by: AyappanP


    Please remove the openssl rpm.

    yum works with the openssl installp fileset.



  • 11.  Re: samba installation through yum

    Posted Mon November 12, 2018 12:48 PM

    Originally posted by: lfoo


    Do you mean these?

     

     # rpm -qa | grep openssl
    krb5-pkinit-openssl-1.9.4-1.ppc
    openssl-devel-1.0.1f-1.ppc
    openssl-1.0.1f-1.ppc
     


     



  • 12.  Re: samba installation through yum

    Posted Thu November 15, 2018 10:00 AM

    Originally posted by: AyappanP


    Remove the openssl and openssl-devel rpms.



  • 13.  Re: samba installation through yum

    Posted Fri July 19, 2019 05:18 PM

    Originally posted by: pstephen


    I was able to get samba 4.9.6-1 installed on AIX V7.1 TL4 SP7 using YUM after installing the openssl 1.0.2.1800.       The installation completed with no errors.

    However, now when I attempt to run nmbd or smbd I get...

    rxuat@/usr/sys/inst.images/installp# /opt/freeware/sbin/nmbd --version
    exec(): 0509-036 Cannot load program /opt/freeware/sbin/nmbd because of the following errors:
            0509-022 Cannot load module /opt/freeware/lib/libsmbconf.so.
            0509-150   Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.
            0509-152   Member libiconv.so.2 is not found in archive
            0509-022 Cannot load module nmbd.
            0509-150   Dependent module /opt/freeware/lib/libsmbconf.so could not be loaded.
            0509-022 Cannot load module .

     

    libiconv appears to be installed.     Yum gives me the output below.    What could be missing?   Thanks for any suggestions.:

    rrxuat@/usr/sys/inst.images/installp# yum install libiconv
    Setting up Install Process
    Package libiconv-1.14-2.ppc already installed and latest version
    Nothing to do



  • 14.  Re: samba installation through yum

    Posted Tue July 23, 2019 02:17 AM

    Originally posted by: AyappanP


    Do you have LIBPATH exported and made to search in /usr/lib first ?

    Samba libraries dynamically link against /opt/freeware/lib/libiconv.a (libiconv.so.2) provided by the libiconv rpm which seems to be installed in your case. 

    And there is also a AIX base provided libiconv.a which don't have this shared library. 

    Please check the LIBPATH and check /opt/freeware/lib/libiconv.a file ( ar -tv /opt/freeware/lib/libiconv.a ).