Install Visual Age C ++ on AIX on p550

Source: Internet
Author: User

1. Installation Steps
Step 1: place the first installation disk of the AIX operating system into the disc drive, and then execute

The following command:
# Smitty install
--> Install and Update Software
--> Install and update from all available software
Select the following file set:
Bos. ADT
Ifor_ls
Ifor_ls.html.en_us
Ifor_ls.ipf.en_us
Ifor_ls.compat
Press enter to install the SDK.
During the installation process, the system will prompt you to switch to the third installation disk of the AIX operating system,

Then, the system prompts you to switch back to the first disk of the AIX operating system.
Step 2: place the installation disk of the ibm c ++ compiler into the disc drive and

Copy-on-write

To any directory of the system, and then execute the following command in the directory:
(Assume that the directory is in the/test/ccomp directory)
# Inutoc [directory name]
# Inutoc/test/ccomp
The preceding command is used to create a. TOC file for installation of the software package.
Step 3: run the following command to install the ibm c ++ Compiler:
# Smitty install
--> Install and Update Software
--> Install and update from all available software
Select the file set to install:
VAC. c
VAC. C. readme. IBM
Vac.html. en_us
Xldb. Base
Xldb. Help. en_us

2. configuration steps:
Step 1: After the installation is complete, the system will create a file named i4cfg in the/var/IFOR directory. Follow these steps to execute the file and answer the corresponding questions:
#./I4cfg-script

The system displays and selects the following content:
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

Configure this system:

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, 4]: 2

Do you want to disable remote administration of this nodelock

License Server? [Y, N]: Y

You have to choose now which mechanic 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
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:

1) preserve the current list
2) Delete the current list
3) create a new list

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

First, we need to know the Network Name of the system that runs the network license service.

Enter these names, separated by spaces in the middle,
Example: Deckard Rachael nexus6.tyrell.com

Server network name (s): 000001 (server name)

Please specify the Central Registry License Server Name:

201701 (server name) the license application usually uses port [1515] to locate the license server. The port number is allocated by the NIC organization. If you cannot use port [1515] in your system environment for some reason, modify it in the following prompt:
Do you want to change the default IP port number [1515]?

[Y, N]: N

The license application usually uses port [10999] to locate the Central Registration License Server. For example

If, for some reason, you cannot use port [10999] in your system environment, modify it in the following prompt:
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:

1) preserve the current list
2) Delete the current list
3) create a new list

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

Now you need to know the Network Name of the system that runs the network license service.

Enter these names, separated by spaces in the middle,
Example: Deckard Rachael nexus6.tyrell.com

Server network name (s): 000001 (server name)

Administrative Tools usually use port [12999] to locate the nodelock license server. If

For some reason, you cannot use port [12999] in your system environment. Modify the port in the following prompt:
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 Service' has completed successfully

****************************************
Configuration completed successfully *

Step 2: run the following command to obtain the number of licenses.
# Cd/usr/VAc
# Pwd
/Usr/VAc
# Cp c43aix_cn.lic/var/IFOR /.
Step 3: Go to the/var/IFOR directory and check the file permissions:
# Cd/var/IFOR
# Ls-Al *. Lic
-R -- 1 root system 955 Mar 10 c43aix_cn.lic
Step 4: Use the following command to set new permissions:
# Chmod 755 *. Lic
Use the VI editor to modify the file c43aix_cn.lic as follows:
# 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
'Current nodelock feature '"-T 20-R" root"
(Add "./" before "i4blt-a-V" and replace "with" 20 ".

Number_of_licences, replaced by "admin" with "root ".)
Save the file and exit the VI editor.
Step 5: run the c43aix_cn.lic file:
#./C43aix_cn.lic
The system will spend some time registering a license. After registration, the system returns a command prompt.
Step 6: Go to the/usr/VAc/bin directory and execute the file replacecset:
# Cd/usr/VAc/bin
# Pwd
/Usr/VAc/bin
# Ls-Al replace *
-R-x ------ 1 Bin 1362 Oct 24 1997 replacecset
#./Replacecset

3. Test the C ++ Compiler:
(1) Use the VI editor to edit a simple C program:
# VI test. c

# Include <stdio. h>
Main ()
{
Printf ("Welcome C ++ ");
}
Save the file and exit the VI editor.
(2) Compile the C program:
# Cc test. c
The system generates an output file in the current directory.
(3) run the output file to generate the output:
#./Out
Welcome C ++ #

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.