[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

## 5.2 Installation instructions for a GPC binary distribution

To install a binary distribution, `cd` to the root directory and unpack the archive while preserving the stored directory structure. Under a Unix compatible system with GNU `tar` installed, the following (performed as ``root'`) will do the job:

    # cd /
    # tar xzf archive.tar.gz

If you are using a ``tar'` utility other than GNU `tar`, it might be necessary to do the above in an explicit pipe:

    # cd /
    # gzip -c -d archive.tar.gz | tar xf -

If you want to install a GPC binary distribution in another directory than it was prepared for (for example, if you do not have root access to the computer and want to install GPC somewhere under your home directory), you can do the following:

- Unpack the archive file in a directory of your choice (see above).
- ``cd'` to the "prefix" directory of the distribution (for instance ``usr/local'`).
- Run the script `install-gpc-binary`, available from http://www.gnu-pascal.de/current/binary/.
- Follow the instructions in the script.

To install a ZIP archive under DOS with ``PKunzip'`, ``cd'` the the appropriate directory (usually ``\'` for EMX, ``\DJGPP'` for DJGPP), then call ``PKunzip'` with the ``-d'` option:

    C:\> cd djgpp
    C:\DJGPP> pkunzip -d archive.zip

where ``archive.zip'` is the name of the distribution file.

For DJGPP you must edit your ``djgpp.env'` in the ``DJGPP'` directory to complete the installation: Please copy the entries from ``[gcc]'` to create a new ``[gpc]'` section. The result may look as follows:

    [gcc]
    COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin
    LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib

    [gpc]
    COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin
    LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib

If you are using the DJGPP version of GPC but do not have a ``DJGPP'` directory, please download and install DJGPP (see section 5.1 Where and what to download).

Binary distributions include ``libgcc.a'` and ``specs'`, files that are normally part of GCC. If you have GCC installed, they will be replaced unless you manually install the archive.

[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

This document was generated by Frank Heckenbach on May, 10 2002 using texi2html