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

no libX11?

Archive User

Archive UserFri April 05, 2019 02:11 PM

  • 1.  no libX11?

    Posted Fri January 19, 2018 02:44 PM

    Originally posted by: dhcolesj


    I need to install LibXrender which has a dependency of LibX11, I have all the X11 packages installed on the AIX side, and have run updtvpkg, so where is libX11?  It's not in the repo.



  • 2.  Re: no libX11?

    Posted Tue January 23, 2018 10:21 AM

    Originally posted by: AyappanP


    Are you using AIX Toolbox LibXrender rpm ? If that's case, it will have dependency on AIX installp LibX11.

     

    # yum list | grep libXrender

    libXrender.ppc                             0.9.8-1waixX11   @AIX_Toolbox
    libXrender-devel.ppc                       0.9.8-1waixX11   @AIX_Toolbox

     

    # rpm -q --requires libXrender
    libX11.a(shr4.o)
    libc.a(shr.o)

     

    # lslpp -f | grep libX11.a
                            /usr/lpp/X11/lib/R7/libX11.a
                            /usr/lib/libX11.a -> /usr/lpp/X11/lib/R7/libX11.a
                            /usr/lpp/X11/lib/R6/libX11.a

     



  • 3.  Re: no libX11?

    Posted Fri October 26, 2018 12:21 PM

    Originally posted by: bp5591


    Hello, I am trying to install the latest gtk2 and am getting the same error not finding libX11.

    -------

    Error: Package: libXrender-0.9.9-1.ppc (local_AIX_Toolbox)
               Requires: libX11.a(libX11.so.6)
    Error: Package: libXrender-0.9.9-1.ppc (local_AIX_Toolbox)
               Requires: libX11 >= 1.5.99.902

    -------

    when I check my LPAR:

    [root@vctst07 gtk2_bundle_v2.24.30]# whereis libX11
    libX11: /usr/lib/libX11.a

    [root@vctst07 gtk2_bundle_v2.24.30]# lslpp -f | grep libX11
                            /usr/lpp/X11/lib/R7/libX11.a
                            /usr/lib/libX11.a -> /usr/lpp/X11/lib/R7/libX11.a
                            /usr/lpp/X11/lib/R6/libX11.a
                            /usr/lib/nls/msg/en_US/libX11.cat

    -------

    I have my LIBPATH set:

    [root@vctst07 gtk2_bundle_v2.24.30]# echo $LIBPATH
    /usr/lib

    ------

    Thanks!

    Bart

     



  • 4.  Re: no libX11?

    Posted Fri October 26, 2018 12:46 PM

    Originally posted by: AyappanP


    Your libXrender rpm is not from AIX Toolbox. 

    Please use Toolbox rpms to avoid incompatibility.



  • 5.  Re: no libX11?

    Posted Fri October 26, 2018 02:01 PM

    Originally posted by: bp5591


    Thanks for the reply. 

    All of the packages I am trying to install were downloaded from the AIX Toolbox this morning.

    I have tried another install using yum and the "localinstall" option, followed by all of the package names.

    I am still getting the error for libX11 dependency.

    Error: Package: libXrender-0.9.9-1.ppc (/libXrender-0.9.9-1.aix6.1.ppc)
               Requires: libX11 >= 1.5.99.902

    Error: Package: libXrender-0.9.9-1.ppc (/libXrender-0.9.9-1.aix6.1.ppc)
               Requires: libX11.a(libX11.so.6)

     

    This is the list of files I have:

    [root@vctst07 gtk2_bundle_v2.24.30]# ls *.rpm
    atk-2.20.0-3.aix6.1.ppc.rpm                        libXau-1.0.8-1.aix6.1.ppc.rpm
    cairo-1.14.6-2waixX11.aix6.1.ppc.rpm               libXdmcp-1.1.2-1.aix6.1.ppc.rpm
    fontconfig-2.11.95-3.aix6.1.ppc.rpm                libXft-2.3.2-4waixX11.aix6.1.ppc.rpm
    freetype2-2.8-1.aix6.1.ppc.rpm                     libXrender-0.9.8-2waixX11.aix6.1.ppc.rpm
    gdk-pixbuf-2.35.1-2waixX11.aix6.1.ppc.rpm          libXrender-0.9.9-1.aix6.1.ppc.rpm
    gettext-0.19.8.1-1.aix6.1.ppc.rpm                  libffi-3.2.1-2.aix6.1.ppc.rpm
    glib2-2.56.1-2.aix6.1.ppc.rpm                      libgcc-6.3.0-2.aix7.1.ppc.rpm
    gtk2-2.24.30-1waixX11.aix6.1.ppc.rpm               libpng-1.6.27-2.aix6.1.ppc.rpm
    gtk2-2.24.30-1wofX11.aix6.1.ppc.rpm                libpthread-stubs-0.3-2.aix6.1.ppc.rpm
    gtk2-2.24.30-2waixX11.aix6.1.ppc.rpm               libxcb-1.12-2waixX11.aix6.1.ppc.rpm
    gtk2-immodule-xim-2.24.30-1waixX11.aix6.1.ppc.rpm  lzo-2.10-1.aix6.1.ppc.rpm
    gtk2-immodule-xim-2.24.30-2waixX11.aix6.1.ppc.rpm  ncurses-6.1-1.aix6.1.ppc.rpm
    gtk2-immodules-2.24.30-1waixX11.aix6.1.ppc.rpm     pango-1.40.1-2waixX11.aix6.1.ppc.rpm
    gtk2-immodules-2.24.30-1wofX11.aix6.1.ppc.rpm      pixman-0.34.0-1.aix6.1.ppc.rpm
    gtk2-immodules-2.24.30-2waixX11.aix6.1.ppc.rpm     renderproto-0.11.1-1.aix6.1.ppc.rpm
    harfbuzz-1.2.7-2.aix6.1.ppc.rpm                    shared-mime-info-1.6-2.aix6.1.ppc.rpm
    intltool-0.51.0-2.aix6.1.noarch.rpm                xcb-proto-1.12-1.aix6.1.ppc.rpm

     

    Thank you for your help.



  • 6.  Re: no libX11?

    Posted Fri October 26, 2018 02:13 PM

    Originally posted by: AyappanP


    Okay. Don't install this rpm. You already have 0.9.8 version which is the correct one.



  • 7.  Re: no libX11?

    Posted Fri October 26, 2018 02:50 PM

    Originally posted by: bp5591


    okay, thank you. I also ran into issues installing/updating libgcc to libgcc-6.3.0-2.aix7.1.ppc.rpm 

    [root@vctst07 gtk2_bundle_v2.24.30]# rpm -Uvh ./libgcc-6.3.0-2.aix7.1.ppc.rpm
    error: Failed dependencies:
            libgcc = 6.3.0-1 is needed by (installed) libstdc++-6.3.0-1.ppc
            libgcc = 6.3.0-1 is needed by (installed) gcc-6.3.0-1.ppc

     

    e have these installed:

    [root@vctst07 gtk2_bundle_v2.24.30]# rpm -qa | grep libgcc
    libgcc-6.3.0-1.ppc
    [root@vctst07 gtk2_bundle_v2.24.30]# rpm -qa | grep libstdc++
    libstdc++-6.3.0-1.ppc

     

    ----------

    I ended up not trying to install libXrender (per your recommendation) or libgcc (because of  above) and all of the other packages before gtk2 and they installed fine.

    --------

    When I installed gtk2, this was output at the end:

    Non-fatal POSTIN scriptlet failure in rpm package gtk2-2.24.30-2waixX11.ppc
    Could not load program /opt/freeware/bin/gtk-query-immodules-2.0:
    Could not load module /usr/lib/libgdk-x11-2.0.a(libgdk-x11-2.0.so.0).
            Dependent module /usr/lib/libXrender.a(libXrender.so.1) could not be loaded.
            Member libXrender.so.1 is not found in archive
    Could not load module gtk-query-immodules-2.0.
            Dependent module /usr/lib/libgdk-x11-2.0.a(libgdk-x11-2.0.so.0) could not be loaded.
    Could not load module .
    warning: %post(gtk2-2.24.30-2waixX11.ppc) scriptlet failed, exit status 255

    Installed:
      gtk2.ppc 0:2.24.30-2waixX11

    Complete!



  • 8.  Re: no libX11?

    Posted Sat October 27, 2018 03:14 AM

    Originally posted by: sangameshm


    You will need to reset you LIBPATH or change it to something like LIBPATH=/opt/freeware/lib:/usr/lib:/lib

    To verify if gtk2 installation is fine is to run the gtk-demo command.

    For running gtk2 based applications like eclipse above mentioned LIBPATH should be used.

     

    Thanks,

    Sangamesh



  • 9.  Re: no libX11?

    Posted Tue October 30, 2018 11:35 AM

    Originally posted by: bp5591


    Hello,

    Thank you for the reply.

    So, I set my LIBPATH:

    [bpower@vctst07 /] # export LIBPATH=/usr/lib:/opt/freeware/lib:/lib

    [bpower@vctst07 /] # echo $LIBPATH
    /usr/lib:/opt/freeware/lib:/lib

     

    and when I excute the gtk-demo command, get this output:

    [bpower@vctst07 /] # gtk-demo
    Could not load program gtk-demo:
    Could not load module /usr/lib/libgdk-x11-2.0.a(libgdk-x11-2.0.so.0).
            Dependent module /usr/lib/libXrender.a(libXrender.so.1) could not be loaded.
            Member libXrender.so.1 is not found in archive
    Could not load module gtk-demo.
            Dependent module /usr/lib/libgdk-x11-2.0.a(libgdk-x11-2.0.so.0) could not be loaded.
    Could not load module .

    --------

    when I look for libXrender.a:
    [bpower@vctst07 /] # whereis libXrender.a
    libXrender: /usr/lib/libXrender.a


    [bpower@vctst07 /] # ls -al /usr/lib/libXrender.a
    lrwxrwxrwx    1 bin      bin              32 Aug 14 12:47 /usr/lib/libXrender.a -> /usr/lpp/X11/lib/R7/libXrender.a

     

    --------

    I am also trying the install to another host and am getting a file conflict error with libXrender:

    [root@p8devapp01 ppc]# rpm -ivh ./libXrender-0.9.8-1waixX11.aix6.1.ppc.rpm
    Preparing...                          ################################# [100%]
            file /opt/freeware/lib/libXrender.a from install of libXrender-0.9.8-1waixX11.ppc conflicts with file from package xrender-0.9.1-3.ppc

    using "-Uvh" gives the same result.

     

    ************* Update 1:08PM E ***********

    I was able to install libXrender-0.9.8 version.

    [root@p8devapp01 gtk2_bundle_v2.24.30]# rpm -Uvh ./libXrender-0.9.8-2waixX11.aix6.1.ppc.rpm
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:libXrender-0.9.8-2waixX11        ################################# [ 50%]
    Cleaning up / removing...
       2:xrender-0.9.1-3                  ################################# [100%]

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

    We also seem to have an issue with libpng in that there is a newer version of that library installed than what a couple of packages are expecting:

    Error: Package: gdk-pixbuf-2.35.1-2waixX11.ppc (local_AIX_Toolbox)
               Requires: libpng16.a(libpng16.so.16)
               Available: libpng-1.6.21-1.ppc (local_AIX_Toolbox)
                   libpng16.a(libpng16.so.16)
               Available: libpng-1.6.27-2.ppc (local_AIX_Toolbox)
                   libpng16.a(libpng16.so.16)
               Installed: 2:libpng-1.2.32-2.ppc (installed)

    Error: Package: cairo-1.14.6-2waixX11.ppc (local_AIX_Toolbox)
               Requires: libpng16.a(libpng16.so.16)
               Available: libpng-1.6.21-1.ppc (local_AIX_Toolbox)
                   libpng16.a(libpng16.so.16)
               Available: libpng-1.6.27-2.ppc (local_AIX_Toolbox)
                   libpng16.a(libpng16.so.16)
               Installed: 2:libpng-1.2.32-2.ppc (installed)

     



  • 10.  Re: no libX11?

    Posted Wed October 31, 2018 10:25 AM

    Originally posted by: AyappanP


    libpng-1.2.32-2 is not from AIX Toolbox. Please use the one from Toolbox.



  • 11.  Re: no libX11?

    Posted Wed October 31, 2018 11:49 AM

    Originally posted by: bp5591


    Thank you for your reply. 

    When I attempt to install the version from the Toolbox, it fails indicating a "newer" version is installed. How do I work around this issue?



  • 12.  Re: no libX11?

    Posted Fri November 02, 2018 07:42 AM

    Originally posted by: AyappanP


    rpm --oldpackage <libpng....rpm>



  • 13.  Re: no libX11?

    Posted Mon November 05, 2018 12:38 PM

    Originally posted by: bp5591


    Alex and Ayappan, thank you for your replies.

    First, Alex, I am not trying to install rational clearcase and I apologize if anything I wrote seemed to indicate that.

    Second, Ayappan, using the "--oldpackage" option did not work for me. I ended up finding the following syntax which did:

    rpm -U --force ./libpng-1.6.27-2.aix6.1.ppc.rpm

    I also had to satisfy these additional dependencies

    • downgrade install of gcc-6.3.0-1 from /mnt/aix/71/linux_toolbox_20180502/RPMS/ppc-7.1
    • normal install of libstdc++-6.3.0-1.aix7.1.ppc.rpm from the ppc-7.1 RPMS folder from the AIX Toolbox

    After installing those three packages, I was able to install gtk2-2.24.30-2waixX11.ppc and dependencies via yum with the "localinstall" option, using my local repository,  which contained the gtk2 packages I downloaded  last week from the AIX Toolbox.

    Thank you again for your help!

     



  • 14.  Re: no libX11?

    Posted Wed October 31, 2018 11:35 PM


  • 15.  no libX11?

    Posted Fri April 05, 2019 02:11 PM

    Originally posted by: onewhotypescode


    Greetings:

     

    I too have a problem with libX11 and libXext not found.

    AIX LPAR: 7200-01-1731

    rpm.rte: 4.13.0.8

    The end goal is to install Python on all of our AIX Servers. We thought that installing yum not only would give us python but also a way to install / update / upgrade OpenSource apps without needing to worry about someone installing from another source then the AIX Toolbox.

        yum update
        .
        . .
        . . .

        Error: Package: tk-8.6.8-2.ppc (AIX_Toolbox)
                   Requires: libX11.a(shr4.o)
        Error: Package: tk-8.6.8-2.ppc (AIX_Toolbox)
                   Requires: libXext.a(shr.o)

        You could try using --skip-broken to work around the problem
         You could try running: rpm -Va --nofiles --nodigest
     

    Any direction would be greatly appreciated.

     

    -Carl



  • 16.  Re: no libX11?

    Posted Sun April 07, 2019 04:19 AM

    Originally posted by: sanket


     

    Could you please verify if you have proper libX11 and libext libraries in your system.

    These libraries comes from base AIX. 

    # lslpp -f | grep libXext.a
                            /usr/lpp/X11/lib/R7/libXext.a
                            /usr/lib/libXext.a -> /usr/lpp/X11/lib/R7/libXext.a
                            /usr/lpp/X11/lib/R6/libXext.a
    #

    # lslpp -f | grep libX11.a
                            /usr/lpp/X11/lib/R7/libX11.a
                            /usr/lib/libX11.a -> /usr/lpp/X11/lib/R7/libX11.a
                            /usr/lpp/X11/lib/R6/libX11.a
    #

    Please also verify you have not installed any other libX11/libXext from any other source that does not provide this shared object. 

     



  • 17.  Re: no libX11?

    Posted Mon April 08, 2019 09:46 AM

    Originally posted by: onewhotypescode


    Thank you for the reply:

    *** UPDATE: I forgot to run updtvpkg after adding the additional filesets.
    Once  it completed, yum update worked.

    Thank you for your time.

    -Carl

    The filets do not exist on my system. I couldn't find them on our nim server either. So I downloaded fresh DVD ISOs. And I was unable to find them on the ISOs. 

    I feel very dense right now.

    I tried to install X11.base and received this error:

        X11.base.lib 7.2.3.15 *                   # AIXwindows Runtime Libraries
            (supersedes:  7.2.3.0)ls
        X11.base.rte 7.2.3.15 *                   # AIXwindows Runtime Environment
            (supersedes:  7.2.3.0)
        X11.base.smt 7.2.3.15 *                   # AIXwindows Runtime Shared Me...
            (supersedes:  7.2.3.0)

      MISSING REQUISITES:  The following filesets are required by one or more
      of the selected filesets listed above.  They are not currently installed


      and could not be found on the installation media.

        X11.base.lib 7.2.0.0                      # Base Level Fileset
        X11.base.rte 7.2.0.0                      # Base Level Fileset
        X11.base.smt 7.2.0.0                      # Base Level Fileset

      << End of Failure Section >>
     

    I loaded just about anything X11 related. I received a warning that a reboot was required. Rebooted.

    Checked again for the filesets:

    #-> lslpp -f | grep libXext.a
                            /usr/lpp/X11/lib/R7/libXext.a
                            /usr/lib/libXext.a -> /usr/lpp/X11/lib/R7/libXext.a
                            /usr/lpp/X11/lib/R6/libXext.a

    #-> lslpp -f | grep libX11.a
                            /usr/lpp/X11/lib/R7/libX11.a
                            /usr/lib/libX11.a -> /usr/lpp/X11/lib/R7/libX11.a
                            /usr/lpp/X11/lib/R6/libX11.a

    I now try to perform a yum update and I receive the same error message:

    --> Processing Dependency: libX11.a(shr4.o) for package: tk-8.6.8-2.ppc
    --> Processing Dependency: libXext.a(shr.o) for package: tk-8.6.8-2.ppc
    --> Finished Dependency Resolution
    Error: Package: tk-8.6.8-2.ppc (AIX_Toolbox)
               Requires: libX11.a(shr4.o)
    Error: Package: tk-8.6.8-2.ppc (AIX_Toolbox)
               Requires: libXext.a(shr.o)
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest

    -Any thoughts on where I missing the point?

    -Carl