Go to the first, previous, next, last section, table of contents.

GCC paths

You can run the compiler GCC without recompiling, even if you install the distribution in an alternate location, by first setting the environment variable GCC_EXEC_PREFIX. This variable specifies where to find the executables, libraries, and data files used by the compiler. Its value will be different depending on which set of binaries you need to run. For example, if you install the tape distribution under `/local' (instead of the default `/usr/cygnus'), and you wish to run GCC as a native compiler, you could set GCC_EXEC_PREFIX as follows.

(Note: The sample shows a GCC_EXEC_PREFIX which is split across two lines only to fit on the printed page; it is meant to be typed on one line.)

For shells compatible with Bourne shell (/bin/sh, bash, or Korn shell):

eg$ GCC_EXEC_PREFIX=/local/progressive-95q4/\
       H-hosttype/lib/gcc-lib/
eg$ export GCC_EXEC_PREFIX

For C shell:

eg% setenv GCC_EXEC_PREFIX /local/progressive-95q4/\
       H-hosttype/lib/gcc-lib/

Note: The trailing slash `/' is important. The gcc program uses GCC_EXEC_PREFIX simply as a prefix. If you omit the slash (or make any other mistakes in specifying the prefix), gcc fails with a message beginning `installation problem, cannot exec...'.


Go to the first, previous, next, last section, table of contents.