然后运行 runInstaller 就是一个单纯的错误: Can 't connect to X11 window server using '127.0.0.1:0.0 ' as the value of the DISPLAY variable.
那一堆异常消息网上一搜一大把,但就是没找到能解决的。。。
搜到个老外的答案是这样的: 2) you 're logged into the machine as one user (like root) but you 're trying to install as another user (like oracle). 10. Xlib: connection to ":0.0" refused by server xeyes Xlib: connection to ":0.0" refused by server Xlib: No protocol specified
查了查资料和手册,以日常工作用的那个用户登录,在shell中运行 [root@linux]# xhost local:oracle non-network local connections being added to access control list 然后oracle身份就可以运行X程序了。
man xhost中有这样一段
A complete name has the syntax ‘‘family:name’’ where the families are as follows:
inet Internet host (IPv4) inet6 Internet host (IPv6) dnet DECnet host nis Secure RPC network name krb Kerberos V5 principal local contains only one name, the empty string si Server Interpreted
错误一:
/tmp/OraInstall2007-12-30_02-16-11PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred..
Exception :java.lang.UnsatisfiedLinkError:/usr/java/j2sdk1.4.2_06/jre/lib/i386/libawt.so: libXt.so.6: cannot open shared object file: No such file or directory 这个错误是也是由于缺少系统安装包造成的,只需安装XFree86-libs包即可,这个安装包可以在系统光盘中找到。
You do not have sufficient permissions to access the inventory '/oracle11g/oraInventory'. Installation cannot continue. Make sure that you have read/write permissions to the inventory directory and restart the installer.: Permission denied
Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2007-08-30_02-16-11PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred.. java.lang.UnsatisfiedLinkError: /tmp/OraInstall2007-08-30_02-16-11PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
对于error while loading shared libraries: libstdc++-libc6.1-1.so.2 我的解决办法是 ln -s libstdc++-libc6.2-2.so.3 libstdc++-libc6.1-1.so.2 对于 Exception :java.lang.UnsatisfiedLinkError:/usr/java/j2sdk1.4.2_06/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory 的解决办法是 apt-get install libXp.so.6 apt-get install libXt.so.6 apt-get install libxtst6
案例三:
在RH Linux7.3上使用JasperReport作为报表引擎时,碰到了一样的问题: Exception :java.lang.UnsatisfiedLinkError:/usr/java/j2sdk1.4.2_06/jre/lib/i386/libawt.so: libXt.so.6: cannot open shared object file: No such file or directory