您的位置:首页 > 编程语言 > C语言/C++

Visual age C++ On AIX 安装

2011-08-01 15:50 274 查看
1.安装步骤

步骤一:将AIX操作系统安装盘的第一张放入光盘驱动器,之后执行

下面的命令:

# smitty install

--> Install and Update Software

--> Install and Update from ALL Available Software

选择下面的文件集:

bos.adt

ifor_ls

ifor_ls.html.en_US

ifor_ls.ipf.en_US

ifor_ls.compat

按回车键后进行安装。

在安装进行的过程中,系统会提示换到AIX操作系统安装盘的第三张,

之后又会提示换回AIX操作系统安装盘的第一张。

步骤二:将IBM C++编译器的安装盘放入光盘驱动器,将光盘上的内

容拷

贝至系统的一个任意目录,之后在该目录下执行下面的命令:

(假设该目录在/test/ccomp目录下)

# inutoc [directory name]

# inutoc /test/ccomp

上面的命令用于创建.toc文件以便进行软件包的安装。

步骤三:执行下面的命令安装IBM C++编译器:

# smitty install

--> Install and Update Software

--> Install and Update from ALL Available Software

选择安装下面的文件集:

vac.c

vac.c.readme.ibm

vac.html.en_US

Xldb.base

Xldb.help.en_US

2.配置步骤:

步骤一:安装步骤完成后,系统会在/var/ifor目录下创建一个名为i4cfg的文件。按下面的步骤执行该文件并回答相应的问题:

# ./i4cfg -script

系统显示内容及选择如下:

i4cfg Version 4.5.5 AIX -- LUM Configuration Tool

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

ReservedUS Government Users Restricted Rights - Use, duplication ordisclosure

restricted by GSA ADP Schedule Contract with IBM Corp.

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 this Nodelock

License Server? [y,n]: 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

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 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]: y

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

Direct Binding managing.

Processing remote NETWORK Servers:

The current direct binding list is empty

You can now choose to:

1) preserve the current list

2) delete the current list

3) create a new list

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

我们首先需要知道运行网络许可证服务的系统的网络名称,在一行

中输入这些名称,中间以空格间隔,

例如: deckard rachael nexus6.tyrell.com

Server network name(s): apps01 (服务器名)

Please specify the Central Registry License Server name:

apps01(服务器名)许可证应用通常使用端口[1515]定位许可证服务器。该端口号是NIC组织分配的。如果由于某种原因,你的系统环境中不能使用[1515]端口,请在下面的提示中修改它:

Do you want to change the default ip port number [1515]?

[y,n]: n

许可证应用通常使用端口[10999]定位中央注册许可证服务器。如

果由于某种原因,你的系统环境中不能使用[10999]端口,请在下面的提示中修改它:

Do you want to change the default ip port number [10999]? [y,n]: n

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

Direct Binding managing.

Processing remote NODELOCK Servers enabled to remote administration:

The current direct binding list is empty

You can now choose to:

1) preserve the current list

2) delete the current list

3) create a new list

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

现在需要知道运行网络许可证服务的系统的网络名称,在一行中

输入这些名称,中间以空格间隔,

例如: deckard rachael nexus6.tyrell.com

Server network name(s): apps01 (服务器名)

管理工具通常使用端口[12999]定位Nodelock许可证服务器。如果

由于某种原因,你的系统环境中不能使用[12999]端口,请在下面的提示中修改它:

Do you want to change the default ip port number [12999]? [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 18480.'Start Services' has completed successfully

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

Configuration completed successfully *

步骤二:执行下面的命令获得许可证数。

# cd /usr/vac

# pwd

/usr/vac

# cp c43aix_cn.lic /var/ifor/.

步骤三:进入/var/ifor目录下并检查文件的权限:

#cd /var/ifor

# ls -al *.lic

-r--r--r-- 1 root system 955 Mar 10 16:40 c43aix_cn.lic

步骤四:使用下面的命令设置新的权限:

# chmod 755 *.lic

使用vi编辑器修改文件c43aix_cn.lic如下:

# vi c43aix_cn.lic

./i4blt -a -v "'IBM Software Solutions Toronto' 5da54a553b4c.02.09.15.31.05.00.00.

00 p9gb3ycs6ydpw" -p "'C for AIX' '4.3.cn' nd65jkrxbhyczzetdxr3dhtun62i7d2v3bz2

'Concurrent Nodelock feature'" -T 20 -R "root"

(其中,在“i4blt -a -v”前增加了“./”,用“20”替换掉了“

number_of_licences ”,用“root”替换掉了“admin”。)

保存文件并退出vi编辑器。

步骤五:执行文件c43aix_cn.lic:

# ./c43aix_cn.lic

系统将花费一些时间注册许可证。注册完成后,系统将返回命令提示符。

步骤六:进入/usr/vac/bin目录下执行文件replaceCSET:

# cd /usr/vac/bin

# pwd

/usr/vac/bin

# ls -al replace*

-r-x------ 1 bin bin 1362 Oct 24 1997 replaceCSET

# ./replaceCSET

3.测试C++编译器:

(1)使用vi编辑器编辑一个简单的C程序:

# vi test.c

#include<stdio.h>

main()

{

printf(" Welcome C++");

}

保存该文件并退出vi编辑器。

(2)编译该C程序:

#cc test.c

系统将在当前目录下产生一个输出文件。

(3)运行该输出文件产生输出:

#./out

Welcome C++#
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐