public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Installation help (simple)
@ 2005-07-16 22:56 Rudy
  2005-07-17  4:27 ` Brian Dessent
  0 siblings, 1 reply; 2+ messages in thread
From: Rudy @ 2005-07-16 22:56 UTC (permalink / raw)
  To: gcc-help

Hi,

   I am a very inexperienced Linux user and am having
a hell of a time trying to understand the installation
instructions for GCC.  Apparently I am missing
something, becasue I cannot for the life of me
understand the "configuration" instructions that were
included in the download.
   All I want to do is install GCC in my machine so
that when I make or make install another program, I
have a valid C compiler on my machine. I am not a
power user and just need it to be on the machine.
   Below is the message I get when trying to install
the package.  
   Can anyone help me with this one?  Thanks in
advance....

James

[jef@localhost gcc-4.0.1]$ ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install...
/usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
configure: error: Building in the source directory is
not supported in this release. See
http://gcc.gnu.org/install/configure.html for more
details.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Installation help (simple)
  2005-07-16 22:56 Installation help (simple) Rudy
@ 2005-07-17  4:27 ` Brian Dessent
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Dessent @ 2005-07-17  4:27 UTC (permalink / raw)
  To: gcc-help

Rudy wrote:

>    All I want to do is install GCC in my machine so
> that when I make or make install another program, I
> have a valid C compiler on my machine. I am not a
> power user and just need it to be on the machine.

If you do not currently have a C compiler installed there is no way that
you are going to be able to build gcc from source.  Unless you have a
specific reason to compile gcc, you are much better off installing the
packaged version of gcc that your vendor provides.  This is especially
the case for someone that is not sure what he's doing, because there are
many issues to be aware of when building and installing the compiler,
especially if you want it to interact gracefully with other programs
that you already have on your system.

You did not mention what platform or distro you are using, so it makes
helping you much harder.  But it looks like Linux from the output below,
and so you should just install the 'gcc' package, using 'rpm' or
'apt-get' or 'urpmi' or 'yum' or whatever command your system uses to
install a new package.  Note that you will need many other packages in
addition to gcc if you do not have a working development environment, so
you should use whatever tool your distro offers for handling
dependencies.

> configure: error: Building in the source directory is
> not supported in this release. See
> http://gcc.gnu.org/install/configure.html for more
> details.

You can't just run ./configure.  You need to build in a separate
directory from the source.  Go back and re-read the configure.html URL
carefully.  The ninth paragraph ("To configure GCC") gives you a sample
of how you are to run configure.  Note that 'objdir' and 'srcdir' are
not literal words, but they represent the relative paths of two
different directories.

Brian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-17  4:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-16 22:56 Installation help (simple) Rudy
2005-07-17  4:27 ` Brian Dessent

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).