2.4. Installing Sourcery CodeBench Lite
Prev | Chapter 2. Installation and Configuration | Next

## 2.4. Installing Sourcery CodeBench Lite

The method used to install Sourcery CodeBench Lite depends on your host system and the kind of installation package you have downloaded.

### 2.4.1. Using the Sourcery CodeBench Lite Installer on Microsoft Windows

If you have received Sourcery CodeBench 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 CodeBench Lite, double-click on the installer.

After the installer starts, follow the on-screen dialogs to install Sourcery CodeBench Lite. The installer is intended to be self-explanatory and on most pages the defaults are appropriate.

Running the Installer. The graphical installer guides you through the steps to install Sourcery CodeBench Lite.

You may want to change the install directory pathname and customize the shortcut installation.

Choose Install Folder. Select the pathname to your install directory.

Choose Shortcut Folder. You can customize where the installer creates shortcuts for quick access to Sourcery CodeBench Lite.

When the installer has finished, it asks if you want to launch a viewer for the Getting Started guide. Finally, the installer displays a summary screen to confirm a successful install before it exits.

Install Complete. You should see a screen similar to this after a successful install.

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

### 2.4.2. Using the Sourcery CodeBench 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 CodeBench Lite. For additional details on running the installer, see the discussion and screen shots in the Microsoft Windows section above.

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

### 2.4.3. Installing Sourcery CodeBench Lite from a Compressed Archive

You do not need to be a system administrator to install Sourcery CodeBench Lite from a compressed archive. You may install Sourcery CodeBench 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 CodeBench 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++-2013.05`.

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

Prev | Up | Next
2.3. Downloading an Installer | Home | 2.5. Installing Sourcery CodeBench Lite Updates