This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: problems to install gcc
- From: Andrew Haley <aph at redhat dot com>
- To: Kay Schröer <Kay dot Schroeer at o2online dot de>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 29 Jun 2008 12:37:22 +0100
- Subject: Re: problems to install gcc
- References: <002a01c8d978$7fe62030$0401a8c0@MONROSE>
Kay Schröer wrote:
> Hi,
>
> I've some problems to configure, build and install the gcc collection.
> I downloaded the file gcc-4.3.0.tar.gz.
> Then I started the console (bash) and decompressed the archive by typing:
> gzip -d gcc-4.3.0.tar.gz
> tar -xf gcc-4.3.0.tar
> The source files are placed in the directory /usr/gcc-4.3.0, for example
> /usr/gcc-4.3.0/compile
> /usr/gcc-4.3.0/configure
> /usr/gcc-4.3.0/install-sh
> ...
> Now I want to install the package to the directory /usr/gcc to use the
> compilers.
> I already read the documentation but there are so many commands and
> options, so I don't know what I have to do step by step.
> Can you give me the necessary commands and options to configure, build
> and install a standard version of gcc (with all libraries installed to
> compile standard C-applications) to my system?
All you usually need on a Linux system is to specify a prefix.
So, make a clean directory and in that directory do
/usr/gcc-4.3.0/configure --prefix=/usr/gcc
make
make install
Andrew.