因爲要安裝 WAS 8.5.5 (WebSphere Application Server), 所以必須先安裝IM (Installation Manager)。
環境
遠程CentOS 6.5 64bit Server
本地Thinkpad
下載安裝包 InstalMgr1.6.2_LNX_X86_64_WAS_8.5.5.zip 並上傳到服務器
本地Thinkpad上運行Xming
打開Putty, 注意Putty的 Enable X11 forwarding 選項要開啓, 否則Xming不能在本地顯示圖形化安裝界面。
打開Server的session連接遠程Server
安裝
unzip InstalMgr1.6.2_LNX_X86_64_WAS_8.5.5.zip ./install
完成
下一步就是加Repo, 安裝WAS了。
這之前有過一個小插曲, 不願意看可以略過。
第一次安裝的時候, install 命令返回如下錯誤:
[root@dstsmdlab im]# ./install 00:00.55 ERROR [main] org.eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory safeLogged Could not load SWT library. Reasons: /tmp/im/configuration/org.eclipse.osgi/bundles/29/1/.cp/libswt-pi-gtk-4234.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) /root/.swt/lib/linux/x86/libswt-pi-gtk-4234.so (libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory) /root/.swt/lib/linux/x86/libswt-pi-gtk.so (/root/.swt/lib/linux/x86/liblibswt-pi-gtk.so.so: cannot open shared object file: No such file or directory) java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: /tmp/im/configuration/org.eclipse.osgi/bundles/29/1/.cp/libswt-pi-gtk-4234.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) /root/.swt/lib/linux/x86/libswt-pi-gtk-4234.so (libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory) /root/.swt/lib/linux/x86/libswt-pi-gtk.so (/root/.swt/lib/linux/x86/liblibswt-pi-gtk.so.so: cannot open shared object file: No such file or directory) java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: /tmp/im/configuration/org.eclipse.osgi/bundles/29/1/.cp/libswt-pi-gtk-4234.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) /root/.swt/lib/linux/x86/libswt-pi-gtk-4234.so (libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory) /root/.swt/lib/linux/x86/libswt-pi-gtk.so (/root/.swt/lib/linux/x86/liblibswt-pi-gtk.so.so: 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:22) at java.lang.J9VMInternals.initializeImpl(Native Method) ... The displayed failed to initialize. See the log /tmp/im/configuration/1391762016115.log for details.
試着找到so文件並且加入load path裏面
[root@dstsmdlab tmp]# find /usr -name libgtk-x11-2.0* /usr/lib64/libgtk-x11-2.0.so /usr/lib64/libgtk-x11-2.0.so.0.2000.1 /usr/lib64/libgtk-x11-2.0.so.0 [root@dstsmdlab tmp]# LD_LIBRARY_PATH=/usr/lib64 && export LD_LIBRARY_PATH [root@dstsmdlab tmp]# cd im [root@dstsmdlab im]# ./install 00:00.56 ERROR [main] org.eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory safeLogged Could not load SWT library. Reasons: /tmp/im/configuration/org.eclipse.osgi/bundles/29/1/.cp/libswt-pi-gtk-4234.so (libgtk-x11-2.0.so.0: wrong ELF class: ELFCLASS64) swt-pi-gtk (Not found in java.library.path) /root/.swt/lib/linux/x86/libswt-pi-gtk-4234.so (libgtk-x11-2.0.so.0: wrong ELF class: ELFCLASS64) /root/.swt/lib/linux/x86/libswt-pi-gtk.so (/root/.swt/lib/linux/x86/liblibswt-pi-gtk.so.so: cannot open shared object file: No such file or directory) java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: /tmp/im/configuration/org.eclipse.osgi/bundles/29/1/.cp/libswt-pi-gtk-4234.so (libgtk-x11-2.0.so.0: wrong ELF class: ELFCLASS64) swt-pi-gtk (Not found in java.library.path) /root/.swt/lib/linux/x86/libswt-pi-gtk-4234.so (libgtk-x11-2.0.so.0: wrong ELF class: ELFCLASS64) /root/.swt/lib/linux/x86/libswt-pi-gtk.so (/root/.swt/lib/linux/x86/liblibswt-pi-gtk.so.so: cannot open shared object file: No such file or directory) java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: /tmp/im/configuration/org.eclipse.osgi/bundles/29/1/.cp/libswt-pi-gtk-4234.so (libgtk-x11-2.0.so.0: wrong ELF class: ELFCLASS64) swt-pi-gtk (Not found in java.library.path) /root/.swt/lib/linux/x86/libswt-pi-gtk-4234.so (libgtk-x11-2.0.so.0: wrong ELF class: ELFCLASS64) /root/.swt/lib/linux/x86/libswt-pi-gtk.so (/root/.swt/lib/linux/x86/liblibswt-pi-gtk.so.so: 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:22) at java.lang.J9VMInternals.initializeImpl(Native Method) ... The displayed failed to initialize. See the log /tmp/im/configuration/1391762503195.log for details.
還是不能夠啊。 但錯誤明顯變了。 思考着, 思考着... 我突然生氣了。 上面的錯誤暗示着so的位數不對, 我的server是64位的, 它要32位的so... 恍然大悟... 你猜對了, 我換了個64位的IM安裝包。 好了。