目录
1 编译客户端程序… 2
1.1 目录不正确… 2
1.1.1 解决方法… 2
2 编译服务端程序… 3
2.1 没有SDKlicense. 3
2.1.1 解决方法… 3
2.2 无效许可… 4
2.2.1 解决方法… 4
3 生成tuxconfig文件… 5
3.1 libusort.so 问题… 5
3.1.1 解决方法… 5
3.2 Severe error found. 6
3.2.1 解决方法1. 7
3.2.2 解决方法2. 7
4 启动tmboot –y. 9
4.1 Unlicensed System Binary. 9
4.1.1 解决方法… 9
4.2 Expired System Binary. 10
4.2.1 解决方法… 10
4.3 0 processes started. 11
4.3.1 解决方法1. 11
4.3.2 解决方法2. 12
5 测试… 13
5.1 Tpinit failed. 13
5.1.1 解决方法1. 13
5.1.2 解决方法2. 14
1 编译客户端程序1.1 目录不正确
[tuxedo@localhost ~]$ buildclient -o simpcl -f simpcl.c
cc: simpcl.c: No such file or directory
CMDTUX_CAT:512: ERROR: Cannot execute C compiler cc -I$TUXDIR/include -o simpcl -L${TUXDIR}/lib simpcl.c -ltux -lbuft -lfml -lfml32 -lengine -ldl -lpthread /usr/lib/libcrypt.a
1.1.1 解决方法
该目录下并没有文件simpcl.c。
用find命令寻找simpcl.c,然后将目录转到相应目录,再次执行命令buildclient -o simpcl -f simpcl.c
[tuxedo@localhost ~]$ find ./ -name “simpcl.c”
./bea/tuxedo8.1/samples/atmi/simpapp/simpcl.c
./bea/samples/atmi/simpapp/simpcl.c
[tuxedo@localhost ~]$ cd ./bea/samples/atmi/simpapp
[tuxedo@localhost simpapp]$ ls
README simpcl.c simpserv.c ubbsimple
[tuxedo@localhost simpapp]$ buildclient -o simpcl -f simpcl.c
simpcl.c: In function ‘main’:
simpcl.c:34: warning: incompatible implicit declaration of built-in function ‘exit’
simpcl.c:40: warning: incompatible implicit declaration of built-in function ‘exit’
simpcl.c:43: warning: incompatible implicit declaration of built-in function ‘strlen’
simpcl.c:50: warning: incompatible implicit declaration of built-in function ‘exit’
simpcl.c:57: warning: incompatible implicit declaration of built-in function ‘exit’
simpcl.c:60: warning: incompatible implicit declaration of built-in function ‘strcpy’
simpcl.c:71: warning: incompatible implicit declaration of built-in function ‘exit’
[tuxedo@simple simpapp]$ ls
README ULOG.121200 ULOG.121290 ULOG.121410 simpcl simpcl.c simpserv.c stderr stdout ubbsimple
[tuxedo@localhost simpapp]$
成功通过编译
2 编译服务端程序2.1 没有SDKlicense
[tuxedo@localhost simpapp]$ ls
README simpcl simpcl.c simpserv.c ubbsimple
[tuxedo@localhost simpapp]$ buildserver -o simpserv -f simpserv.c TOUPPER
CMDTUX_CAT:4382: ERROR: You do not have a valid SDK license
[tuxedo@localhost simpapp]$
2.1.1 解决方法
由于没有SDK的license,
新建序列号文件,并将某序列号拷贝到该文件中。
序列号文件默认放在目录/home/tuxedo/bea/udataobj下,名为lic.txt
[tuxedo@simple ~]$ cd /home/tuxedo/bea/udataobj
[tuxedo@simple udataobj]$ ls
DMTYPE SysRegiiop.rdp System.rdp Usysflds dmadmin32 java jrep.f32 mib_views.V snmp tmib_views.V tpldap webgui
RM SysRegtgiop.rdp Usysfl32 dmadmin evt_mib jolt jwsladmin.f32 security tlisten.pw tpadm tuxwsvr.ini
[tuxedo@simple udataobj]$
该目录中并没有该文件,因此我们需创建该文件
[tuxedo@simple udataobj]$ vi lic.txt
TYPE=SDK
USERS=1000000
VERSION=8.1
SIGNATURE=MCwCFCf8V4t2z1QWQPYtJXkmmVSq/2eDAhQ/6kB9FV0kJyaMHqtVIqDdCgMJnw==
[SNMP]
DEVELOPERS=1000000
EXPIRATION=2007-07-15
LICENSEE=BEA Internal Use Only
SERIAL=454493248242-2222809264022
TYPE=SDK
USERS=1000000
VERSION=8.1
SIGNATURE=MCwCFCf8V4t2z1QWQPYtJXkmmVSq/2eDAhQD71Yx7raTVfp40kW+/PfbKouWig==
[SSL ENCRYPTION]
DEVELOPERS=1000000
EXPIRATION=2007-07-15
LICENSEE=BEA Internal Use Only
SERIAL=454493248242-2222809264022
STRENGTH=56
TYPE=SDK
USERS=1000000
VERSION=8.1
SIGNATURE=MCwCFCf8V4t2z1QWQPYtJXkmmVSq/2eDAhRVcdPk0b2L9nEKNawnDfSNAN/TRA==
再次运行
[tuxedo@simple simpapp]$ ls
README ULOG.121200 ULOG.121410 simpcl.c simpserv.c ubbsimple
[tuxedo@simple simpapp]$ buildserver -o simpserv -f simpserv.c TOUPPER
CMDTUX_CAT:520: ERROR: Invalid arguments passed to buildserver
[tuxedo@simple simpapp]$
2.2 无效许可
[tuxedo@simple simpapp]$ ls
README ULOG.121200 ULOG.121410 simpcl.c simpserv.c ubbsimple
[tuxedo@simple simpapp]$ buildserver -o simpserv -f simpserv.c TOUPPER
CMDTUX_CAT:520: ERROR: Invalid arguments passed to buildserver
[tuxedo@simple simpapp]$
2.2.1 解决方法
License过期,修改系统时间
[tuxedo@simple ~]$ date -s 12/12/1990
date: cannot set date: Operation not permitted
Tue Dec 12 00:00:00 EST 1990
[tuxedo@simple ~]$ su root
Password:
[root@simple tuxedo]# date -s 12/12/1990
Tue Dec 12 00:00:00 EST 1990
[root@simple tuxedo]#
执行命令buildserver -o simpserv -f simpserv.c -s TOUPPER
[tuxedo@simple simpapp]$ buildserver -o simpserv -f simpserv.c -s TOUPPER
[tuxedo@simple simpapp]$
成功通过编译!
--转自