AIXDebuggerInstallation

How to install the AIX debugger and development tools

This is a request that comes back again and again from my users: "Please install the dbx debugger on machine so-and-so". So, if you have ever wondered how to do it... Here it is!

If you need more information on how to install software packages on AIX, please check the following page: AIXInstallSoftwarePackage.

The development tools and the AIX debugger are all on the AIX installation CD 1 and are contained in the package named bos.adt. This package installs, among others the dbx debugger (and many other things).

If you have ever wondered what "bos", "adt" and others really mean, here is a little crash-course in AIX-speak:

NameTranslation
BOSBase Operating System
ADTApplication Development Tools

In order to install all these tools, two files: bos.adt and bos.adt.data must be copied on the target machine.

On the first AIX installation CD, these packages can be found under the path /installp/ppc/. For instance, if the CD is mounted under /mnt, the complete path would be: /mnt/installp/ppc.

For instance, here is a screen capture of these files on an AIX 5.3 machine:

-bash-3.00$ ls -alF
total 48832
drwxr-xr-x   2 andre    interne         256 Mar 07 15:53 ./
drwx------   6 andre    interne        4096 Mar 06 16:19 ../
-rw-r--r--   1 andre    interne    24928256 Mar 07 15:36 bos.adt
-rw-r--r--   1 andre    interne       60416 Mar 07 15:36 bos.adt.data

The next step, once the packages have been copied on the target machine, is to enter the following command:

/usr/lib/instl/sm_inst installp_cmd -a -Q -d '/home/andre/packages' -f '_all_latest'  '-c'  '-g' '-X' '-G' '-V 2' '-Y'

This command should give the following output:

	bash-3.00# /usr/lib/instl/sm_inst installp_cmd -a -Q -d '/home/andre/packages' -f '_all_latest'  '-c'  '-g' '-X' '-G' '-V 2' '-Y'
	geninstall -I "a -cgQqwXY -V 2 -J"  -Z   -d /home/andre/packages -f File 2>&1

	File:
	    I:bos.adt.debug                5.3.7.0
	    I:bos.adt.graphics             5.3.7.0
	    I:bos.adt.libm                 5.3.7.0
	    I:bos.adt.data                 5.3.0.0
	    I:bos.adt.utils                5.3.7.0
	    I:bos.adt.samples              5.3.7.0
	    I:bos.adt.prof                 5.3.7.0
	    I:bos.adt.libmio               5.3.7.0
	    I:bos.adt.prt_tools            5.3.0.0
	    I:bos.adt.sccs                 5.3.7.0
	    I:bos.adt.syscalls             5.3.7.0
	    I:bos.adt.insttools            5.3.7.0


	+-----------------------------------------------------------------------------+
			    Pre-installation Verification...
	+-----------------------------------------------------------------------------+
	Verifying selections...done
	Verifying requisites...done
	Results...

	SUCCESSES
	---------
	  Filesets listed in this section passed pre-installation verification
	  and will be installed.
	    -- Filesets are listed in the order in which they will be installed.
	    -- The reason for installing each fileset is indicated with a keyword
	       in parentheses and explained by a "Success Key" following this list.

	  bos.adt.utils 5.3.7.0 (Selected)
	    Base Application Development Utilities - lex and yacc

	  bos.adt.syscalls 5.3.7.0 (Selected)
	    System Calls Application Development Toolkit

	  bos.adt.sccs 5.3.7.0 (Selected)
	    SCCS Application Development Toolkit

	  bos.adt.samples 5.3.7.0 (Selected)
	    Base Operating System Samples

	  bos.adt.prt_tools 5.3.0.0 (Selected)
	    Printer Support Development Toolkit

	  bos.adt.prof 5.3.7.0 (Selected)
	    Base Profiling Support

	  bos.adt.libmio 5.3.7.0 (Selected)
	    Modular IO Library

	  bos.adt.libm 5.3.7.0 (Selected)
	    Base Application Development Math Library

	  bos.adt.insttools 5.3.7.0 (Selected)
	    Tool to Create installp Packages

	  bos.adt.graphics 5.3.7.0 (Selected)
	    Base Application Development Graphics Include Files

	  bos.adt.debug 5.3.7.0 (Selected)
	    Base Application Development Debuggers

	  bos.adt.data 5.3.0.0 (Selected)
	    Base Application Development Toolkit Data


	  Success Key:
	  Selected    -- Explicitly selected by user for installation.
	  Maintenance -- Maintenance Level fileset update; being installed
			 automatically to enable the level of the system to be
			 tracked.
	  Mandatory   -- Considered to be important to the system; will always
			 be installed when detected on the installation media.
	  Requisite   -- Requisite of other filesets being installed.
	  P_Requisite -- Previously installed fileset's requisite; being installed
			 automatically now to ensure system's consistency.  (Only
			 installed automatically when "auto-install" (-g flag)
			 is specified.)
	  Supersedes  -- Superseding fileset update; not selected, chosen instead
			 of an older, selected update.  (Only chosen in this fashion
			 when "auto-install" is specified (-g flag)).

	  << End of Success Section >>

	+-----------------------------------------------------------------------------+
			   BUILDDATE Verification ...
	+-----------------------------------------------------------------------------+
	Verifying build dates...done
	FILESET STATISTICS
	------------------
	   12  Selected to be installed, of which:
	       12  Passed pre-installation verification
	  ----
	   12  Total to be installed

	+-----------------------------------------------------------------------------+
				 Installing Software...
	+-----------------------------------------------------------------------------+

	installp:  APPLYING software for:
		bos.adt.utils 5.3.7.0
		bos.adt.syscalls 5.3.7.0
		bos.adt.sccs 5.3.7.0
		bos.adt.samples 5.3.7.0
		bos.adt.prt_tools 5.3.0.0
		bos.adt.prof 5.3.7.0
		bos.adt.libmio 5.3.7.0
		bos.adt.libm 5.3.7.0
		bos.adt.insttools 5.3.7.0
		bos.adt.graphics 5.3.7.0
		bos.adt.debug 5.3.7.0


	. . . . . << Copyright notice for bos.adt >> . . . . . . .
	 Licensed Materials - Property of IBM

	[... Here there is a huge list of copyrights...]

	. . . . . << End of copyright notice for bos.adt >>. . . .

	Filesets processed:  11 of 12  (Total time:  6 secs).

	installp:  APPLYING software for:
		bos.adt.data 5.3.0.0


	. . . . . << Copyright notice for bos.adt >> . . . . . . .
	 Licensed Materials - Property of IBM

	 5765G0300
	   (C) Copyright International Business Machines Corp. 1987, 2004.
	   (C) Copyright AT&T 1984, 1985, 1986, 1987, 1988, 1989.
	   (C) Copyright Regents of the University of California 1982, 1983, 1986, 1987.
	   (C) Copyright INTERACTIVE Systems Corporation 1983.
	   (C) Copyright Silicon Graphics, Inc. 1987.
	   (C) Copyright Sun Microsystems, Inc. 1988.

	 All rights reserved.
	 US Government Users Restricted Rights - Use, duplication or disclosure
	 restricted by GSA ADP Schedule Contract with IBM Corp.
	. . . . . << End of copyright notice for bos.adt >>. . . .

	Finished processing all filesets.  (Total time:  6 secs).

	+-----------------------------------------------------------------------------+
					Summaries:
	+-----------------------------------------------------------------------------+

	Installation Summary
	--------------------
	Name                        Level           Part        Event       Result
	-------------------------------------------------------------------------------
	bos.adt.utils               5.3.7.0         USR         APPLY       SUCCESS
	bos.adt.syscalls            5.3.7.0         USR         APPLY       SUCCESS
	bos.adt.sccs                5.3.7.0         USR         APPLY       SUCCESS
	bos.adt.samples             5.3.7.0         USR         APPLY       SUCCESS
	bos.adt.prt_tools           5.3.0.0         USR         APPLY       SUCCESS
	bos.adt.prof                5.3.7.0         USR         APPLY       SUCCESS
	bos.adt.libmio              5.3.7.0         USR         APPLY       SUCCESS
	bos.adt.libm                5.3.7.0         USR         APPLY       SUCCESS
	bos.adt.insttools           5.3.7.0         USR         APPLY       SUCCESS
	bos.adt.graphics            5.3.7.0         USR         APPLY       SUCCESS
	bos.adt.debug               5.3.7.0         USR         APPLY       SUCCESS
	bos.adt.data                5.3.0.0         SHARE       APPLY       SUCCESS

If you'd like to use smitty, simply enter: smitty install_all and enter the path where the packages are on the very first smitty screen.

Once the installation has completed, you can check the installation with the following command:

bash-3.00# lslpp -al | grep -i debug
  bos.adt.debug              5.3.7.0  COMMITTED  Base Application Development

Or, in a more detailed way:

bash-3.00# lslpp -al | grep -i bos.adt
bos.adt.base               5.3.7.0  COMMITTED  Base Application Development
bos.adt.debug              5.3.7.0  COMMITTED  Base Application Development
bos.adt.graphics           5.3.7.0  COMMITTED  Base Application Development
bos.adt.include            5.3.7.0  COMMITTED  Base Application Development
bos.adt.insttools          5.3.7.0  COMMITTED  Tool to Create installp
bos.adt.lib               5.3.0.60  COMMITTED  Base Application Development
bos.adt.libm               5.3.7.0  COMMITTED  Base Application Development
bos.adt.libmio             5.3.7.0  COMMITTED  Modular IO Library
bos.adt.prof               5.3.7.0  COMMITTED  Base Profiling Support
bos.adt.prt_tools          5.3.0.0  COMMITTED  Printer Support Development
bos.adt.samples            5.3.7.0  COMMITTED  Base Operating System Samples
bos.adt.sccs               5.3.7.0  COMMITTED  SCCS Application Development
bos.adt.syscalls           5.3.7.0  COMMITTED  System Calls Application
bos.adt.utils              5.3.7.0  COMMITTED  Base Application Development
bos.adt.data               5.3.0.0  COMMITTED  Base Application Development

Finally, you can also use the which command:

bash-3.00# which dbx
/usr/bin/dbx

PLEASE NOTE All of the above also works for AIX 6.1.