This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc installation problem


On Thu, Sep 12, 2002 at 05:53:58PM +0100, Pedro Manuel Augusto wrote:
> 
> Dear colleague,
> 
> I was trying to install gcc on my ps with linux and run into the error:
> 
> [root@augusto gcc]# /root/gcc-3.2/configure

We strongly discourage building gcc as a privileged user.

> Configuring for a i686-pc-linux-gnuoldld host.
> Created "Makefile" in /root/gcc using "mt-frag"
> /root/gcc-3.2/configure: cc: command not found
> *** The command 'cc -o conftest -g   conftest.c' failed.
> *** You must set the environment variable CC to a working compiler.
> [root@augusto gcc]#
> 
> Apparently this linux (Mandrake 8.2) does not come with a compiler at all?
> I searched and I could not find it. What can I do? My idea of installing
> gcc was precisely to compile other programs, since it is a compiler...

Well, yes, but gcc is itself a program and must be compiled.  You have
to have something to start with.

I will be _very_ surprised if the Mandrake CDs don't have any compiler
binaries on them at all.  Look again.  The packages you need are
probably called 'gcc', 'binutils', and 'glibc-devel', plus anything
they depend on.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]