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

Issue installing GTK

  • 1.  Issue installing GTK

    Posted Mon May 07, 2018 05:29 PM

    Originally posted by: Ted.Todorov


    Hello,

    I have a customer who is trying to install GTK and is having the following issues:

    During required package install there are many conflicts with other required packages that result in the rpm install failing.  For instance when trying to install the required package libtiff-3.8.2-1 the following error is displayed.  The libjpeg-6b-6.ppc is also listed as required.  This happens on several of the required packages.  We don't want to use the  replacefiles option due concerns of stability.         
    file /opt/freeware/64 from install of libtiff-3.8.2-1.ppc conflicts with file from package libjpeg-6b-6.ppc                                 
    file /opt/freeware/64/lib from install of libtiff-3.8.2-1.ppc conflicts with file from package libjpeg-6b-6.ppc    
                                 
                                                                           

    The customer contact is Mike Myers, Work phone  719-327-6095, email address: Michael.Myers@tsa.dhs.gov



  • 2.  Re: Issue installing GTK

    Posted Tue May 08, 2018 02:17 PM

    Originally posted by: sangameshm


    Please try the latest upload libjpeg-6b-7 which should solve this issue.

     

    Thanks,

    Sangamesh



  • 3.  Re: Issue installing GTK

    Posted Wed May 09, 2018 10:35 AM

    Originally posted by: MikeMyers


    The version on the IBM toolkit download site (https://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html#L) is libjpeg-6b-6.aix5.1.ppc. Am I missing the link to the new version?



  • 4.  Re: Issue installing GTK

    Posted Wed May 09, 2018 11:50 AM

    Originally posted by: AyappanP


    Use the ftp link --> ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/libjpeg/

    Updating the HTML page involve some process due to which it takes few days.



  • 5.  Re: Issue installing GTK

    Posted Thu May 10, 2018 11:38 AM

    Originally posted by: MikeMyers


    Thanks - that worked.  I've run into another problem that seems to be a cyclical reference trying to install gcc 6.3.0-1.  The install fails indicating gcc-cpp-6.3.0-1.ppc is needed.  When I try to install gcc-cpp-6.3.0-1.ppc I get gcc-6.3.0-1.ppc is needed.

     

    gcc-cpp = 6.3.0-1 is needed by gcc-6.3.0-1.ppc


    gcc = 6.3.0-1 is needed by gcc-cpp-6.3.0-1.ppc



  • 6.  Re: Issue installing GTK

    Posted Fri May 11, 2018 12:38 PM

    Originally posted by: AyappanP


    You can try to use yum to resolve these kind of issues.

    If you want to overcome this manually , you can put both the rpms in the single rpm installation command like below.

    rpm -ivh gcc-6.3.0-1..rpm  gcc-cpp-6.3.0-1..rpm

     



  • 7.  Re: Issue installing GTK

    Posted Tue May 15, 2018 10:12 AM

    Originally posted by: MikeMyers


    rpm -ivh (both) worked - thanks!  My final issue is with package xft-2.1.6-5.aix5.1.ppc.  When I try to install I'm getting 'bad magic'.  I've re-downloaded so the file is not corrupt.  It shows as a required package on AIX for the Netcool install.

     

    Thanks for the help.



  • 8.  Re: Issue installing GTK

    Posted Tue May 15, 2018 10:41 AM

    Originally posted by: AyappanP


    Can you paste the exact error you are getting ? 

    The cksum in my case is 

    # /usr/bin/cksum xft-2.1.6-5.aix5.1.ppc.rpm
    3429223428 120078 xft-2.1.6-5.aix5.1.ppc.rpm

     



  • 9.  Re: Issue installing GTK

    Posted Tue May 15, 2018 12:46 PM

    Originally posted by: MikeMyers


    The error is :

    error: unpacking of archive failed: cpio: Bad magic
    error: xft-2.1.6-5.ppc: install failed

     

    cksum xft-2.1.6-5.aix5.1.ppc.rpm
    3429223428 120078 xft-2.1.6-5.aix5.1.ppc.rpm
     

     



  • 10.  Re: Issue installing GTK

    Posted Wed May 16, 2018 09:14 AM

    Originally posted by: sangameshm


    Use aix6.1 rpm package xft-2.1.6-5.aix6.1.ppc.rpm where this error is corrected.

    Looks like entry in toolbox site isn't updated correctly with 6.1 image.

     

    Thanks,

    Sangamesh

     



  • 11.  Re: Issue installing GTK

    Posted Wed May 16, 2018 10:14 AM

    Originally posted by: MikeMyers


    Can you point me to the xft-2.1.6-5.aix61 rpm?  I see it built for 5.1 but not 6.1.

     

    Thanks.



  • 12.  Re: Issue installing GTK

    Posted Wed May 16, 2018 10:21 AM

    Originally posted by: AyappanP


    You can get it from here --> ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/xft/xft-2.1.6-5.aix6.1.ppc.rpm

    It also seems like yum is still getting the xft aix5.1 rpm and not the aix6.1 rpm . This is something which we have to fix.



  • 13.  Re: Issue installing GTK

    Posted Thu May 17, 2018 08:58 AM

    Originally posted by: MikeMyers


    Thanks that installed fine but presented another issue. Pango is also req'd by Netcool and a dependency of Pango is libXft.  After installing xft-2.1.6-5.aix6.1.ppc.rpm and then trying to install libXft-2.3.2-3waixX11.aix6.1.ppc.rpm I get :

    file /opt/freeware/lib/libXft.a from install of libXft-2.3.2-3waixX11.ppc conflicts with file from package xft-2.1.6-5.ppc
    file /usr/lib/libXft.a from install of libXft-2.3.2-3waixX11.ppc conflicts with file from package xft-2.1.6-5.ppc



  • 14.  Re: Issue installing GTK

    Posted Thu May 17, 2018 11:47 AM

    Originally posted by: AyappanP


    Seems like both are same package (only the name and version are different). I think you can go with libXft package. You can uninstall xft and install libXft.



  • 15.  Re: Issue installing GTK

    Posted Wed May 23, 2018 09:45 AM
      |   view attached

    Originally posted by: emo3


    We have installed all the components and still getting; see attached.

    How do we fix this to get installation manager working in gui mode.

    Attachment(s)

    txt
    swt-error.txt   3 KB 1 version


  • 16.  Re: Issue installing GTK

    Posted Thu May 24, 2018 01:48 AM

    Originally posted by: Nitish Mishra


    This is a known incompatible LIBPATH issue with eclipse/gtk/IM. You will see similar libXrender issue while launching eclipse as well. We have posted this on eclipse forum as eclipse is overwriting the inbuilt LIBPATH of gtk.

    You can see this post here if you want to know more about the issue: https://www.eclipse.org/forums/index.php/m/1784819/#msg_1784819

    This issue is still open and we need to get in touch with eclipse community to fix this.

    Meanwhile,  I am providing you a work around below. It will work (I am assuming all the installation went smooth for you):

     

    *** Before launching IM/eclipse set the LIBPATH by running this command:   # export LIBPATH=/opt/freeware/lib:/usr/lib

    Please do tell us if it worked for you.

     

    Thanks and Regards.

    Nitish



  • 17.  Re: Issue installing GTK

    Posted Thu May 24, 2018 10:54 AM

    Originally posted by: emo3


    Yes that worked!



  • 18.  Re: Issue installing GTK

    Posted Thu May 24, 2018 04:26 PM

    Originally posted by: PierreBERNHARD


    Hello,

    I have a similar issue when I try to launch the configmgr tool on a AIX 7.2-TL-SP1 VM.

    I installed the following RPMs and also set the LIBPATH to /opt/freeware/lib:/usr/lib.

    The configmgr binary stops and writes the message below to the log file /tech/ECMClient/logs/nexus_configmgr_workspace/.metadata/.log

    What's wrong in my configuration ?

    Thanks in advance

    Pierre

    atk-2.20.0-2.ppc
    bzip2-1.0.6-2.ppc
    cairo-1.14.6-1wofX11.ppc
    db-4.8.24-3.ppc
    expat-2.2.0-1.ppc
    expect-5.42.1-3.ppc
    fontconfig-2.11.95-2.ppc
    freetype2-2.6.3-1.ppc
    gdbm-1.8.3-5.ppc
    gdk-pixbuf-2.35.1-2waixX11.ppc
    gettext-0.19.7-1.ppc
    glib2-2.48.0-1.ppc
    gmp-5.1.3-2.ppc
    gtk2-2.24.30-1wofX11.ppc
    harfbuzz-1.2.7-1.ppc
    libX11-1.6.3-1.ppc
    libXau-1.0.8-1.ppc
    libXdmcp-1.1.2-1.ppc
    libXext-1.3.1-1.ppc
    libXft-2.3.2-2wofX11.ppc
    libXrender-0.9.9-1.ppc
    libffi-3.2.1-1.ppc
    libgcc-6.3.0-1.ppc
    libjpeg-9b-2.ppc
    libpng-1.6.27-2.ppc
    libstdc++-6.3.0-1.ppc
    libtiff-3.8.2-1.ppc
    libxcb-1.12-1wofX11.ppc
    libxml2-2.9.5-1.ppc
    libyaml-0.1.4-2.ppc
    openldap-2.4.40-2.ppc
    pango-1.40.1-1wofX11.ppc
    pcre-8.33-1.ppc
    pixman-0.34.0-1.ppc
    pysqlite-1.1.7-2.ppc
    readline-6.1-2.ppc
    rsync-3.1.2-2.ppc
    shared-mime-info-1.6-1.ppc
    sqlite-3.15.2-1.ppc
    tcl-8.4.7-3.ppc
    tk-8.4.7-3.ppc
    unzip-6.0-3.ppc
    xcb-proto-1.12-1.ppc
    xcursor-1.1.7-3.ppc
    xz-libs-5.2.2-1.ppc
    zlib-1.2.11-1.ppc

     

    !ENTRY org.eclipse.osgi 4 0 2018-05-24 22:17:22.688
    !MESSAGE Application error
    !STACK 1
    java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
            /tech/ECMClient/configure/configuration/org.eclipse.osgi/bundles/137/1/.cp/libswt-pi-gtk-3740.a (Could not load module /tech/ECM                                Client/configure/configuration/org.eclipse.osgi/bundles/137/1/.cp/libswt-pi-gtk-3740.a.
            Dependent module /opt/freeware/lib/libX11.a(shr4.o) could not be loaded.
            Member shr4.o is not found in archive
    Could not load module /tech/ECMClient/configure/configuration/org.eclipse.osgi/bundles/137/1/.cp/libswt-pi-gtk-3740.a.
            Dependent module /tech/ECMClient/configure/configuration/org.eclipse.osgi/bundles/137/1/.cp/libswt-pi-gtk-3740.a could not be lo                                aded.)
            swt-pi-gtk (Not found in java.library.path)
            /home/root/.swt/lib/aix/ppc/libswt-pi-gtk-3740.a (Could not load module /home/root/.swt/lib/aix/ppc/libswt-pi-gtk-3740.a.
            Dependent module /opt/freeware/lib/libX11.a(shr4.o) could not be loaded.
            Member shr4.o is not found in archive
    Could not load module /home/root/.swt/lib/aix/ppc/libswt-pi-gtk-3740.a.
            Dependent module /home/root/.swt/lib/aix/ppc/libswt-pi-gtk-3740.a could not be loaded.)
            /home/root/.swt/lib/aix/ppc/libswt-pi-gtk.a (Could not load module /home/root/.swt/lib/aix/ppc/liblibswt-pi-gtk.a.so.
    System error: No such file or directory)

            at org.eclipse.swt.internal.Library.loadLibrary(Library.java:285)
            at org.eclipse.swt.internal.Library.loadLibrary(Library.java:194)
            at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:22)
            at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
            at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
            at org.eclipse.swt.widgets.Display.<clinit>(Display.java:132)
            at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:695)
            at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
            at com.ibm.ecm.configmgr.app.nexus.rcp.Application.start(Application.java:84)
            at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
            at java.lang.reflect.Method.invoke(Method.java:508)
            at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
            at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
            at org.eclipse.equinox.launcher.Main.run(Main.java:1410)



  • 19.  Re: Issue installing GTK

    Posted Fri May 25, 2018 01:58 AM

    Originally posted by: Nitish Mishra


    Hi Pierre !

    It seems that you have installed most of the packages (including gtk/dependencies) from bullfreeware site or from any other repository. Right now the libraries from different repositories are NOT compatible and we are working on it.

    You need to re install all the packages from AIX toolbox ( ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ ) and then try again. It may be tough for you to reinstall everything but this is easier way out in future as well. You can also run yum.sh script from ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/yum.sh to configure yum in your system and can easily manage packages from our toolbox repository.

     

    Coming to your problem, from your  installed packages the main culprit is libX11 package which we are NOT providing separately from toolbox and you would have installed it from bullfreeware most probably. This package comes from AIX base file set (/usr/lib/libX11.a) also. The required shr4.o comes from base file only, as shown below:

    ar -X32_64 -tv /usr/lib/libX11.a
    rwxr-x---   300/300   2154442 Jun 26 12:21 2014 shr4.o
    rwxr-x---   300/300   2349062 Jun 26 12:21 2014 shr_64.o
    rw-r--r--     2/2     275568 Jun 30 11:13 2007 shr.o

    and your /opt/freeware/lib/libX11.a does NOT have this object file. Now, you wont be able to remove it also because libXrender-0.9.9 installed in your system is dependent on installed libX11-1.6.3 and so removing anything will break your gtk package itself. Now you can understand how complicated these things are. So, better reinstall gtk/dependencies package (all packages preferably ) from toolbox itself (either manually or after setting up yum). This will make your life easier in future as well.

     

    Thanks and Regards



  • 20.  Re: Issue installing GTK

    Posted Fri June 01, 2018 05:29 AM

    Originally posted by: nkolunov


    Hello Nitish, I am now working with the customer as well. Some notes:

    Only the following RPM are BULL and do not have any equivalence on the IBM ftp site. The URL on the IBM site are empty.

    ftp://public.dhe.ibm.com/aix/f
    reeSoftware/aixtoolbox/RPMS/pp c/libX11/

    ftp://public.dhe.ibm.com/aix/f reeSoftware/aixtoolbox/RPMS/pp c/libXext/
     

    When trying to remove them, (libjpeg BULL rpm) I see a dependancy with gdk-pixbugf and gtk2

     

    # yum remove libjpeg-9b-2.ppc

    Setting up Remove Process

    Resolving Dependencies

    There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.

    The program yum-complete-transaction is found in the yum-utils package.

    --> Running transaction check

    ---> Package libjpeg.ppc 0:9b-2 will be erased

    --> Processing Dependency: libjpeg.a(libjpeg.so.62) for package: gdk-pixbuf-2.35.1-2waixX11.ppc

    --> Processing Dependency: libjpeg >= 6b-6 for package: gtk2-2.24.30-1wofX11.ppc

    --> Processing Dependency: libjpeg for package: gdk-pixbuf-2.35.1-2waixX11.ppc

    --> Running transaction check

    ---> Package gdk-pixbuf.ppc 0:2.35.1-2waixX11 will be erased

    ---> Package gtk2.ppc 0:2.24.30-1wofX11 will be erased

    --> Finished Dependency Resolution

    Dependencies Resolved

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

    Package Arch Version Repository Size

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

    Removing:

    libjpeg ppc 9b-2 @/libjpeg-9b-2.aix6.1.ppc 10 M

    Removing for dependencies:

    gdk-pixbuf ppc 2.35.1-2waixX11 @/gdk-pixbuf-2.35.1-2waixX11.a ix6.1.ppc 10 M

    gtk2 ppc 2.24.30-1wofX11 @AIX_Toolbox 163 M

    Transaction Summary

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

    Remove 3 Packages

    Installed size: 183 M

    The library /usr/lib/libX11.a is part from the X11.base.lib AIX fileset ..

    # rpm -qf /usr/lib/libX11.a

    file /usr/lib/libX11.a is not owned by any package

    <nxumlib001.dom101.mapres:1> (root)/var/log

    # lslpp -w /usr/lib/libX11.a

    File Fileset Type

    ------------------------------ ------------------------------ ----------------

    /usr/lib/libX11.a X11.base.lib Symlink

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

     

    Is there an alternative ftp for the missing libs?

     

    Thank you.



  • 21.  Re: Issue installing GTK

    Posted Sat June 02, 2018 02:06 AM

    Originally posted by: Nitish Mishra


    Hi @nkolunov 7b95859c-ada0-4d63-ab9b-40a78699c5a9

    If you are installing all the gtk and its dependency packages from AIX toolbox, you don't need BULL's libX11 and libXext packages. These packages are available on BULL's site only for the dependency for gtk as their gtk seems to be dependent on official/external libX11 and libXext. One thing I would like to come into your knowledge is that these two gtk packages (please see at suffix):

    gtk2 ppc 2.24.30-1wofX11 -------> Built with official libX11, for which libX11 is necessary.

    gtk2 ppc 2.24.30-1waixX11--------> Built with X11 which comes from AIX base file. We are providing only this one.

    Another thing is we are not providing libjpeg-9b-2 version, the latest we have is libjpeg-6b-7. The version you have is from BULL's, so, please remove it and install packages from AIX toolbox only. It seems that there is package mix in your system from different repositories.

    Another thing is, that your package gtk2 ppc 2.24.30-1wofX11 is also from BULL's freeware. We don't provide "wofX11" suffix gtk/dependencies. Please remove this version of gtk and install gtk from toolbox site. For toolbox gtk you wont be needing libX11 and libXext packages. Not only gtk, but any gtk dependency package which have suffix "wofX11", is from BULL and you need to remove it. GTK from toolbox: ftp://ausgsa.ibm.com/projects/a/aixtoolbox/toolbox/aix/freeSoftware/aixtoolbox/RPMS/ppc/gtk2/

    It seems that not only libX11 and libXext but you have many packages installed from BULL's site.

     

    Thanks.