哈,已经整理好了: 一。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的配置 步骤一: 使用命令:#/usr/vac/bin/replaceCSET 运行命令:#/var/ifor/i4config 步骤二: 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 * **************************************** 步骤十二 C for AIX: 运行命令: #/var/ifor/i4blt -a -f /usr/vac/cXXaix_cn.lic -R root -T 10(XX为版本,10为license) Visual Age C++: 运行命令: #/var/ifor/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 配置完成 三、测试方法 通过编译程序文件的方式来测试编译器是否正常工作。 C编译器的测试 执行如下命令: #cd /tmp #vi testc.c testc.c内容如下: #include <stdio.h> main() { printf(“\nC is OK!\n\n”); } 编译test.c #make test 生成可执行文件test(通过ls命令可以看到) 运行 test #./test 屏幕输出 C is OK! 说明C程序编译正确。 VC的程序就请自己编拉:)
|