Could not load SWT library error - ubuntu-14.04

What I want to achieve:
1) To install IBM Installation Manager in Ubuntu Server 14.04 LTS (HVM)
What I've done:
1) Installed "agent.installer.linux.gtk.x86_64_1.8.4000.20151125_0201.zip"
2) Run ./userinst command
Problems:
ubuntu#ip-172-31-20-133:~/wkMacDownloads$ ./userinst
00:00.42 ERROR [main] com.ibm.cic.agent.internal.ui.AgentUI
reportStatus
Could not load SWT library. Reasons:
/home/ubuntu/wkMacDownloads/configuration/org.eclipse.osgi/bundles/784/1/.cp/libswt-pi-gtk-4239.so
(libgtk-x11-2.0.so.0: cannot open shared object file: No such file or
directory)
swt-pi-gtk (Not found in java.library.path)
/home/ubuntu/.swt/lib/linux/x86_64/libswt-pi-gtk-4239.so
(/home/ubuntu/.swt/lib/linux/x86_64/liblibswt-pi-gtk-4239.so.so:
cannot open shared object file: No such file or directory)
/home/ubuntu/.swt/lib/linux/x86_64/libswt-pi-gtk.so
(/home/ubuntu/.swt/lib/linux/x86_64/liblibswt-pi-gtk.so.so: cannot
open shared object file: No such file or directory)
/home/ubuntu/.swt/lib/linux/x86_64/libswt-pi-gtk-4239.so
(libgtk-x11-2.0.so.0: cannot open shared object file: No such file or
directory)
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
/home/ubuntu/wkMacDownloads/configuration/org.eclipse.osgi/bundles/784/1/.cp/libswt-pi-gtk-4239.so
(libgtk-x11-2.0.so.0: cannot open shared object file: No such file or
directory)
swt-pi-gtk (Not found in java.library.path)
/home/ubuntu/.swt/lib/linux/x86_64/libswt-pi-gtk-4239.so
(/home/ubuntu/.swt/lib/linux/x86_64/liblibswt-pi-gtk-4239.so.so:
cannot open shared object file: No such file or directory)
/home/ubuntu/.swt/lib/linux/x86_64/libswt-pi-gtk.so
(/home/ubuntu/.swt/lib/linux/x86_64/liblibswt-pi-gtk.so.so: cannot
open shared object file: No such file or directory)
/home/ubuntu/.swt/lib/linux/x86_64/libswt-pi-gtk-4239.so
(libgtk-x11-2.0.so.0: cannot open shared object file: No such file or
directory)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:331)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:240)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:23)
at java.lang.J9VMInternals.initializeImpl(Native Method)
...
The displayed failed to initialize. See the log
Question:
Is it possible to use IBM Installation Manager GUI mode in Ubuntu Server? Or is there a command line alternative?

Use ./install instead.
To resolve your issue,
make sure the gtk libraries are installed to support the graphical user interface (GUI).refer

You could try to install IM silently.
You can run the command ./userinstc -log log_file -acceptLicense

Related

libmpi_cxx.so.40: cannot open shared object file

Upon running a command that requires mpi, it fails with
error while loading shared libraries: libmpi_cxx.so.40: cannot open shared object file: No such file or directory
I'm running it in a conda environment pytorch_p36.
However, I checked that libmpi_cxx.so.40 is present in that same conda environment.
Command
locate libmpi_cxx
Output
/home/ubuntu/anaconda3/envs/pytorch_p36/lib/libmpi_cxx.so
/home/ubuntu/anaconda3/envs/pytorch_p36/lib/libmpi_cxx.so.40
/home/ubuntu/anaconda3/envs/pytorch_p36/lib/libmpi_cxx.so.40.20.1
Is there some issue with PATH or LD_LIBRARY_PATH?
If so what? How can I make sure anaconda environment libs are picked up by the 2 environment vars?
Try this:
LD_LIBRARY_PATH=$CONDA_PREFIX/lib [[rest of your command, e.g. python foo.py]]

error opening executable file on ssh - error while loading shared libraries

I am trying to run tor on Ubuntu with terminal (using SSH). Whenever I am trying to open the executable file I am getting this error:
./tor: error while loading shared libraries: libevent-2.1.so.7:
cannot open shared object file: No such file or directory
I have tried to re-install the packages and nothing going well, also tried to link the library and that also did nothing. Whenever I am trying to create another executable file it runs okay, the problem is only with this tor file.
Further details:
$ ldd ./tor | grep libevent
libevent-2.1.so.7 => not found
$ ls -l /usr/lib/libevent*
No such file or directory
Can anyone guide me on how to solve it? Any help would be really appreciated.

Load environmental modules with SSH into server

I want to load a module on a server using SSH
ssh server.university.com "module load moduleX"
but I'm getting the following error:
/usr/local/Modules/default/bin/modulecmd: error while loading shared` libraries: libtclx8.4.so: cannot open shared object file: No such file or directory
I tried the solutions of this thread:
How to use environment modules in a ssh command line?
That is,
ssh server.university.com "bash -lc 'module load moduleX'"
bash: module: command not found
and
ssh server.university.com "source /etc/profile; module load moduleX"
/usr/local/Modules/default/bin/modulecmd: error while loading shared libraries: libtclx8.4.so: cannot open shared object file: No such file or directory
I can load the module when I've already signed into the server. The reason for why I want to load it in the same command is that I in a pipeline want to do some estimations on the server, the rest on my computer.
Can someone please find a solution?
Here is the way I solved it:
It seems like the case I had a .bash_profile file prohibited the .profile file to be read. Took the .bash_profile file away and now it is working. I also added the following lines to the start of the .bashrc file which also was a part of the solution:
MODULE_VERSION=default
export MODULE_VERSION
LD_LIBRARY_PATH=/usr/local/pkg/tcltk/8.6.0/lib/:/usr/local/pkg/tcltk/8.6.0/lib/tclx8.4/
export LD_LIBRARY_PATH

Using Webdriver with Chrome -- missing Shared Libraries

I am trying to run webdriver, but I keep getting the following error:
[ec2-user#ip-172-30-0-41 ~]$ sudo ./chromedriver
./chromedriver: error while loading shared libraries:
libgconf-2.so.4: cannot open shared object file: No such file or directory
Is there a way to yum this missing dependencies? Or what seems to be the issue here? This is using the Amazon Linux AMI 2014.09.1 (HVM) Distribution.
chrome driver can't run by itself. You can run it via code only

Installation Pymol error

I am trying to install pymol on Centos 6.5. After running setup.sh it looks everything is fine. But when I launch pymol I obtain this error:
/opt/pymol/pymol.exe: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory
Any help,please?
I am quite new in linux as you may notice...
Follow te instrucctions here and also check that you have installed libGLU, on Ubuntu this library is called libglu1-mesa.

Resources