oops, how does one re-install gcc?

Tushar Teredesai sukucorp at gmail.com
Tue Oct 18 15:38:59 PDT 2005


On 10/18/05, Jeremy Byron <rjjbyron at shaw.ca> wrote:
> Tushar Teredesai wrote:
> > <snip>
> > For your current problem, one thing you could do is to use the
> > following to install the new gcc:
> >   make DESTDIR=/var/tmp/gcc install
> > This will install everything into a fakeroot /var/tmp/gcc. Now remove
> > the previous gcc version from the standard directories and then
> > recursively copy over the file in the fakeroot to their final
> > destination. Something like
> >   cd /var/tmp/gcc &&
> >   tar cf - . | (cd / ; tar xf - )
>
> Problem is, he cannot 'make install' anywhere because he has already
> removed the previous gcc version from the standard directories.  (He
> said the 'make install' needs gcc to be present and it no longer is.)

OP said he was restarting the build anyways, but asking for a way he
could have achieved it.

>
> Though I'm sure this solution would work otherwise (so long as gcc
> doesn't get it's install path hardcoded into anything).
>

The install prefix is still /usr, the above approach is callled the
fakeroot/DESTDIR approach (mentioned in the BLFS book).

--
Tushar Teredesai
   mailto:tushar at linuxfromscratch.org
   http://www.linuxfromscratch.org/~tushar/



More information about the lfs-support mailing list