Installing Sourcery G++

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

Installing Sourcery G++ on Microsoft Windows

If you have received Sourcery G++ on CD, insert the CD in your computer. On most computers, the installer will start 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++, double-click on the installer.

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

Some versions of Sourcery G++ include the Eclipse Integrated Development Environment. Because Eclipse is an optional component, the installer will allow you to choose whether or not to install it. Eclipse is a Java application, so it 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.)

Caution

You should install the JRE before you install Sourcery G++ so that Sourcery G++ can automatically determine the location of your JRE. If you do not install the JRE first, Eclipse may not be able to find the JRE. In this case, you may reinstall Sourcery G++, or you may manually modify your installation as follows. Navigate the Start until you find the Sourcery G++ IDE. Right click on Sourcery G++ IDE and select Properties. Click the Shortcut tab and click in the Target field. Press the End key to move to the end of the field and adjust the path for javaw to contain the full path to the directory in which your JRE was installed. If you accepted the default installation directory, the correct value will be similar to C:\Program Files\Java\jre1.5.0_06\bin\javaw. The entire path name should be enclosed in quotation marks.

Installing Sourcery G++ on GNU/Linux or Solaris

You do not need to be a system administrator to install Sourcery G++ on a GNU/Linux or Solaris system. You may install Sourcery G++ 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++ in the codesourcery subdirectory of your home directory and that the filename of the package you have downloaded is /path/to/package.tar.bz2.

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