阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

CentOS 6.5 下安装 IBM Installation Manager 1.6.2

210次阅读
没有评论

共计 4653 个字符,预计需要花费 12 分钟才能阅读完成。

因为要安装 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

CentOS 6.5 下安装 IBM Installation Manager 1.6.2

打开 Putty,注意 Putty 的 Enable X11 forwarding 选项要开启,否则 Xming 不能在本地显示图形化安装界面。

CentOS 6.5 下安装 IBM Installation Manager 1.6.2

打开 Server 的 session 连接远程 Server

安装

12 unzip InstalMgr1.6.2_LNX_X86_64_WAS_8.5.5.zip

./install

CentOS 6.5 下安装 IBM Installation Manager 1.6.2

完成

CentOS 6.5 下安装 IBM Installation Manager 1.6.2

下一步就是加 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 安装包。好了。

更多 CentOS 相关信息见 CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14

正文完
星哥玩云-微信公众号
post-qrcode
 0
星锅
版权声明:本站原创文章,由 星锅 于2022-01-20发表,共计4653字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中