Rdel5 install weblogic815. Intermediate execution. /quickstart. sh:/usr/bea/jdk142_08/lib/tools. jar:/usr/bea/weblogic81/common/lib/quickstart. jarExceptioninthread "main" java. lang. unsatisfiedLinkError:/usr/bea/jdk142_08
Rdel5 install weblogic815. Execute./quickstart. sh in the middle, and an exception occurs:
/Usr/bea/jdk142_08/lib/tools. jar:/usr/bea/weblogic81/common/lib/quickstart. jar
Exception in thread "main" java. lang. unsatisfiedLinkError:/usr/bea/jdk142_08/jre/lib/i386/libawt. so: libXp. so.6: cannot open shared object file: No such file or directory
The reason is that the dynamic link library is missing. It is said that the graphic dynamic link library supporting printing is missing.
First, install libXp. so as the root user. The steps are as follows:
1) download. so. Google: Find libXp. so.6 and install it.
2)
Put this file in a temporary directory such as/usr/tmp, and then run rpm (Red Hat Package Manager) for installation.
# Rpm-ivh./xorg-x11-deprecated-libs-6.9.0-1.112.16.14asp.i386.rpm
Warning:./xorg-x11-deprecated-libs-6.9.0-1.112.16.14asp.i386.rpm: Header V3 DSA signature: NOKEY, key ID 9b3c94f4
Preparing... ######################################## ### [100%]
Package xorg-x11-deprecated-libs-6.9.0-1.112.16.14asp is already installed
3) check whether this so is installed, use rmp to query all options <-q (uery) a (ll)>, and then capture the lines containing the dep characters:
Rpm-qa | grep dep
Xorg-x11-deprecated-libs-6.9.0-1.112.16.14asp
4) Add a conf file so that the system can load the package just installed (installed in the/usr/X11R6/lib directory ).
Create a xorg-x11-deprecated-libs.conf file in the etc/ld. so. conf. d directory that contains a line of text "/usr/X11R6/lib"
Save and then run/sbin/ldconfig. The details are as follows:
[Root @ xxx] # cd etc/ld. so. conf. d/
[Root @ xxx] # xorg-x11-deprecated-libs.conf vi
: I
/Usr/X11R6/lib
: W
: Q
# Cat xorg-x11-deprecated-libs.conf [root @ xxx] #
/Usr/X11R6/lib
[Root @ xxx] #/sbin/ldconfig
Run./quickstart. sh again and you will see the same GUI as in windows.
Another common sense:
About/etc/ld. so. conf:
This file records the path of the dynamic link library used during compilation.
By default, the compiler only uses the library files in the/lib and/usr/lib directories.
It is wise to add the paths that may store library files to/etc/ld. so. conf.
The addition method is extremely simple. It is okay to directly write the absolute path of the library file into it, one line at a time. For example:
/Usr/X11R6/lib
/Usr/local/lib
/Opt/lib
What is ldconfig?
It is a program, usually located under/sbin for root users. The specific functions and usage can be found in man ldconfig.
To put it simply, it caches the library files in the paths listed in/etc/ld. so. conf to/etc/ld. so. cache for use.
Therefore, after installing some library files (such as just installed glib), or modifying ld. so. conf to add a new library path, run/sbin/ldconfig
Make all the library files cached in ld. so. cache. If it is not done, it will not be used even if the library file is clearly under/usr/lib.
An error is reported during the compilation process. If the xxx library is missing, you can check it and find that it is clearly there. You just want to smash the machine.
Remember to run ldconfig after modifying the library file, and run it in any directory.