Installing Sourcery G++ Lite

The method used to install Sourcery G++ Lite depends on your host system.

Installing Sourcery G++ Lite on Microsoft Windows

If you have received Sourcery G++ Lite on CD, insert the CD in your computer. On most computers, the installer then starts automatically. If your computer has been configured not to automatically run CDs, open My Computer, and double click on the CD. If you downloaded Sourcery G++ Lite, double-click on the installer.

After the installer starts, follow the on-screen dialogs to install Sourcery G++ Lite.

If you prefer, you can run the installer in console mode rather than using the graphical interface. To do this, invoke the installer with the -i console command-line option. For example:

> /path/to/package.exe -i console

Using the Sourcery G++ Lite Installer on GNU/Linux Hosts

Start the graphical installer by invoking the executable shell script:

> /bin/sh ./path/to/package.bin

After the installer starts, follow the on-screen dialogs to install Sourcery G++ Lite.

If you prefer, or if your host system does not run the X Window System, you can run the installer in console mode rather than using the graphical interface. To do this, invoke the installer with the -i console command-line option. For example:

> /bin/sh ./path/to/package.bin -i console

Installing Sourcery G++ Lite on Solaris or GNU/Linux Hosts from a Compressed Archive

You do not need to be a system administrator to install Sourcery G++ Lite on a GNU/Linux or Solaris system. You may install Sourcery G++ Lite using any user account and in any directory to which you have write access. This guide assumes that you have decided to install Sourcery G++ Lite in the $HOME/CodeSourcery subdirectory of your home directory and that the filename of the package you have downloaded is /path/to/package.tar.bz2. After installation the toolchain will be in $HOME/CodeSourcery/sourceryg++-2008q3.

First, uncompress the package file:

> bunzip2 /path/to/package.tar.bz2

Next, create the directory in which you wish to install the package:

> mkdir -p $HOME/CodeSourcery

Change to the installation directory:

> cd $HOME/CodeSourcery

Unpack the package:

> tar xf /path/to/package.tar