Next: , Previous: Download, Up: Installation



4.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 -

Some binary distributions are now distributed packed with bzip2. You can recognize them by their file name suffix .bz2 instead of .gz. For such archives, make sure you have bunzip2 installed and then use the following command:

     # cd /
     # tar xjf archive.tar.bz2

Or:

     # cd /
     # bunzip2 -c -d archive.tar.bz2 | 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:

To install a ZIP archive under DOS with PKunzip, cd to 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 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.