本文出自: www.ibm.com.cn (2001-05-29 09:04:00)
環(huán)境:
產(chǎn)品:C for AIX 4.4
平臺(tái):RS/6000
版本:AIX 4.3
問(wèn)題: 安裝好C/C++/Fortran編譯器的軟件包后,仍然不能使用編譯程序(如:cc -o objectfile sourcefile.c),出錯(cuò)提示為“No License Configured”。這時(shí)需要對(duì)編譯程序的License 進(jìn)行配置。
解答: 本文適用于以下產(chǎn)品: C for AIX V4.x & V5.x;
C&C++ V3.6.x;
Fortran V5.x & V6.x;
一. 安裝C/C++/Fortran編譯器及LUM(License 管理程序)
1.使用以下命令確認(rèn)軟件包 ipfx.rte 已經(jīng)安裝:
lslpp -l ipfx.rte
如果未安裝,可從AIX 4.3 系統(tǒng)盤(pán)的第一張光盤(pán)找出并安裝。
2.從編譯器安裝介質(zhì)安裝編譯器軟件包。
3.從AIX 系統(tǒng)盤(pán)安裝LUM(License 管理程序) 軟件包:
bos.rte.ifor_ls
ifor_ls.base.cli
ifor_ls.base.gui
ifor_ls.client.base
ifor_ls.client.gui
ifor_ls.msg.en_US.base.cli
ifor_ls.msg.en_US.base.gui
下列軟件包可任選:
bos.net (升級(jí) NCS 到 版本4.3)
ifor_ls.compat (兼容舊版本License 管理程序NetLS)
ifor_ls.ipf.en_US (IPFX 格式的LUM 聯(lián)機(jī)文檔)
ifor_ls.html.en_US (HTML 格式的LUM 聯(lián)機(jī)文檔)
5.運(yùn)行命令
lslpp -l bos.net.ncs
確認(rèn)其版本為4.3.x.x(與AIX版本相同)
二. 配置編譯器License
1.配置 LUM V4 Nodelock Licence Server
運(yùn)行命令
i4cfg -script
將啟動(dòng)交互式License配置程序。以下為該命令輸出內(nèi)容,按照下列步驟配置 Nodelock License server:
i4cfg Version 4.0 AIX -- LUM Configuration Tool
(c) Copyright 1995-1997, IBM Corporation, All Rights Reserved
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
[有時(shí)會(huì)遇到提示 "Configuration cannot take place until all licensing daemons are stopped.",在提示
“if you want to terminate them”后回答“Yes”繼續(xù)。]
[如遇到提示 "default ini file not found,configuration ends.",可運(yùn)行 /usr/opt/ifor/ls/bin/i4cnvini"
重建默認(rèn)的初始化文件。]
From a License Management point of view,
you can choose to configure this system as:
1) Network License Client
2) Nodelock License Server (and/or Network License Client)
3) Network (and/or Nodelock) License Server
4) Central Registry (and/or Network and/or Nodelock) License Server (*)
(*) Remember that one and only one Central Registry License Server
(i4gdb daemon) can be active in a Licensing domain.
Please indicate your choice [1,2,3,4]: 2
Do you want to disable remote administration of the license server? y
[此時(shí)可能遇到提示
"You have to choose now which mechanism must be enabled
to locate this License Server:
1) NCS Namespace and Direct Binding (*)
2) Direct Binding only"
選擇 '2) Direct Bind Only']
Choose the desired Server(s) logging level
1) Default
2) All
3) Customized
Please indicate your choice [1,2,3]: 1
The default Log file(s) path is /var/ifor
Enter blank to accept default or specify a new path:[按回車(chē)鍵]
**********************************************************************
Server configuration is complete.
Do you want to configure this machine as a Network License Client too?
[y,n]: n
Do you want the License Server(s) automatically start on this system
at boot time? [y,n]: y
**********************************************************************
WARNING: Configuration is about to end.
This is your last chance to quit before your updates will be written.
Do you want to continue? [y,n]: y
*** Configuration file updated. ***
Do you want the License Server(s) start now? [y,n]: y
0513-059 The i4llmd Subsystem has been started. Subsystem PID is 18636.
'Start Services' has completed successfully
****************************************
* Configuration completed successfully *
****************************************
#
2. 運(yùn)行下列命令將License加入管理程序:
# /var/ifor/i4blt -a -f [licfile] -R u -T [number_of_lics]
其中
licfile 為license文件名,number_of_lics 為 實(shí)際購(gòu)買(mǎi)的編譯器用戶數(shù)。
例如: i4blt -a -f /usr/vac/c43aix_cn.lic -R u -T 10
將 C for AIX 4.3 編譯器的10 個(gè)用戶的license 加入Nodelock server。
i4blt -a -f /usr/vac/c44aix_cn.lic -R u -T 10000
將 C Version 4.4 編譯器的10000個(gè)用戶的license加入Nodelock server。
i4blt -a -f /usr/ibmcxx/cxx36_cn.lic -R u -T 5
將C&C++ Version 3.6.4 的5個(gè)用戶的license 加入Nodelock server。
i4blt -a -f /usr/lpp/xlf/DOC/f51aix_cn.lic -R u -T 3
將Fortran V5.1.1 的3個(gè)用戶的license 加入Nodelock server。
如果遇到錯(cuò)誤信息"host not found" ,可將選項(xiàng) "-n [hostname]" 加入命令行。例如:
i4blt -a -n myhost.com -f/usr/vac/c43aix_cn.lic -Ru -T 1
如果遇到錯(cuò)誤信息"0509-023 Symbol ifor_translate_i18n in ksh is not defined",
這可能與庫(kù)文件libshrnck.a 的版本有關(guān),此時(shí)需要尋找正確的libshrnck.a文件并將其拷貝到
/usr/lib/ncs/lib/libshrnck.a。遇到這種情況可與IBM技術(shù)支持中心聯(lián)系以尋求幫助。
命令 i4blt 運(yùn)行成功后屏幕將顯示: "ADM-10099: Product successfully enrolled"
3. 設(shè)置 C編譯程序路徑:
如果使用 C for AIX 4.4/5.0 編譯器,運(yùn)行腳本
/usr/vac/bin/replaceCSET
如果使用 C&C++ V3.6.x 編譯器, 運(yùn)行腳本
/usr/ibmcxx/bin/replaceCSET
三. 刪除/更新 License
使用下列命令可將license 刪除:
# i4blt -d -v "'IBM Software Solutions Toronto'" -p "'C for AIX' 4.3.cn" -t 876751962
其中時(shí)間戳 876751962 在不同的系統(tǒng)上各不相同,可用命令
/var/ifor/i4blt -lp -i 查看。
使用下列命令可以更新license 用戶數(shù):
# i4blt -U -v "'IBM Software Solutions Toronto'" -p "'C for AIX' 4.3.cn" -T [new number of users]
相關(guān)文章