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. This package comes with a bundled Java Runtime Environment; you do not have to download any additional software.

Installing Sourcery G++ Lite on GNU/Linux systems with an X Window System

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. This package comes with a bundled Java Runtime Environment; you do not have to download any additional software.

Installing Sourcery G++ Lite on Solaris or GNU/Linux systems without an X Window System

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++-4.1 or similar.

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

If you are installing a native toolchain, it is then necessary to run a post-install script found in the share directory:

> /bin/sh sourceryg++-4.1/share/postinst-*

The .tar.bz2 package is not bundled with a Java Runtime Environment.

Installing the Java Runtime Environment

Some versions of Sourcery G++ include the Eclipse Integrated Development Environment. Because Eclipse is an optional component, the installer allows you to choose whether or not to install it. Eclipse is a Java application and requires the Java Runtime Environment (JRE). The Java Runtime Environment is available at no charge from Sun Microsystems Java website. You may download either the Java Runtime Environment (JRE) or the Java Development Kit (JDK). (The JDK includes the JRE.)