分类目录归档:Linux相关

test code highlighter

<pre lang="php"> <div id="foo"> <?php   function foo() {     echo "Hello World!\\n";   } ?> </div> </pre>

public class Hello {
  public static void main(String[] args) {
    System.out.println("Hello World!");
  }
}
public class Hello {
  public static void main(String[] args) {
    System.out.println("Hello World!");
  }
}
class Example
  def example(arg1)
    return "Hello: " + arg1.to_s
  end
end

PRVF-5436 : The NTP daemon running on one or more nodes lacks the slewing option “-x” –

During ClusterWare installation , show following errors:

Network Time Protocol (NTP) – This task verifies cluster time synchronization on clusters that use Network Time Protocol (NTP). Error:

PRVF-5436 : The NTP daemon running on one or more nodes lacks the slewing option “-x” – Cause: NTP daemon on one or more nodes lacked slewing option. – Action: Shut down and restart the NTP daemon after setting the slewing option as follows: For Linux, edit /etc/sysconfig/ntpd and add -x to the command line option. For SUSE Linux, edit /etc/sysconfig/ntp and add -x to the OPTIONS variable. For AIX, edit /etc/rc.tcpip and add -x to the command line option. For HP-UX, edit /etc/rc.config.d/netdaemons and add -x to the command line option. For Solaris, edit /etc/inet/ntp.conf and add ‘slewalways yes’ and ‘disable pll’ in ntp.conf. 继续阅读

java.lang.UnsatisfiedLinkError: libawt.so: libXt.so.6 Missing

 

When installing Oracle Application Server 10.1.2.0.2 32bit on a 64bit Exdata Linux Machine , hit following errors:

Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2011-05-16_03-04-14AM/jre/1.4.2/lib/i386/libawt.so: libXt.so.6: cannot open shared object file: No such file or directory occurred..
java.lang.UnsatisfiedLinkError: /tmp/OraInstall2011-05-16_03-04-14AM/jre/1.4.2/lib/i386/libawt.so: libXt.so.6: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1477)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:834)

……

[usr01@machine01 i386]$ ldd libawt.so
ldd: warning: you do not have execution permission for `./libawt.so’
        linux-gate.so.1 =>  (0xffffe000)
        libmlib_image.so => not found
        libjvm.so => not found
        libXp.so.6 => /usr/lib/libXp.so.6 (0xf7cbc000)
        libXt.so.6 => not found
        libXext.so.6 => not found
        libXtst.so.6 => /usr/lib/libXtst.so.6 (0xf7cb5000)
        libX11.so.6 => not found
        libm.so.6 => /lib/libm.so.6 (0xf7c8e000)
        libdl.so.2 => /lib/libdl.so.2 (0xf7c8a000)
        libjava.so => not found
        libc.so.6 => /lib/libc.so.6 (0xf7b43000)
        /lib/ld-linux.so.2 (0x0094f000)
        libX11.so.6 => not found
        libXext.so.6 => not found
        libXau.so.6 => not found
        libX11.so.6 => not found
        libXext.so.6 => not found

check google and metalink , this error is caused by a 32bit library miss . (iAAS10.1.2.0.2 only has a 32bit version , when installing in a 64bit machine , just execute linux32 bash before runInstaller is ok)

solution:
install missing 32bit lib in 64bit machine.

rpm -ivh libXau-1.0.1-3.1.i386.rpm
rpm -ivh libXdmcp-1.0.1-2.1.i386.rpm
rpm -ivh libX11-1.0.3-11.el5.i386.rpm
rpm -ivh libSM-1.0.1-3.1.i386.rpm
rpm -ivh libICE-1.0.1-2.1.i386.rpm
rpm -ivh libSM-1.0.1-3.1.i386.rpm
rpm -ivh libXt-1.0.2-3.2.el5.i386.rpm
rpm -ivh libXext-1.0.1-2.1.i386.rpm

ref:
NOTE:726451.1 – Oracle Client Install issue on Linux Red Hat 5, gives "libXp.so.6 is missing" error message
JAVA.LANG.UNSATISFIEDLINKERROR Error Running Net Configuration Assistant [ID 1066299.1]