Compaq_C++____________________________________ Installation Guide for Compaq Tru64 UNIX Order Number: AA-PX2DH-TE June 1999 This guide describes how to install Compaq C++ (formerly DIGITAL C++) on an Alpha system running the Compaq Tru64 UNIX operating system. Revision/Update Information: This is a revised guide, replacing AA-PX2DG-TE Operating System & Version: Compaq Tru64 UNIX Version 4.0 or higher. Future maintenance releases may require higher versions. Software Version: Compaq C++ Version 6.2 Compaq Computer Corporation Houston, Texas __________________________________________________________ First Printing, March 1993 Revised, August 1993 Revised, May 1994 Revised, May 1995 Revised, March 1996 Revised, June 1997 Revised, December 1997 Revised, January 1999 Revised, September 1999 Revised, June 1999 The information in this document is subject to change without notice and should not be construed as a commitment by Digital Equipment Corporation. Digital Equipment Corporation assumes no responsibility for any errors that may appear in this document. The software described in this document is furnished under a license and may be used or copied only in accordance with the terms of such license. ©1993-1999 Digital Equipment Corporation. All Rights Reserved. Compaq, the Compaq logo, and Alpha, DEC, DEC FUSE, DECthreads, DECwindows, DIGITAL, Ladebug, OpenVMS, ULTRIX, VAX, and VMS, are Registered in the U.S. Patent and Trademark Office. The following are third-party trademarks: AT&T is a registered trademark of American Telephone and Telegraph Company. Motif and OSF/1 are registered trademarks of the Open Software Foundation, Incorporated. PostScript is a registered trademark of Adobe Systems, Incorporated. X Window System is a trademark of the Massachusetts Institute of Technology. UNIX is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company, Ltd. All other trademarks and registered trademarks are the property of their respective holders. This document is available on CD-ROM. ZK6400 This document was prepared using DECdocument, Version 3.2-1M. ________________________________________________________________ Contents Preface.................................................. v 1 Before You Start the Compaq C++ Installation 1.1 Reading the Online Release Notes................ 1-1 1.2 Registering Your Software License............... 1-2 1.3 Checking the Software Distribution Kit.......... 1-2 1.4 Checking Installation Procedure Requirements.... 1-3 1.4.1 Checking Login Privileges .................... 1-3 1.4.2 Checking Hardware Requirements ............... 1-3 1.4.3 Checking Software Requirements ............... 1-3 1.5 Determining Which Documentation Subsets to Load............................................ 1-5 1.6 Installing from Media or Using the Remote Installation Service............................ 1-5 1.7 Backing Up Your System Disk..................... 1-6 1.8 Stopping the Installation....................... 1-6 1.9 Checking Current Disk Space..................... 1-6 1.10 Increasing Disk Space by Using Alternative Disks ................................................ 1-7 2 Preparing for Compaq C++ Installation 2.1 Deleting Old Subsets............................ 2-1 2.2 Determining Which Subsets to Load............... 2-2 iii 3 Installing Compaq C++ 3.1 Using CD-ROM Software Product Library Media..... 3-1 3.2 Using a Remote Installation Service Distribution Area............................................ 3-2 3.3 Responding to Installation Procedure Prompts.... 3-2 3.3.1 Selecting Subsets ............................ 3-2 3.3.2 Monitoring Displays During the Subset Loading Process....................................... 3-3 4 After Installation 4.1 Running the Installation Verification Procedure ................................................ 4-1 4.2 Deleting Compaq C++ from Your System............ 4-1 A Sample Listings A.1 Sample Compaq C++ Installation on a Version 4.0 System.......................................... A-1 A.2 Sample Installation Verification Procedure on a Version 4.0 System.............................. A-4 B Files Installed on Your System C Recovering from Errors C.1 Failures During Product Installation ........... C-1 C.2 Failures During Product Use..................... C-4 Tables 1 Conventions Used in This Guide ............... vii B-1 Files Installed .............................. B-1 iv ________________________________________________________________ Preface This installation procedure creates Compaq C++ file systems subordinate to the /usr/lib, /usr/bin, and /usr/man directories. Keep this guide with your distribution kit. You will need it to install maintenance updates or to reinstall Compaq C++ for any other reason. Intended Audience This guide is intended for system managers who install Compaq C++. Associated Documentation In addition to this guide, the Compaq C++ documentation set includes the following: o Using Compaq C++ for Tru64 UNIX Describes the specifics of the Compaq C++ implementa- tion for Compaq Tru64 UNIX. o Compaq C++ Class Library Reference Manual Describes the class library packages supplied by Compaq with Compaq C++. o Compaq C++ command reference pages for Compaq Tru64 UNIX (cxx(1)) Provides reference information for Compaq C++ commands and libraries. o Stroustrup, Bjarne, The C++ Programming Language, 3nd Edition. Reading, Massachusetts: Addison-Wesley, 1997. v Provides an exhaustive introduction to the C++ programming language, including sophisticated language features. The following related documents are not included in the Compaq C++ documentation set. Please refer to these documents if you need additional information about Compaq Tru64 UNIX installation or system management, or the Ladebug debugger. o Guide to the Ladebug Debugger Describes how to use the Ladebug debugger. o Compaq Tru64 UNIX Guide to Installing Compaq Tru64 UNIX Explains how to install the Compaq Tru64 UNIX operating system. o Compaq Tru64 UNIX User's Guide Explains how to perform basic system administration tasks on Compaq Tru64 UNIX operating systems, including the instructions on how to do system backups. o Compaq Tru64 UNIX Guide to Sharing Software on a Local Area Network Explains how to use the remote installation service (RIS) utility and environment. o Guide to Software License Management Explains how to use the license management facility (LMF) utility in registering your license for Compaq C++. vi Conventions Table 1 describes the conventions used in this guide. Table_1_Conventions_Used_in_This_Guide____________________ Convention_____Meaning____________________________________ # A number sign (#) is the default superuser prompt. % A percent sign (%) is the default user prompt. In examples, a boxed symbol indicates that you must press the named key on the keyboard. Ctrl/C This symbol indicates that you must press the Ctrl key while you simultaneously press another key (in this case, C). user input In interactive examples, this typeface indicates input entered by the user. filesystem In text, this typeface indicates the exact name of a command, routine, partition, path name, directory, or file. This typeface is also used in interactive examples and other screen displays. UPPERCASE The Compaq Tru64 UNIX operating system lowercase differentiates between lowercase and uppercase characters. Examples, syntax descriptions, function definitions, and literal strings that appear in text must be typed exactly as shown. (continued on next page) vii Table_1_(Cont.)_Conventions_Used_in_This_Guide____________ Convention_____Meaning____________________________________ setld(8) Cross-references to online reference pages include the appropriate section number in parentheses. For example, setld(8) indicates that you can find the material on the setld command in Section 8 of the reference pages. [y] In a prompt, square brackets indicate that the enclosed item is the default response. For example, [y] means the default response _______________is_Yes.____________________________________ viii 1 ________________________________________________________________ Before You Start the Compaq C++ Installation Your distribution kit includes a letter titled Read Before Installing Compaq C++ for Compaq Tru64 UNIX. This letter discusses important information that might not be included in this guide. You should read this letter now. 1.1 Reading the Online Release Notes Compaq C++ provides both online and hardcopy release notes. Compaq strongly recommends that you read the release notes before using the product. The release notes may contain information about changes to the application. The release notes for Compaq C++ are in subset CXXBASEnnn, where nnn is a number representing the latest release of Compaq C++. For the number of latest subsets, see the Read Before Installing letter. This letter and the release notes are both included on the Media CD-ROM in the following directory: /cxxnnn/documentation Installing subset CXXBASEnnn moves the release notes to the following directory location: /usr/lib/cmplrs/cxx/DECCXXnnn.release-notes HTML files are also provided for the release notes and some of the product manuals for use with a web browser. See Section 1.5. Before You Start the Compaq C++ Installation 1-1 1.2 Registering Your Software License Compaq C++ includes support for the License Management Facility (LMF). You must register your License Product Authorization Key (License PAK) in the License Database (LDB) to use Compaq C++ on a newly licensed node. The License PAK may be shipped along with the kit if you ordered the license and media together; otherwise, it is shipped separately to a location based on your license order. If you are installing Compaq C++ as an update on a node already licensed for this software, you have already completed the License PAK registration requirements. If you are installing prerequisite or optional software along with Compaq C++, review the PAK status and install the PAKs for any prerequisite or optional software before you install Compaq C++. To register a license under the Compaq Tru64 UNIX operating system, first log in as superuser. At the superuser prompt, edit an empty PAK template with the lmf register command as follows, and include all the information on your License PAK: # lmf register After you register your license, use the following lmf reset command to copy the license details from the LDB to the kernel cache: # lmf reset For complete information on using the LMF, see the Guide to Software License Management and the lmf(8) reference page. 1.3 Checking the Software Distribution Kit Use the Bill of Materials (BOM) to check the contents of your Compaq C++ software distribution kit. In addition to this guide, the software distribution kit includes the following: o A CD-ROM optical disk for systems with optical disk drives 1-2 Before You Start the Compaq C++ Installation o A CD-ROM booklet and CD-ROM read first letter If your software distribution kit is damaged or incom- plete, contact your Compaq representative. 1.4 Checking Installation Procedure Requirements This section discusses various requirements for installing Compaq C++. Installing Compaq C++, including running the Installation Verification Procedure (IVP), takes approximately 5 to 10 minutes, depending on your type of media and system configuration. 1.4.1 Checking Login Privileges You must have superuser privileges to install the Compaq C++ software and to register the license PAK. 1.4.2 Checking Hardware Requirements To install Compaq C++, you need the following hardware: o Software distribution device (if installing from media) Locate the CD-ROM drive for the CD-ROM software distribution media. The CD-ROM booklet or the documentation for the CD-ROM drive you are using explains how to load the CD-ROM media. o Terminal You can use either a hardcopy or video terminal to communicate with the operating system and respond to prompts from the installation procedure. For additional hardware requirements, see the Compaq C++ Software Product Description (SPD) contained on the Media CD-ROM. 1.4.3 Checking Software Requirements Compaq C++ Version 6.2 requires the Compaq Tru64 UNIX operating system Version 4.0 or higher. Future Compaq C++ releases may require higher versions. See the Read Before Installing letter (included on the CD-ROM or the online release notes for information about the required minimum version of the operating system. Before You Start the Compaq C++ Installation 1-3 Compaq C++ requires that the following software subsets be loaded on the system where you install Compaq C++ (nnn is the number representing the latest release): o OSFBASEnnn-the "Base System" subset o OSFPGMRnnn-the "Software Development Environment" subset o OSFCMPLRSnnn-the "Compiler Back End" subset o OSFINCLUDEnnn-the system include files subset o CXLLIBAnnn-the archived class library subset To install the Compaq C++ reference pages (manual pages), the following software subset must be installed on the system where you install Compaq C++: o OSFDCMTnnn-the "Documentation for Reference Pages" subset To install X Motif header files for Compaq Tru64 UNIX software, the following software subset must be installed on the system where you install Compaq C++: o OSFXDEVnnn-the "X Window Software Development" subset To check whether these subsets are loaded: 1. Log in to the system where you will install Compaq C++. 2. Enter the following command: # setld -i | grep -E 'OSFBASE|OSFPGMR|OSFDCMT|OSFXDEV' If you do not log in as superuser (login name root), you must enter the full path of the command. For example: # /usr/sbin/setld -i | grep -E 'OSFBASE|OSFPGMR|OSFCMPLRS|OSFDCMT|OSFXDEV' On Compaq Tru64 UNIX Version 4.n systems, you should also specify OSFINCLUDE to check that the system include files subset is loaded. Check the displayed rows for the name of the relevant subset and any related patches. The word "installed" appears in a row after the subset identifier when a subset is loaded. If the word "installed" does not appear (the second column in a row is blank), the subset or patch is not loaded. In this case, you must load the missing Compaq 1-4 Before You Start the Compaq C++ Installation Tru64 UNIX software before installing Compaq C++. (For information on how to load the operating system software, see the Guide to Installing Compaq Tru64 UNIX .) 1.5 Determining Which Documentation Subsets to Load The Compaq C++ reference pages are automatically loaded when you install the base subset. In addition, you can load the following documentation subset: Compaq C++ HTML documentation (CXXHTML620) HTML files are provided for the release notes and some of the product manuals for use with a web browser. These files are installed by selecting the following subset: Compaq C++ HTML documentation To view this documentation, point your web browser to 1.6 Installing from Media or Using the Remote Installation Service Someone from your site must perform at least one Compaq C++ installation from the distribution medium. Your site system manager can then decide whether or not to make a Compaq C++ distribution kit available on line so that subsequent installations of Compaq C++ can use the Remote Installation Service (RIS). For information on extracting Compaq C++ subsets to a RIS distribution area, see the Guide to Sharing Software on a Local Area Network. If you expect to use Compaq C++ subsets from the RIS area of a remote system for installation on your local system, first check with your site system manager to ensure that: o A Compaq C++ network kit is available for use. o Your system is registered as a RIS client. If Compaq C++ subsets are available to you on a RIS server system, you must know the name of that system. For more information on installing Compaq C++ from a RIS distribution area, see Section 3.2. Before You Start the Compaq C++ Installation 1-5 1.7 Backing Up Your System Disk Compaq recommends that you back up your system disk before installing any software. For information about backing up your system disk, see the Compaq Tru64 UNIX system documentation. 1.8 Stopping the Installation To stop the installation procedure at any time, press Ctrl/C. You must then delete files created up to this point interactively. To get a list of the directories and files created during the Compaq C++ installation, use the following command: # /usr/sbin/setld -i subsetname In this command, subsetname is the name of the Compaq C++ subset that you have chosen to install. 1.9 Checking Current Disk Space To check the current amount of free space for a directory path, log in to the system where you will install Compaq C++. You can check which directories are mounted and where they are by viewing the /etc/fstab file. For example: # more /etc/fstab /dev/rd0a:/:rw:1:1:ufs:: /dev/rd0g:/usr:rw:1:2:ufs:: /usr/staff/r1/leslie@bigsys:/usr/staff/r1/leslie:rw:0:0:nfs:bg: /usr/man@bigsys:/usr/man:ro:0:0:nfs:bg: The display indicates that /usr (mounted to /dev/rd0g) is the only mount point that affects where Compaq C++ files will reside; the system has only one local disk drive, and the /usr/lib and file system reside in the g partition of the disk on that drive. To check the total space and the free space for the directories where Compaq C++ will reside, enter the df command. Given the previous display of the /etc/fstab file, which shows that only /usr is a mount point, you need to check free space only in the /usr file system. For example: 1-6 Before You Start the Compaq C++ Installation # df /usr Filesystem Total kbytes kbytes % node kbytes used free used Mounted on /dev/rd0g 122598 54447 55892 49% /usr This display shows that there are 55,892 Kbytes free. For space requirements to install this product, see the Software Product Description for Compaq C++ for Compaq Tru64 UNIX. On systems where /usr/lib and /usr/man are mounted to different devices from /usr, enter the following command: # df /usr/lib /usr/man In this case, you compare space required for Compaq C++ files in /usr/lib to the free space displayed in the first line of the df output list, and compare the space required for Compaq C++ files in /usr/man to the free space displayed in the second line of that list. 1.10 Increasing Disk Space by Using Alternative Disks The Compaq C++ installation procedure creates the following directories and loads files into subordinate directories: /usr/include/cxx /usr/lib/cmplrs/cxx If the /usr/lib/cmplrs and /usr/include directory nodes in the previous paths do not exist, the installation procedure creates and uses them. If you find that there is insufficient disk space for the Compaq C++ subsets and you know that you have additional space on alternative disks or disk partitions for your system, perform the following steps before installing Compaq C++: 1. Log in as superuser. 2. Create the directory /usr/lib/cmplrs. 3. Specify in the /etc/fstab file that one or more of the newly created directories are mount points to new disk partitions where there is additional space. Before You Start the Compaq C++ Installation 1-7 4. Enter the mount -a command so that the new mount points take effect. 1-8 Before You Start the Compaq C++ Installation 2 ________________________________________________________________ Preparing for Compaq C++ Installation This chapter describes the special requirements necessary to install Compaq C++ on Version 4.0 and higher systems. 2.1 Deleting Old Subsets Before you can install any of the Compaq C++ subsets, you should delete all old subsets, except as noted in this section. To delete subsets, take the following steps: 1. Log in as superuser (login name root). 2. Using the setld -i command, list the subsets installed on your system and check for the presence of any subset. For example: # /usr/sbin/setld -i | grep CXX | grep installed 3. To delete all of the old CXX subsets found, enter the setld -d command. For example: # /usr/sbin/setld -d CXXBASEA570 4. Using the setld -i command, check for the presence of the debugger subsets, OSFLDBBASEnnn and OSFLDBGUInnn. For example: # /usr/sbin/setld -i | grep LDB | grep installed Delete debugger subsets only if nnn is not 444 or a higher number. For example: # /usr/sbin/setld -d OSFLDDBASE439 OSF OSFLDBGUI439 Preparing for Compaq C++ Installation 2-1 2.2 Determining Which Subsets to Load When you invoke the installation procedure you will be given choices of which Compaq C++ subsets to load. The following subset is required to use Compaq C++ (nnn is a number representing the latest release; see the Read Before Installing letter for details): CXXBASEnnn Compaq C++ (cxx) for Compaq Tru64 UNIX The following subset generally is required on operating system versions prior to Version 4.0D: CXXLIBnnn Compaq C++ Run-Time Library (libcxx) for Version 4.0C and earlier See "Important Compatibility Information" in the release notes concerning the Run-Time Library subset. Optionally, you can also install an updated version of the Version 5.7 compiler by selecting the following subset: CXXOLDnnn Compaq C++ Version 5.7 (-oldcxx) compiler If you install this subset, you can invoke the Version 5.7 compiler and enter the cxx -oldcxx command. By default, the (cxx) command runs the Version 6.2 compiler. Note that you must install the CXXBASEnnn subset if you want to install the CXXOLDnnn subset. The following subsets are required if you want to debug C++ programs: OSFLDBBASEV40nnnLadebug debugger LDBDOCV40nnn Ladebug release notes OSFLDBGUIV40nnn Ladebug debugger window interface If you deleted any of these subsets (because they were old-see Section 2.1), you should install the latest versions from the current kit. The following online documentation subset is optional: CXXHTMLnnn Compaq C++ HTML documentation 2-2 Preparing for Compaq C++ Installation 3 ________________________________________________________________ Installing Compaq C++ This chapter describes how to install Compaq C++. Before you start the installation, read Chapter 1. You can install Compaq C++ locally (using CD-ROM media) or from a server area. You can usually complete an installation in about 5 minutes. If you encounter any failures during installation, see Appendix C. 3.1 Using CD-ROM Software Product Library Media This procedure loads Compaq C++ files on to a disk belong- ing to the system where you perform the installation. When Compaq C++ is run, its executable images are mapped into memory on your system. Follow these steps to install Compaq C++ from CD-ROM media: 1. Mount the media on the appropriate disk drive. 2. Log in as superuser (login name root) to the system where you will install Compaq C++. 3. Specify the /cdrom directory to be the mount point for the distribution file system on the drive. If your drive is ral, enter the following command: # mount -dr /dev/ralc /cdrom 4. Enter a setld command that requests the load function (-l) and identifies the directory in the mounted file system where Compaq C++ subsets are located. For example, if the directory location for these subsets is /cdrom/cxxnnn/kit, enter the following command: # /usr/sbin/setld -l /cdrom/cxxnnn/kit Installing Compaq C++ 3-1 The installation procedure now displays the names of Compaq C++ subsets and asks you to specify the subsets you want to load. See Section 3.3 to continue the installation. 3.2 Using a Remote Installation Service Distribution Area If you are installing Compaq C++ subsets that reside in a /etc/ris Remote Installation Service (RIS) distribution area on a remote system, follow these steps: 1. Log in as superuser (login name root) to the system where you will install Compaq C++. 2. Enter a setld command that requests the load function (-l option) and identifies the system where the Compaq C++ subsets are located. For example, if you are loading Compaq C++ subsets from a RIS distribution area, enter the following: # setld -l node: Replace node: with the node name where the Compaq C++ subsets are located. RIS now displays a menu that lists all the software subsets available to you and asks you to specify the subsets you want to load. See Section 3.3 to continue the installation. 3.3 Responding to Installation Procedure Prompts This section explains the installation procedure prompts and displays. 3.3.1 Selecting Subsets You must specify which Compaq C++ subsets you want to load by choosing them from a menu or list of subset section options. The number and kinds of subset options you have will vary depending on the version of Compaq Tru64 UNIX you are using. See Section 2.2. ________________________Note ________________________ If you are installing from a RIS distribution area, the number of subsets can vary depending on what 3-2 Installing Compaq C++ products are available in the RIS area and how many subsets they have. _____________________________________________________ If you specify more than one number at the Choices prompt, separate each number with a space, not a comma. The installation script (see Appendix A) lets you verify your choice. If you enter a number or numbers in response to the Choices prompt, you will see a display of your choices, preceded by the following: You are installing the following optional subsets: You will then be prompted to verify your choice, as follows: Is this correct? (y/n): If the displayed subsets are not the ones you intended to choose, enter n. In this case, the subset selection menu is again displayed and you can correct your choice of optional subsets. If the displayed subsets are the ones you want to load, enter y. 3.3.2 Monitoring Displays During the Subset Loading Process The installation procedure loads and verifies the selected Compaq C++ subsets. When you see the "Verifying" message during the subset installation, the installation procedure is checking to see that the files are copied correctly; it is not an Installation Verification Procedure (IVP) message. During the installation, if you get errors from the setld utility, see the DIAGNOSTICS section of the setld(8) reference page for an explanation of the errors and the appropriate actions to take. Chapter 4 explains how to run the Installation Verification Procedure (IVP) after installation, and how to delete old Compaq C++ subsets before installing a new version of Compaq C++. Installing Compaq C++ 3-3 4 ________________________________________________________________ After Installation This chapter explains what you need to do after the installation to make Compaq C++ ready for use. 4.1 Running the Installation Verification Procedure After installing Compaq C++, you can run the Installation Verification Procedure (IVP) independently to verify that the software is available on your system. You might also want to run the IVP after a system failure to be sure that users can still access Compaq C++. To run the IVP after an installation, enter the following command: # setld -v subsetname In this command, subsetname can be any Compaq C++ subset. For a sample Compaq C++ IVP, see Appendix A. If the verification process fails, look in the /var/adm/smlogs/fverify.log file for information to help diagnose the problem. 4.2 Deleting Compaq C++ from Your System If you must remove a version of Compaq C++ from your system, delete each subset that you previously installed. To delete subsets: 1. Log in as superuser (login name root). 2. Enter the following form of the setld command: # /usr/sbin/setld -i | grep -E CXX | grep installed 3. Delete the installed subsets. For example: # setld -d subsetnamennn subsetnamennn After Installation 4-1 A ________________________________________________________________ Sample Listings This appendix provides sample listings for the following procedures: o An installation of Compaq C++ on Compaq Tru64 UNIX Version 4.n using disk media o An Installation Verification Procedure (IVP) on Compaq Tru64 UNIX Version 4.n A.1 Sample Compaq C++ Installation on a Version 4.0 System The following listing shows a basic installation of Compaq C++ on a Version 4.0 system using CD-ROM media. For the directory variable, you must supply a disk path name or the directory location posted with the CD-ROM media. # setld -l CXX620/kit The subsets listed below are optional: There may be more optional subsets than can be presented on a single screen. If this is the case, you can choose subsets screen by screen or all at once on the last screen. All of the choices you make will be collected for your confirmation before any subsets are installed. 1) Compaq C++ HTML documentation 3) Compaq C++ V5.7 (-oldcxx) compiler 4) Compaq C++ Version 6.2 for Compaq Tru64 UNIX systems 5) Ladebug Debugger Version 4.0-48 Release Notes 6) Ladebug Debugger Version 4.0-48 7) Ladebug Debugger graphical user interface --- MORE TO FOLLOW --- Enter your choices or press RETURN to display the next screen. Choices (for example, 1 2 4-6): 1-4 Or you may choose one of the following options: Sample Listings A-1 8) ALL of the above 9) CANCEL selections and redisplay menus 10) EXIT without installing any subsets Add to your choices, choose an overriding action or press RETURN to confirm previous selections. Choices (for example, 1 2 4-6): 1-4 You are installing the following optional subsets: Compaq C++ HTML documentation Compaq C++ Run-Time Library (libcxx) for UNIX V4.0F and earlier Compaq C++ V5.7 (-oldcxx) compiler Compaq C++ Version 6.2 for Tru64 UNIX Systems Is this correct? (y/n): y Checking file system space required to install selected subsets: File system space checked OK. 4 subset(s) will be installed. Loading 1 of 4 subset(s).... Ladebug Debugger Version 4.0 is currently installed. Copyright 1993, 1998 Digital Equipment Corporation. All rights reserved. Government notice: Restricted Rights: Use, duplication, or disclosure by the U.S. Government is subject to restrictions as set forth in subparagraph (c) (1) (ii) of DFARS 252.227-7013, or in FAR 52.227-19, or in FAR 52.227-14 Alt. III, as applicable. Licensing notice: This software is proprietary to and embodies the confidential technology of Digital Equipment Corporation. Possession, use, or copying of this software and media is authorized only pursuant to a valid written license from Digital or an authorized sublicensor. Compaq C++ for TRU64 UNIX Systems includes support for the License Management Facility. A Product Authorization Key (PAK) is necessary for use of this product. Information on registering and activating the PAK is available in the Compaq C++ Installation Guide or the 'Guide to Software Licensing', which is part of the Tru64 UNIX Systems documentation set. A-2 Sample Listings Installation of this subset proceeds automatically, and should complete in approximately 1 minute. Compaq C++ Version 6.2 for Tru64 UNIX Systems Copying from CXX620/kit (disk) Verifying Loading 2 of 4 subset(s).... Installation of this subset proceeds automatically, and should complete in less than 1 minute. Compaq C++ HTML documentation Copying from CXX620/kit (disk) Verifying Loading 3 of 4 subset(s).... Installation of this subset proceeds automatically, and should complete in less than 1 minute. Compaq C++ Run-Time Library (libcxx) for UNIX V4.0F and earlier Copying from CXX620/kit (disk) Verifying Loading 4 of 4 subset(s).... Installation of this subset proceeds automatically, and should complete in less than 1 minute. Compaq C++ V5.7 (-oldcxx) compiler Copying from CXX620/kit (disk) Verifying 4 of 4 subset(s) installed successfully. CXXBASE620 software installed successfully. Configuring "Compaq C++ Version 6.2 for Tru64 UNIX Systems" (CXXBASE620) CXXHTML620 software installed successfully. Configuring "Compaq C++ HTML documentation" (CXXHTML620) CXXLIB620 software installed successfully. Sample Listings A-3 Configuring "Compaq C++ Run-Time Library (libcxx) for UNIX V4.0F and earlier" (CXXLIB620) CXXOLD620 software installed successfully. Configuring "Compaq C++ V5.7 (-oldcxx) compiler" (CXXOLD620) A.2 Sample Installation Verification Procedure on a Version 4.0 System The following listing shows a sample installation verification on Version 4.0 system. # setld -v CXXBASE620 CXXHTML620 CXXMAN620 CXXV4HDR620 Compaq C++ for Tru64 UNIX Systems (CXXBASE620) Copyright 1993, 1999 Digital Equipment Corporation. All rights reserved. Compaq C++ Version 6.2 for Tru64 UNIX Systems: compiling an iostream program. Compaq C++ for Tru64 UNIX Systems installation verified. Compaq C++ for Tru64 UNIX Systems has been installed. A-4 Sample Listings B ________________________________________________________________ Files Installed on Your System The following listing shows the directory structure on a Compaq Tru64 UNIX system. /usr/ bin/ cxx demangle include/ cxx/ lib/ cmplrs/ cxx/ man/ man1/ man3/ share/doclib/cplusplus/ Table B-1 describes the contents of Compaq C++ directories. Table_B-1_Files_Installed_______________________________________ Directory_____________Subdirectories___Description______________ /usr/bin/ Links for command names /usr/include/cxx/ Compaq C++ header files /usr/lib/cmplrs/ cxx/ Commands and libraries /usr/lib/ libcxxstd.a - archived library /usr/man/ man1/ Compaq C++ reference man3/ pages /usr/share/doclib/cplusplus/ HTML files ________________________________________________________________ Files Installed on Your System B-1 C ________________________________________________________________ Recovering from Errors This appendix provides information to help you deal with failures or errors that might occur during product installation or product use. If you find an error in the documentation, report it to the following Internet address: cxx_docs@bookie.enet.dec.com Include the title of the document, section and page number where the error occurred. C.1 Failures During Product Installation If errors occur during the installation, the system dis- plays failure messages. For example, if the installation fails due to insufficient disk space, a message like the following appears: There is not enough space for subset subset-name subset-name (subset-description) will not be loaded. Errors can occur during the installation if any of the following conditions exist: o The operating system version is incorrect. o The prerequisite software version is incorrect. o There is insufficient disk space. o The system parameter values for successful installation are insufficient. For descriptions of error messages generated by these conditions, see the Compaq Tru64 UNIX documentation on system messages, recovery procedures, and Compaq Tru64 UNIX software installation. For information on system software requirements, see Section 1.4.3. Recovering from Errors C-1 Following are error messages you might encounter during installation, along with explanations and suggested corrective steps. Messages for CXXBASE620 Subset will not be installed on this version of the operating system. This subset must be installed only on Compaq Tru64 UNIX Version n.n or later. Explanation: Tried to install CXXBASEnnn on Version n.n or earlier. This is not supported. For Subset to be installed you must install the Standard Programmer Commands subset for Compaq Tru64 UNIX n.n or higher (OSFPGMRnnn) User Action: Install the Standard Programmer Commands (OSFPGMRnnn) subset. For Subset to be installed you must install the Compiler Back End subset for Compaq Tru64 UNIX n.n or higher (OSFCMPLRSnnn) User Action: Install the Compiler Back End (OSFCMPLRSnnn) subset. This includes the C compiler, cpp, ld, and so on. You must remove currently installed CXXBASEnnn before installing Subset User Action: You cannot install "on top" of existing subset. Enter the command setld -d CXXBASEnnn first. For Subset to be installed you must first de-install older CXX subsets. Try: setld -i | grep CXX | grep installed User Action: Deinstall older CXX subsets. Ladebug V4.0 does not appear to be currently installed. It is recommended that the Ladebug debugger supplied with this kit (or newer) be installed for best results when debugging with Compaq Tru64 UNIX VERSION. User Action: Install Ladebug Version 4.0 or later to debug C++. C-2 Recovering from Errors The installation verification procedure has failed. Please verify that CXXSHRDAnnn, CXXBASEnnn, and CXXHRDAnnn are correctly installed. Explanation: A simple compilation test is run after the installation. If this failed, it could be because of a failure in the installation of the listed subsets or possibly a missing or expired PAK. Messages for CXXLIB620 Subset will not be installed on this version of the operating system This subset must be installed only on Compaq Tru64 UNIX n.n or later Explanation: Tried to install CXXLIBnnn on Version 3.2 or earlier. This is not supported. Messages for CXXHTML620 Subset will not be installed on this version of the operating system This subset must be installed only on Compaq Tru64 UNIX n.n or later Explanation: Tried to install CXXHTMLnnn on Version 3.2 or earlier. This is not supported. Subset will not be installed if CXXREDISTnnn subset is installed. Please de-install any previously installed CXXREDISTnnn subsets. User Action: The CXXLIB subset cannot be installed if the C++ Run-Time Library Redistribution (CXXREDISTnnn) is loaded. The user must first delete that subset using the command setld -d. Messages for CXXOLD620 Subset will not be installed on this version of the operating system This subset must be installed only on Compaq Tru64 UNIX n.n or later. Explanation: Tried to install CXXOLDnnn on Version 3.2 or earlier. This is not supported. Subset will not be installed without the Compaq Tru64 UNIX VERSION Base subset. Explanation: You cannot install the -oldcxx compiler without the C++ base subset. Recovering from Errors C-3 C.2 Failures During Product Use If an error occurs while Compaq C++ is in use and you believe the error is caused by a problem with the product, please report it to Compaq. If you have a Software Product Services Support Agreement, contact your Customer Support Center (CSC) by telephone or by using the electronic means provided with your support agreement (such as DSNlink). The CSC provides telephone support for high-level advisory and remedial assistance. When you initially contact the CSC, indicate the following: o The name and version number of the operating system you are using o The version number of Compaq C++ you are using o The hardware system you are using (such as a model number) o A brief description of the problem (one sentence if possible) o How critical the problem is Whether you submit information electronically or contact the appropriate support specialist by telephone, please take the following steps: 1. Describe as accurately as possible the circumstances and state of the system when the problem occurred. Include the description and version number of the Compaq C++ compiler being used. Demonstrate the problem with specific examples. 2. Reduce the problem to as small a size as possible. 3. Remember to include listings of any command files, INCLUDE files, or relevant data files, and so forth. 4. Provide a listing of the program. 5. If the program is longer than 50 lines, submit a copy of it on machine-readable media (diskette or magnetic tape). If necessary, also submit a copy of the program library used to build the application. C-4 Recovering from Errors For information about submitting media, see the tar(1) reference page. 6. Report only one problem per report. This facilitates a faster response. 7. Mail the problem report to Compaq. If the problem is related to Compaq C++ documentation, you can report the problem to the CSC (if you have a Software Product Services Support Agreement and the problem is severe); otherwise, send your comments about Compaq C++ documentation to the following Internet address: cxx_docs@bookie.enet.dec.com If you have access to a FAX machine, you can also send comments or suggestions to: Compaq C++ Documentation, ZKO2-3/K35 603-884-0120 Recovering from Errors C-5