13 February 2012

Installation Manager java.lang.UnsatisfiedLinkError: Could not load SWT library

IBM Installation Manager is more and more widely used to deploy number of IBM products, so it may be useful to know a little about possible problems when running this tool.
My today's accomplishment is that I overcame following issue with installation on a lightweight SuSE 11 distribution (eg. stripped from almost every non-necessary package).
First, when trying to install IM itself I was knocked by:


JVMDUMP010I Snap dump written to /tmp/was/IM/Snap.20120213.121315.11358.0003.trc
libgcc_s.so.1 must be installed for pthread_cancel to work


This one was tackled by adding libgcc43-32bit package to the system. After successful silent installation, I tried to actually run IM to install WAS 7. Shell showed nothing after issuing:

./install or ./IBMIM

It was all I got:

prep2def:/opt/ibm/InstallationManager/eclipse # ./launcher
prep2def:/opt/ibm/InstallationManager/eclipse # cd /tmp/
 

Looking into configuration/datestamp.log files I found this error:

!ENTRY org.eclipse.osgi 4 0 2012-02-13 13:32:15.756
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
        /opt/ibm/InstallationManager/eclipse/configuration/org.eclipse.osgi/bundles/454/1/.cp/libswt-pi-gtk-3659.so (libgthread-2.0.so.0: cannot open shared object file: No such file or directory)
        swt-pi-gtk (Not found in java.library.path)
        /tmp/swtlib-32/libswt-pi-gtk-3659.so (libgthread-2.0.so.0: cannot open shared object file: No such file or directory)
        /tmp/swtlib-32/libswt-pi-gtk.so (/tmp/swtlib-32/liblibswt-pi-gtk.so.so: cannot open shared object file: No such file or directory)


And finally, installing:

DejaVu Truetype Fonts
 
and

libgthread-2_0-0-32bit

helped, and I was able to successfully run Installation Manager. Hope it helps. Good luck.

3 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. To Resolve the issue of invoking WebSphere Installation Manager 1.5.2 on SUSE linux

    Go To http://middlewarehints.blogspot.in/2012/02/installation-manager.html

    Step1: (To get rid of libgcc_s.so.1 must be installed for pthread_cancel to work error)
    a) #yast2 online_update
    b) Now goto [Filter] option and select 'All Patches' (figure1)
    c) scrolldown to sdksp3-glibc and select [Accept] (figure2)
    d) After the process is finished select [finish]

    Step2: (To get rid of java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: error)
    A)
    http://rpmfind.net/linux/rpm2html/search.php?query=libgthread-2_0-0-32bit (To download libgthread-2_0-0-32bit-2.28.0-3.6.1.x86_64.rpm)
    execute
    rpm -ivh libgthread-2_0-0-32bit-2.28.0-3.6.1.x86_64.rpm

    B)
    http://dejavu-fonts.org/wiki/Download (To download dejavu-fonts-ttf-2.34.tar.bz2 )
    execute the following for installing the fonts

    #tar xvjf dejavu-fonts-ttf-2.34.tar.bz2
    #cd dejavu-fonts-ttf-2.34
    #mv *.ttf /usr/share/fonts/truetype
    #SuSEconfig

    ReplyDelete
  3. In case if the above Step1 fails in some cases please try the following step instead
    #yast2 -i tightvnc

    Rest of the steps are same......

    Thanks

    ReplyDelete