知道美河 | 上传资料 | VIP申请 | 精品课程 | 资料搜索 | 问题反馈 | 会员手册 | 积分消费 | 积分充值 | 帐号保护
美河学习学习在线赞助VIP

美河学习在线(主站) eimhe.com

 找回密码
 建立账号
查看: 5191|回复: 1

[原创] C & Visual Age C++的安装文档

[复制链接]
发表于 2007-4-26 11:38:45 | 显示全部楼层 |阅读模式
一、概述.............................................. 1

二、C & Visual Age C++的安装.......................... 1

三、License Server的配置............................. 2

四、测试方法.......................................... 5

4.1 C编译器的测试................................ 5

4.2 C++编译器的测试............................... 6

4.3 Visual Age C++ 图形界面的启动................. 6










一、概述
本手册内容包括C和Visual Age C++的安装,以及License Server的配置,最后是测试方法。


二、C & Visual Age C++的安装
使用root身份登录系统,将光盘放入光驱,C for AIX只有一张光盘,而Visual Age C++有两张盘,放第一张盘。使用命令:

#smitty install_latest

选择安装介质为/dev/cd0

Install and Update from LATEST Available Software

Type or select values in entry fields.

Press Enter AFTER making all desired changes.

[Entry Fields]

* INPUT device / directory for software /dev/cd0

* SOFTWARE to install [_all_latest] +

PREVIEW only? (install operation will NOT occur) no +

COMMIT software updates? yes +

SAVE replaced files? no +

AUTOMATICALLY install requisite software? yes +

EXTEND file systems if space needed? yes +

OVERWRITE same or newer versions? no +

VERIFY install and check file sizes? no +

Include corresponding LANGUAGE filesets? yes +

DETAILED output? no +

Process multiple volumes? yes +


提交安装光盘上所有软件


三、License Server的配置
步骤一:

使用命令增加C/C++的访问路径:#/usr/vac/bin/replaceCSET (C V5.02,V6.0版本已经取消该命令,可以在/etc/environment文件加入C/C++路径。)

运行命令:

#/var/ifor/i4config (AIX4.3.3)

#/usr/opt/ifor/bin/i4config (AIX5L)

步骤二:

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 daemoe

in a Licensing domain.

Please indicate your choice [1,2,3,4]: 2



选择2


步骤三:

Do you want to disable remote administration of this Nodelock License

Server? [y,n]: y



选择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

(*) WARNING: Modifying NCS Namespace configuration may affect

any other application that use NCS on this system.

NCS Namespace is necessary to support old Netls, iFOR/LS Clients.

Please indicate your choice [1,2]: 2


选择2


步骤五

The Administration tool usually uses port number [12999] to locate the

Nodelock License Servers. If for some reason your environment can not use port [12999],

or you want to modify a previously assigned port number you can do it now.

Do you want to change the Nodelock License Server ip port number? [y,n]: n


选择n


步骤六

Choose the desired Server(s) logging level

1) Default

2) All

3) Customized

Please indicate your choice [1,2,3]: 1


选择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 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


选择n


步骤九

Do you want the License Server(s) automatically start on this system

at boot time? [y,n]: y


选择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


选择y


步骤十一

*** Configuration file updated. ***


Do you want the License Server(s) start now? [y,n]: y


选择y

屏幕显示

0513-059 The i4llmd Subsystem has been started. Subsystem PID is 21776.

'Start Services' has completed successfully

****************************************

* Configuration completed successfully *

****************************************


步骤十二


Visual Age C++中包括C语言,下面两个命令都需要做。

C for AIX:

运行命令:

AIX V4.3.3操作系统:

#/var/ifor/i4blt -a -f /usr/vac/cforaix_cn.lic -R root -T 10


AIX 5L操作系统:

#/usr/opt/ifor/bin/i4blt -a -f /usr/vac/cforaix_cn.lic -R root -T 10


Visual Age C++:

运行命令:

AIX V4.3.3操作系统:

#/var/ifor/i4blt -a -f /usr/vacpp/vacpp_cn.lic -R root -T 10


AIX 5L操作系统:

#/usr/opt/ifor/bin/i4blt -a -f /usr/vacpp/vacpp_cn.lic -R root -T 10


屏幕显示:

i4blt Version 4.5.1 AIX -- LUM Basic License Tool

(c) Copyright 1995-1998, IBM Corporation, All Rights Reserved

US Government Users Restricted Rights - Use, duplication or disclosure

restricted by GSA ADP Schedule Contract with IBM Corp.

(c) Copyright 1991-1998 Gradient Technologies Inc., All Rights Reserved

(c) Copyright 1991,1992,1993, Hewlett-Packard Company, All Rights Reserved


ADM-10099: Product successfully enrolled


配置完成


四、测试方法
通过编译程序文件的方式来测试编译器是否正常工作。

4.1 C编译器的测试
执行如下命令:

#cd /tmp

#vi testc.c

testc.c内容如下:

#include

main()

{

printf(“\nTesting C…OK!\n\n”);

}


编译testc.c

#cc testc.c -o test

生成可执行文件testc(通过ls命令可以看到)

运行 testc

#./testc

屏幕输出

Testing C… OK!

说明C程序编译正确。


4.2 C++编译器的测试
执行如下命令:

#cd /tmp

#vi testcpp.C

testcpp.C内容如下:

#include

void main()

{

cout<<“\nTesting C++…OK!\n\n”;

}

编译testcpp.C

#make testcpp

生成可执行文件testcpp(通过ls命令可以看到)

运行 testcpp

#./testcpp

屏幕输出

Testing C++… OK!

说明C++程序编译正确。


4.3 Visual Age C++ 图形界面的启动
在CDE的command窗口中执行命令

#/usr/vacpp/bin/vacide

图形界面出现并无报错即可


补充:

# /var/ifor/i4blt –s –l cn看看注册成功否?

另外,修改/usr/vac/cforaix_cn.lic文件,第一句话的最后一部分"admin_name"

不要改为root,而是改为 * ,提交以后其他用户编译就不会出现提示了
发表于 2007-4-28 17:57:17 | 显示全部楼层
您需要登录后才可以回帖 登录 | 建立账号

本版积分规则

 
QQ在线咨询

QQ|小黑屋|手机版|Archiver|美河学习在线 ( 浙网备33020302000026号 )

GMT+8, 2025-5-4 05:52

Powered by Discuz!

© 2001-2025 eimhe.com.

快速回复 返回顶部 返回列表