This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc: installation problem, cannot exec `cc1': No such file or directory
- From: Ian Lance Taylor <iant at google dot com>
- To: "Ernest L. Williams Jr." <ernesto at ornl dot gov>
- Cc: gcc-help at gcc dot gnu dot org, ernesto at slac dot stanford dot edu
- Date: 14 Sep 2007 08:20:34 -0700
- Subject: Re: gcc: installation problem, cannot exec `cc1': No such file or directory
- References: <1189693805.7324.9.camel@panther.slac.stanford.edu>
"Ernest L. Williams Jr." <ernesto@ornl.gov> writes:
> I looked through the gcc-help archives and was able to locate the
> problem that I am having:
>
> I would like to relocate a gcc installation to another directory on
> another computer but I get the famous:
> ==========================================================================
> gcc: installation problem, cannot exec `cc1': No such file or directory
> ==========================================================================
Usually this just works, assuming you move the entire installed tree
as a unit without rearranging subdirectories. There was a time that
it didn't work, but you neglected to mention which version of gcc you
are using, so I don't know whether it is an old one.
For cases where it doesn't work, you can use the -B option, or the
GCC_EXEC_PREFIX or COMPILER_PATH environment variables. See the
friendly manual.
Ian