This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: make writes to /usr/local ?
- To: help-gcc at gnu dot org
- Subject: Re: make writes to /usr/local ?
- From: Axel Gallrein <axel1033 at mailszrz dot zrz dot tu-berlin dot de>
- Date: Wed, 01 Sep 1999 07:14:28 +0200
- Newsgroups: gnu.gcc.help
- Organization: Axel Gallrein
- References: <Pine.LNX.3.96.990901054133.2718A-100000@mpqpc63.mpq.mpg.de>
- Xref: wodc7nx0 gnu.gcc.help:795
Gerhard Heinzel wrote:
>
> I downloaded gcc 2.95.1 and installed the pgcc patch
> (which probably has nothing to do with the following
> oroblem)
>
> Following the instructions I created "objdir",
> went there and ran "srcdir/configure".
>
> The "make" quickly fails with a permission denied error:
>
> make[2]: Entering directory /home/ghh/pgcc/objdir/gcc'
> /home/ghh/pgcc/objdir/gcc/xgcc -B/home/ghh/pgcc/objdir/gcc/
> -B/usr/local/i686-pc-linux-gnu/bin/ -I/usr/local/i686-pc-linux-gnu/include
> -O2 -DIN_GCC -g -O2 -I./include -fPIC -g1 -DIN_LIBGCC2
> -D__GCC_FLOAT_NOT_NEEDED -g -O2 -I. -I../../gcc-2.95.1/gcc
> -I../../gcc-2.95.1/gcc/config -I../../gcc-2.95.1/gcc/../include \
> -c ../../gcc-2.95.1/gcc/cp/tinfo.cc
> ../../gcc-2.95.1/gcc/cp/tinfo.cc:0:
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/pgcc-2.95.1/../../../../include/g++-3/.:
> Permission denied
> make[2]: *** [tinfo.o] Error 1
> make[2]: Leaving directory /home/ghh/pgcc/objdir/gcc'
> make[1]: *** [libgcc2.a] Error 1
> make[1]: Leaving directory /home/ghh/pgcc/objdir/gcc'
> make: *** [all-gcc] Error 2
>
> It seems that it tries to write smoething to "usr/local".
> This is strange, earlier versions have never done
> such a thing, and honestly I prefer to be able
> to build software "as myself" and require root
> privileges only for installing.
>
> Best greetings
>
> Gerhard
Most of the times, it's a good idea to make/install gcc as su.
If you really don't want to do it, use the '--prefix=mypath'
option running ./configure (on linux systems even as su you
want to use '--prefix=/usr' most of the times, or you end up
with 2 gcc's.
Axel
--
===========================================================
Axel Gallrein Tel...................(49)-(30)-314 23 176
Fasanenstr. 46 ...................(49)- 172-397 34 69
10719 Berlin Fax...................(49)-(30)-314 21 694
Germany Email...axel1033@mailszrz.zrz.tu-berlin.de
===========================================================
In case my employer does not state one, the
above printed opinion just might be his.
-------------------------------------------