This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libg++ header file locations...
- To: dhm at paradigm dot webvision dot com, jbuck at synopsys dot com
- Subject: Re: libg++ header file locations...
- From: mrs at wrs dot com (Mike Stump)
- Date: Tue, 21 Oct 1997 17:39:09 -0700
- Cc: egcs at cygnus dot com
Your process is flawed and will always fail (unless you get lucky). A
process that works better that I have used for 5 years is if you
configure with --prefix=/abs/name/package_name-package-version; make;
make install.
You can then symlink all the */bin directory elements into a main bin
somewhere.
For example on my system I have:
$ ls ~/packages/
Acrobat3 binutils-2.8.1 dejagnu-970918 egcs-ss-970814 rcs-5.7
autoconf-2.12 cvs-1.9 egcs-970825 emacs-19.34 tor-1.0.1
automake-1.2 dejagnu-970707 egcs-970907 emacs-20.2 trn-3.6
bash-2.01 dejagnu-970907 egcs-970924 less-332
and in the bin
$ ls ~/bin
total 4269
lrwxrwxrwx 1 mrs wrs 36 Aug 15 14:30 Pnews -> /folk/mrs/packages/trn-3.6/bin/Pnews
lrwxrwxrwx 1 mrs wrs 37 Aug 15 14:30 Rnmail -> /folk/mrs/packages/trn-3.6/bin/Rnmail
lrwxrwxrwx 1 mrs wrs 33 Sep 15 14:52 acroread -> ../packages/Acrobat3/bin/acroread
lrwxrwxrwx 1 mrs wrs 40 Aug 20 12:07 ar -> /folk/mrs/packages/binutils-2.8.1/bin/ar
lrwxrwxrwx 1 mrs wrs 40 Aug 20 12:07 as -> /folk/mrs/packages/binutils-2.8.1/bin/as
lrwxrwxrwx 1 mrs wrs 45 Aug 25 21:29 autoconf -> /folk/mrs/packages/autoconf-2.12/bin/autoconf
lrwxrwxrwx 1 mrs wrs 32 Sep 30 15:37 emacs -> ../packages/emacs-20.2/bin/emacs
lrwxrwxrwx 1 mrs wrs 39 Sep 8 18:28 emacs-19.34 -> ../packages/emacs-19.34/bin/emacs-19.34
lrwxrwxrwx 1 mrs wrs 37 Sep 30 15:37 emacs-20.2 -> ../packages/emacs-20.2/bin/emacs-20.2
lrwxrwxrwx 1 mrs wrs 38 Sep 30 15:37 emacsclient -> ../packages/emacs-20.2/bin/emacsclient
lrwxrwxrwx 1 mrs wrs 38 Sep 29 17:16 gcc -> /folk/mrs/packages/egcs-970924/bin/gcc
[ ... ]
As you can see, I have 4 versions of the compiler, and they always
just work, they never don't work. I can never find leftovers from
previous installs, and so on. All useful properties.
> Date: Tue, 21 Oct 1997 16:10:19 -0700
> From: dave madden <dhm@paradigm.webvision.com>
> To: jbuck@synopsys.com
> CC: egcs@cygnus.com
> Yes; I have a bunch of different gcc's running on the machine
> (2.7.2.2, a gcc cross-compiler for USR PalmPilots, and egcs), and I
> don't fully understand where things *should* be installed. (OTOH, I'm
> not *that* dumb; I hope it's not all my fault that things are a little
> confused :-)
> The include path egcs++ searches on my machine is:
> /usr/local/include/SGI-STL <- I added this (contains the SGI STL headers)
> /usr/local/include/g++ <- I guess this was found during the build?
> Maybe the PalmPilot install put it there.
> I don't think I did it myself, except as
> part of some other install.
> /usr/local/lib/g++-include <- this is where the plain libg++-2.7.2 lives
> /usr/local/include <- some PalmPilot stuff is here
> /usr/local/alphaev56-dec-osf4.0/include
> /usr/local/lib/gcc-lib/alphaev56-dec-osf4.0/egcs-2.90.13/include
> I guess I should really clean out /usr/local/include, rebuild the
> compilers, and install all the headers that are appropriate for a
> version down the $prefix/lib/gcc-lib/version.../ tree, where cc1 &
> friends live.