`
heiheben
  • 浏览: 132819 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

第一次安装tuxedo for linux 全过程

阅读更多

 第一次安装tuxedo for linux 全过程

  安装前对tuxedo没有任何概念,只知道是中间件,linux也不是很熟,呵呵,关键还是是正儿八经在给客户做项目呢,
公司派我一个人大老远去客户那里了,没办法只好硬着头皮搞,安装时候一步一个报错,真是郁闷,经历还真有点儿坎坷呢(现在向来其实很简单),
发个帖子发个纪念一下,呵呵,也给同样是新手们借鉴一下吧

实际安装环境,tuxedo8.1 for linux (安装文件为tuxedo81_linux.bin),Redhat linux 10.3


一. 以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%]

参考:
http://dev2dev.bea.com.cn/bbs/thread.jspa?forumID=4&threadID=13265&messageID=72337#72337
https://www.redhat.com/archives/fedora-list/2005-February/msg04944.html

 

【注:】

        我是在centos4.6上安装的,也出现这个问题。只要将安装盘中的一个rpm包安装就可以了

        compat-libstdc++-296....后面的记不得了,就安装这个就可以了

出错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/fedora-list/2004-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

....

解决办法:

先怀疑jdk问题,尝试安装 jdk,下载jdk,并配置jdk环境
chmod  u+x  ./j2sdk-1_4_2_04-linux-i586.bin 
./j2sdk-1_4_2_04-linux-i586.bin
mkdir  /usr/java 
rpm  -ivh  j2sdk-1_4_2_04-linux-i586-rpm   

还是不能启用图形节目安装,最后只好加 -i console 不启图形界面进行安装,即

LD_PRELOAD=/home/tuxedo/libcwait.so /home/tuxedo/tuxedo81_linux.bin -i console

不过这个问题,如果非要启用图形界面安装,一直没找到好的办法解决,始终还是上面这个报错,还请高手指点。

参考:
jdk下载
http://java.sun.com/products/archive/j2se-eol.html
http://www.javazy.com/page/index.asp?sortid=468&id=1024

出错6-------------------------------------------------------------------------
tuxedo程序总算装完了,很高兴地去启动程序,又来了个报错,汗!!!

[tuxedo@TUXSVR4 tuxedo]$ tmboot -y
tmboot: internal error: CMDTUX_CAT:754: ERROR: error processing configuratio
n file
tmboot: internal error: CMDTUX_CAT:1360: ERROR: configuration file not found

解决办法:
从另外一台已装好tuxedo机器拷贝 tuxconfig文件到相应目录

参考:
http://dev2dev.bea.com.cn/bbs/thread.jspa?forumID=4&threadID=223&messageID=1483#1483

出错7------------------------------------------------------------------
这个问题也很郁闷,好像是tuxedo的权限问题,花了半天时间想着给他权限,还是不行

[tuxedo@TUXSVR4 tuxedo]$ tmboot -y
tmboot: CMDTUX_CAT:1113: ERROR: Must be the administrator to execute this command

解决办法:
删除tuxconfig
修改ubb里面的主机名称等变量;
修改必须的环境变量。
重新tmloadcf -y ubb

出错8------------------------------------------------------------------

tmloadcf cannot run on a non-master node

解决办法:
ubb文件中主机名大小写弄错,即ubb文件中主机名要与实际相一致,包括大小写,改正即可

出错9------------------------------------------------------------------
[tuxedo@TUXSVR4 tuxedo]$ tmboot -y
Booting all admin and server processes in /home/tuxedo/appdir/tuxconfig
INFO: BEA Tuxedo, Version 8.1
INFO: Serial #: 650522264138-1743831940315, Expiration NONE, Maxusers 30
INFO: Licensed to: MOLSS China

Booting admin processes ...

exec BBL -A :
        Failed.

tmboot: WARN: No BBL available on site XC_SERV.
        Will not attempt to boot server processes on that site.


Booting server processes ...

0 processes started.

解决办法:

启动tmadmin
crdl -b 3000 -z appdir/TLOG/TLOG
crlog -m XC_SERV4

参考:
http://dev2dev.bea.com.cn/bbs/thread.jspa?forumID=4&threadID=1620&messageID=6816#6816
http://dev2dev.bea.com.cn/bbs/thread.jspa?forumID=4&threadID=24578&messageID=144089#144089

================================================




在接下来就是tuxedo应用方面配置的问题,由专门的软件人员搞定,我的任务算完成了!

感谢dev2dev.bea.com.cn论坛及热心网友!

附:.bash_profile
---------------------------------
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc
USERNAME=""
export USERNAME
export BASH_ENV
export PATH
export TUXDIR=/home/tuxedo/tuxedo8.1
export APPDIR=/home/tuxedo/appdir
export TUXCONFIG=/home/tuxedo/appdir/tuxconfig
export ORACLE_HOME=/home/oracle/product/9.2.0
export ORACLE_SID=xcsb
#export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
export NLS_LANG="american_america.zhs16gbk"
export PATH=$TUXDIR/bin:$APPDIR:$ORACLE_HOME/bin:$APPDIR/bin:.:$PATH
export LANG=C
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib:$TUXDIR/lib:$LD_LIBRARY_PATH
export LC=en_US
export CC=cc
#export DISPLAY=178.22.11.199:1.0
export TMOUT=100000000
----------------------------------------------
    (全文完)

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics