第一次安裝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
----------------------------------------------
    (全文完)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章