The first step is to become the root user. Enter the super user command followed by the root password. For example:
$ su Password: PASSWORD #
The next step is to insert the GCC-1750 CD-ROM into the CD-ROM drive. You may use a drive attached to your local system, or to a remote system on the network.
You will require approximately 20 Mbytes of disk space to complete the installation. To check disk space, use the df -kl command:
# df -kl /opt Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t3d0s0 435863 331391 60892 85% / #
You may now install GCC-1750 Version 1.2 as follows. The package name is 'XGCm1750':
# pkgadd -d \ /cdrom/xgc1750_1_2/dist/gcc-1750-1.2-sparc-sun-solaris2.5.pkg The following packages are available: 1 XGCm1750 C/C++ Compilation System for M1750 target (sparc) 1.2 Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]: Processing package instance <XGCm1750> from </cdrom... > C/C++ Compilation System for M1750 target (sparc) 1.2 ---------------------------------------------------------------------- Copyright (c) 1999, Chris Nettleton Software GCC-1750 is commercial non-proprietary software developed under contract with the European Space Agency and distributed under the terms of the GNU Public License. ---------------------------------------------------------------------- ## Processing package information. ## Processing system information. 5 package pathnames are already properly installed. ## Verifying disk space requirements. ## Checking for conflicts with packages already installed. ## Checking for setuid/setgid programs. Installing C/C++ Compilation System for M1750 target as <XGCm1750> ## Installing part 1 of 1. /opt/xgc/bin/m1750-coff-addr2line /opt/xgc/bin/m1750-coff-ar /opt/xgc/bin/m1750-coff-as /opt/xgc/bin/m1750-coff-c++ ...lots of output... /opt/xgc/m1750-coff/bin/strip <linked pathname> Installation of <XGCm1750-coff> was successful. #
Users of GCC-1750 will need to add the directory /opt/xgc/bin to their path.
You can un-install GCC-1750 as follows:
# pkgrm XGCm1750 The following package is currently installed: XGCm1750 C/C++ Compilation System for M1750 target (sparc) 1.2 Do you want to remove this package? y ## Removing installed package instance <XGCm1750> ## Verifying package dependencies. ## Processing package information. ## Removing pathnames in class <none> /opt/xgc/m1750-coff/src/libpthread/src/sleep.c /opt/xgc/m1750-coff/src/libpthread/src/sched_yield.c ...lots of output ## Updating system information. Removal of <XGCm1750> was successful. #