一. 以root身份建立tuxedo用户,并以tuxedu用户登陆,此用户将做为以后tuxedo管理员,用户默认目录为/home/tuxedo;
二. 用FTP把安装文件(tuxedo81_linux.bin)和用户许可证书文件(lic.txt)传到/home/tuxedo目录中;
三. 配置环境变量,.bash_profile文件,附文末;
四. 进入/home/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----------------------------------------------------------------
[tuxedo@TUXSVR4 tuxedo]$ sh tuxedo81_linux.bin
Preparing to install...
/tmp/install.dir.22860/Linux/resource/jre/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory
解决办法:
[root@TUXSVR4 root]# rpm -ivh /tmp/compat-libstdc++-7.3-2.96.118.i386.rpm
warning: /tmp/compat-libstdc++-7.3-2.96.118.i386.rpm: V3 DSA signature: NOKEY, k
ey ID db42a60e
Preparing... ########################################### [100%]
1:compat-libstdc++ ########################################### [100%]
出错3-----------------------------------------------------------------
[tuxedo@TUXSVR4 tuxedo]$ sh tuxedo81_linux.bin
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
解决办法:
在tuxedo用户下执行
gcc -shared -fpic -o libcwait.so libcwait.c
chmod a+x /home/tuxedo/tuxedo81_linux.bin
LD_PRELOAD=/home/tuxedo/libcwait.so /home/tuxedo/tuxedo81_linux.bin
注意,是将libcwtit.c编译成libcwait.so文件,libcwait.c下载地址 ftp://people.redhat.com/drepper/libcwait.c,
另要确认安装了C语言编译工具gcc。当然,这个问题的根源我也不懂,我是按别人的方法做的,
并且接下来的安装都要执行完整的LD_PRELOAD=/home/tuxedo/libcwait.so /home/tuxedo/tuxedo81_linux.bin,而不是
先前的sh tuxedo81_linux.bin
参考:
https://www.redhat.com/archives/ ... -July/msg00315.html
出错4-----------------------------------------------------------------
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
解决办法:
以root登录执行
xhost +192.173.1.4 (本机Ip地址)
出错5-----------------------------------------------------------------
[tuxedo@TUXSVR4 tuxedo]$ LD_PRELOAD=/home/tuxedo/libcwait.so /home/tuxedo/tuxedo81_linux.bin
Preparing to install...
Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)
Stack Trace:
java.lang.NoClassDefFoundError
解决办法:
tuxedoxxx -i console