1.先下載tuxedo軟體tuxedo81_linux.bin 這個軟體起初在CentOS 5.5上安裝。點擊這裡進入下載需要註冊。
一. 以root身份建立tuxedo使用者,並以tuxedo使用者登陸,此使用者將做為以後tuxedo管理員,使用者預設目錄為/home/tuxedo;
二. 建立/opt/tuxedo目錄,用來安裝tuxedo,記得要chown tuxedo.tuxedo tuxedo,把tuxedo目錄的屬主和組都改成tuxedo;
三. 用ssh把安裝檔案(tuxedo81_linux.bin)和使用者許可認證檔案(lic.txt)傳到/opt/tuxedo目錄中;
四. 執行sh tuxedo81_linux.bin
問題:
出錯1--------------------------------------------------
[tuxedo@TUXSVR4 tuxedo]$ sh tuxedo81_linux.bin
Preparing to install...
The included VM could not be uncompressed. Please try to download
the installer again and make sure that you download using 'binary'
mode. Please do not attempt to install this currently downloaded copy.
解決辦法:
指令碼使用uncompress命令,但是linux下沒有,使用cp /bin/gunzip /bin/uncompress
出錯2--------------------------------------------------
Preparing to install...
/tmp/install.dir.17644/Linux/resource/jre/bin/i386/native_threads/java: error wh
ile loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared objec
t file: No such file or directory
解決:
從別處拷來libstdc++-libc6.1-1.so.2 放到usr/lib裡或者安裝libstdc++-2.95.3-0.20000503.1.i386.rpm 軟體包
rpm -ivh libstdc++-2.95.3-0.20000503.1.i386.rpm --force進去
注:本人系統為centOs 5.4 /usr/lib/目錄下 為libstdc++-libc6.2-2.so.3 版本 . 重新命名為libstdc++-libc6.1-1.so.2
出錯3
Preparing to install...
Error occurred during initialization of VM
Unable to load native library: /tmp/install.dir.14985/Linux/resource/jre/jre/lib/i386/libjava.so: symbol __libc_wait,
version GLIBC_2.0 not defined in file libc.so.6 with link time reference
解決:
建立libcwait.c內容如下:
/* Compile with
gcc -shared -o libcwait.so libcwait.c -fpic -O
and use it by adding
LD_PRELOAD=/path/to/libcwait.so
in the environment of the application with the bug.
*/
#include <errno.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/wait.h>
pid_t
__libc_wait (int *status)
{
int res;
asm volatile ("pushl %%ebx\n\t"
"movl %2, %%ebx\n\t"
"movl %1, %%eax\n\t"
"int $0x80\n\t"
"popl %%ebx"
: "=a" (res)
: "i" (__NR_wait4), "0" (WAIT_ANY), "c" (status), "d" (0),
"S" (0));
return res;
}
把它編譯成libcwait.so
gcc -shared -fpic -o libcwait.so libcwait.c
然後:
export LD_PRELOAD=/opt/tuxedo/libcwait.so
chmod a+x /opt/tuxedo/tuxedo81_linux.bin
LD_PRELOAD=/opt/tuxedo/libcwait.so /opt/tuxedo/tuxedo81_linux.bin
出錯4:
Invocation of this Java Application has caused an InvocationTargetException. Thi
s application will now exit. (LAX)
Stack Trace:
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
ronment.java:58)
at java.awt.Window.<init>(Window.java:188)
at java.awt.Frame.<init>(Frame.java:315)
at java.awt.Frame.<init>(Frame.java:262)
at com.zerog.ia.installer.Main.b([DashoPro-V1.2-120198])
at com.zerog.ia.installer.Main.main([DashoPro-V1.2-120198])
at java.lang.reflect.Method.invoke(Native Method)
at com.zerog.lax.LAX.launch([DashoPro-V1.2-120198])
at com.zerog.lax.LAX.main([DashoPro-V1.2-120198])
GUI-
解決:
以非圖形介面安裝 LD_PRELOAD=/opt/tuxedo/libcwait.so /opt/tuxedo/tuxedo81_linux.bin -i console無圖形安裝。