免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2911 | 回复: 3
打印 上一主题 下一主题

[安装配置] 菜鸟求助:怎么安装c编译器? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-07-19 11:36 |只看该作者 |倒序浏览
各位师兄,小弟近日要配置一台ibm的小型机,os为aix4.3.3,可是上面连cc都没有,该怎么安装呢?

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
2 [报告]
发表于 2003-07-19 13:46 |只看该作者

菜鸟求助:怎么安装c编译器?

IBM C 4.3 For AIX的安装
一、安装软件:
1、用root用户登录;
2、检查/.profile文件中有无如下语句,没有则添加:
export PATH=$PATH:/var/ifor/:/usr/opt/ifor/ls/conf:/usr/vac/bin
3、运行exit命令,重新用root用户登录。
二、安装IBM C 4.3 For AIX:
1、运行smitty;选择Software Installation and Maintenance中的Install and Update Software下的Install and Update from LATEST Available Software;在INPUT device / directory for software处选择/dev/cd0;在SOFTWARE to install处按F4选择以下软件:vac.C、vac.C.readme.ibm、vac.html.SBCS、vac.html.common、vac.html.en_US、xldb.base、xldb.help.en_US、xlsmp.rte进行安装。
三、配置License Server:
1、重新用root用户登录;键入 ./var/ifor/i4blt命令;
2、键入i4cfg –script命令,此时系统将提供菜单供选择,按以下步骤执行:
1、选择2) Nodelock License Server (and/or Network License Client);
2、出现Do you want to disable remote administration of this Nodelock License Server? [y,n]:时选择y ;
3、选择2) Direct Binding only;
4、选择1) Default;
5、在出现The default Log file(s) path is /var/ifor Enter blank to accept default or specify a new path:时,键入:/var/ifor;
6、当提示Do you want to modify the list of remote Nodelock and/or Network License Servers this system can connect to in direct binding mode (both for Administration purposes and for working as Network License Client) ?  [y,n]:时,选择n;
7、当提示Do you want the License Server(s) automatically start on this system at boot time? [y,n]:时,选择y;
8、系统提示Do you want to continue? [y,n]: 时;选择y;
9、当系统询问Do you want the License Server(s) start now? [y,n]:时,选择y;
四、安装License Code:
1、键入:/var/ifor/i4blt -a -f /usr/vac/c43aix_cn.lic -R "root" -T 5
2、键入:./usr/vac/bin/replaceCSET
五、测试:
1、编辑一个C语言的测试程序,用C进行编译。


AIX如何安装/配置C/C++/Fortran语言License
本文出自: www.ibm.com.cn (2001-05-29 09:04:00)
环境: 产品: C for AIX 4.4
平台:RS/6000
版本:AIX 4.3  
问题: 安装好C/C++/Fortran编译器的软件包后,仍然不能使用编译程序(如:cc -o objectfile sourcefile.c),出错提示为“No License Configured”。这时需要对编译程序的License 进行配置。  

解答: 本文适用于以下产品:   C for AIX V4.x & V5.x;
C&C++ V3.6.x;
Fortran V5.x & V6.x;  


一. 安装C/C++/Fortran编译器及LUM(License 管理程序)
   1.使用以下命令确认软件包 ipfx.rte 已经安装:

       lslpp -l ipfx.rte

     如果未安装,可从AIX 4.3 系统盘的第一张光盘找出并安装。  

   2.从编译器安装介质安装编译器软件包。

   3.从AIX 系统盘安装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 (升级 NCS 到 版本4.3)
ifor_ls.compat (兼容旧版本License 管理程序NetLS)
ifor_ls.ipf.en_US (IPFX 格式的LUM 联机文档)
ifor_ls.html.en_US (HTML 格式的LUM 联机文档)  

   5.运行命令

       lslpp -l bos.net.ncs

     确认其版本为4.3.x.x(与AIX版本相同)  


二. 配置编译器License

1.配置 LUM V4 Nodelock Licence Server

   运行命令

       i4cfg -script

   将启动交互式License配置程序。以下为该命令输出内容,按照下列步骤配置 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.  
[有时会遇到提示 "Configuration cannot take place until all licensing daemons are stopped.",在提示
“if you want to terminate them”后回答“Yes”继续。]

[如遇到提示 "default ini file not found,configuration ends.",可运行 /usr/opt/ifor/ls/bin/i4cnvini"
重建默认的初始化文件。]

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

[此时可能遇到提示  
"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:[按回车键]


**********************************************************************
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. 运行下列命令将License加入管理程序:

     # /var/ifor/i4blt -a -f [licfile] -R u -T [number_of_lics]

  其中
  licfile 为license文件名,number_of_lics 为 实际购买的编译器用户数。
  例如:   i4blt -a -f /usr/vac/c43aix_cn.lic -R u -T 10
将 C for AIX 4.3 编译器的10 个用户的license 加入Nodelock server。  
i4blt -a -f /usr/vac/c44aix_cn.lic -R u -T 10000
将 C Version 4.4 编译器的10000个用户的license加入Nodelock server。

i4blt -a -f /usr/ibmcxx/cxx36_cn.lic -R u -T 5
将C&C++ Version 3.6.4 的5个用户的license 加入Nodelock server。

i4blt -a -f /usr/lpp/xlf/DOC/f51aix_cn.lic -R u -T 3
将Fortran V5.1.1 的3个用户的license 加入Nodelock server。


如果遇到错误信息"host not found" ,可将选项 "-n [hostname]" 加入命令行。例如:

   i4blt -a -n myhost.com -f/usr/vac/c43aix_cn.lic -Ru -T 1

如果遇到错误信息"0509-023 Symbol ifor_translate_i18n in ksh is not defined",
这可能与库文件libshrnck.a 的版本有关,此时需要寻找正确的libshrnck.a文件并将其拷贝到
/usr/lib/ncs/lib/libshrnck.a。遇到这种情况可与IBM技术支持中心联系以寻求帮助。

命令 i4blt 运行成功后屏幕将显示: "ADM-10099: Product successfully enrolled"  



3. 设置 C编译程序路径:

如果使用 C for AIX 4.4/5.0 编译器,运行脚本

   /usr/vac/bin/replaceCSET

如果使用 C&C++ V3.6.x 编译器, 运行脚本

   /usr/ibmcxx/bin/replaceCSET



三. 删除/更新 License  

使用下列命令可将license 删除:

# i4blt -d -v "'IBM Software Solutions Toronto'" -p "'C for AIX' 4.3.cn" -t 876751962

其中时间戳 876751962 在不同的系统上各不相同,可用命令

/var/ifor/i4blt -lp -i 查看。

使用下列命令可以更新license 用户数:

# i4blt -U -v "'IBM Software Solutions Toronto'" -p "'C for AIX' 4.3.cn" -T [new number of users]

论坛徽章:
0
3 [报告]
发表于 2003-07-21 12:14 |只看该作者

菜鸟求助:怎么安装c编译器?

多谢。装了一个gcc。

论坛徽章:
0
4 [报告]
发表于 2003-10-18 19:48 |只看该作者

菜鸟求助:怎么安装c编译器?

多谢,帮了我一个大忙。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP