This is the mail archive of the gcc-help@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]

Installing gcc in a local directory


Hi,
Only LD_LIBRARY_PATH=/home/user/gcc-4.2.0/lib:$LD_LIBRARY_PATH?
What about include files? For example, if I want to compile a tipycal hello world program in C, what stdio.h use the compiler, the new 4.2.0 or the old 4.1.2? If I want to compile a program with gcc-4.1.2 instead of 4.2.0, what about the new LD_LIBRARY_PATH=/home/user/gcc-4.2.0/lib:$LD_LIBRARY_PATH order?
Need add LD_LIBRARY_PATH=/home/user/gcc-4.2.0/lib:$LD_LIBRARY_PATH order if I compile, for example, gcc/g77 too?



-----Original Message-----
From: Jose Luis GarcÃa Pallero <ita-garpaljo@itacyl.es>
To: <gcc-help@gcc.gnu.org>
Date: Fri, 23 Mar 2007 08:28:41 +0100
Subject: Installing gcc in a local directory

Hello,
First of all I should say that I'm a newbie GNU/Linux user.
I need to install gcc/gfortran 4.2.0 in my computer. I would like to install it in a local directory, no the standard /usr/local. I configured the package with the options:
../configure --prefix=/home/user/gcc-4.2.0 --enable-languages=c,fortran --with-mpfr=/home/user/mpfr-2.2.1 --with-gmp=/home/user/gmp-4.2.1
and when it was compiled I put in .bash_profile the lines:
PATH="/home/user/gcc- 4.2.0/bin:$PATH"
export PATH
I don't know if it is the only PATH that I should be defined. Should I define any other LIBPATH or INCLUDEPATH?

Thanks

________________________________________-
After completion of make and make install, to use the compiler you have made, you would also need
LD_LIBRARY_PATH=/home/user/gcc-4.2.0/lib:$LD_LIBRARY_PATH
(no spaces in either path)
Tim Prince


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