Centos 5.x 64bit在執行laker出現的錯誤訊息
1 |
error while loading shared libraries: libXp.so.6: cannot open shared object file: No such file or directory |
表示libXp.so.6沒有安裝。解決方式就是安裝所需要的libraries。
libXp.so.6是XFree86的一個library,通常在執行由Java寫的GUI時,會遇到以上的錯訊訊息。
1.安裝libXp-1.0.0-8.1.el5.i386.rpm
2.安裝XFree86:
到 http://ftp.xfree86.org/pub/XFree86/,找到最新版本點進去,現在是4.8.0。
如果對自己系統不熟悉,可以先下載Xinstall.sh。然後運行 sh Xinstall.sh -check 他會告訴你下哪個編譯好的版本適合你的系統。我的是 Linux-amd64-glibc23。
然後點binaries進去,Linux-x86_64-glibc23。 只要下載Xbin.tgz就夠了 http://eric0703.pentaxfans.net/software/Xbin.tgz
1 2 |
tar zxf Xbin.tgz -C /usr/X11R6 vi /etc/ld.so.conf |
加入/usr/X11R6/lib64 修改成下面這2行
1 2 3 |
include ld.so.conf.d/*.conf /usr/X11R6/bin/lib64 ldconfig |