×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Installation Steps For IBM C++

Installation Steps For IBM C++ Compiler by arvibm
Posted: 13 Feb 03

Prerequisites and Installation Steps

Step1:    Insert the volume one of AIX CD,
#smitty install

Select the file sets
    Bos.adt
    Ifor_ls
    Ifor_ls.html.en_US
    Ifor_ls.ipf.en_US
    Ifor_ls.compat

Then press Enter to install. This will prompt you for volume 3 of AIX installation CDs then again volume one of AIX installation CD. This will install all the prerequisites required for installation of C++ Compiler.

Step2:

Insert the IBM C++ compiler CD and copy the contents of CD to any directory. Then run the command against that directory as given below

Ex: If the directory is in the file system /test/ccomp

#inutoc [directory name]

# inutoc /test/ccomp

The above command is used to create .toc file in the software dump directory.

Step3:

Then run again smitty install command to install C++ compiler. By select the dump directory as source. And then select below  file sets.

# smitty install

File set names:    vac.c
        vac.c.readme.ibm
vac.html.en_US
        Xldb.base
        Xldb.help.en_US

Then install the c++ compiler.

Post Installation Steps

Steps1: After installation it will create a file i4cfg in /var/ifor run this file as below and answers for the questions as shown below.

# ./i4cfg -script
i4cfg Version 4.5.5 AIX -- LUM Configuration 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.

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
First we need to know the network names of the systems that are running
Network License Servers. Enter the names all on one line, each separated with a
blank.

  For example: deckard rachael nexus6.tyrell.com

Server network name(s): apps01    (Server Name)

Please specify the Central Registry License Server name: apps01    (Server Name)

Licensed applications usually use port number [1515] to locate License Servers.
This number has been assigned by the NIC organization.
If for some reason your environment can not use port [1515] change it now.

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

Licensed applications usually use port number [10999] to locate the Central Regi
stry License
Server. If for some reason your environment can not use port [10999] change it n
ow.

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

Now we need to know the network names of the systems that are running
Nodelock License Servers. Enter the names all on one line, each separated with a
 blank.

  For example: deckard louise nexus6.tyrell.com

Server network name(s): apps01    (Server Name)

The Administration Tool usually uses port number [12999] to locate Nodelock Lice
nse Servers.
If for some reason your environment can not use port [12999] change it now.
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 *

Step2: Perform the following  steps below to have no of licences

Go to directory /usr/vac and the copy the file c43aix_cn.lic
 To /var/ifor directory
Ex:
# pwd
/usr/vac
# cp c43aix_cn.lic /var/ifor/.

Step3: Go to /var/ifor and check the file permissions as below

#cd /var/ifor

# ls -al *.lic
-r--r--r--   1 root     system       955 Oct 18 16:40 c43aix_cn.lic

Step4: Give the permissions
# chmod 755 *.lic

Edit the file c43aix_cn.lic in vi editor and perform the changes mentioned in bold letters below

Add ./ at the before i4blt √Ľa -v

Replace 20 at number_of_licences and root with admin as shown below and save the file

# 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"

Step5: Run the above modified file c43aix_cn.lic as below

# ./c43aix_cn.lic

It will take some time to register the licence. Once it is finished then you will back to the prompt then the perform as below to set the path of C++ compiler in /etc/environment file.

Step6: Go to the subdirectory /usr/vac/bin and run the file replaceCSET

# pwd

/usr/vac/bin

# ls -al replace*
-r-x------   1 bin      bin         1362 Oct 24 1997  replaceCSET
# ./replaceCSET

To Test C++ Compiler

# vi test.c

#include<stdio.h>
main()
{
printf(" Welcome C++");
}

#cc test.c

it will create output file in the current directory

run the output file to get an output

#./out
Welcome C++#


Back to IBM: AIX FAQ Index
Back to IBM: AIX Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close