This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: help with installing gcc in os x please.
- From: Ben Dougall <bend at freenet dot co dot uk>
- To: "Andrea 'fwyzard' Bocci" <fwyzard at inwind dot it>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 28 Dec 2002 04:55:31 +0000
- Subject: Re: help with installing gcc in os x please.
hiyer fwyzard,
well, i'm not sure. i think i'm just having trouble accessing it, but
i'm not sure.
putting 'bin' and the linking issue aside, trying to access it directly
from the objdir folder -
in the objdir are these files & folders:
config.cache (a 16k document)
config.status (a 4k document)
gcc (folder 289 items inside totaling 153mb)
libiberty (folder 49 items inside totaling 1mb)
Makefile (a 64k document)
powerpc-apple-darwin6.2 (an empty folder)
while in (in meaning located in, while i'm using the terminal) these
locations:
the 'objdir' folder, the 'gcc' folder mentioned in the above list, the
'libiberty' folder and the folder that contains 'objdir',
i've tried both './gcc -v' and './gccc -v'
i tried in the gccfolder as well although that was silly - i knew that
wasn't going to work but still worth a go.
i've deleted the first install that was without the prefix c option, so
i guess trying ./gcc was not going to work anyway, but still worth a go.
so the responses to typing those in were:
./gcc: Permission denied.
and
./gccc: Command not found.
but it only says 'permission denied' in response to './gcc -v' when
there happens to be a folder in the directory that i'm in, called
'gcc', otherwise it says 'command not found'.
to me, it appears as if the whole thing has installed successfully and
it's all there but i'm just not accessing it correctly. that's what it
looks like to me but i'm not completely sure on that.
The final GCC is contained in the objdir folder, along with all the
temporary thiongs it used to boostrap (all in almost 3 copies,
remember). After installing (make install) you can safely delete the
objdir folder (and the srcdir one, or course, when you're done
building all the things you need)
:/ if the final gcc is contained in the objdir, deleting objdir would
delete the final installed gcc wouldn't it?! :)
If in the end you get it working, would you mind writing a small
summary of the instrctions and posting it to gcc@gcc.gnu.org, so that
it can be linked from GCC 3.2 results page ?
ok, no problem. will do. is gcc@gcc.gnu.org another list like this one?
aha! look what i've found:
[Ben-Ds-Computer:~/cprac] bend% cd ../gcc/objdir/gcc
[Ben-Ds-Computer:~/gcc/objdir/gcc] bend% ./xgcc
xgcc: no input files
[Ben-Ds-Computer:~/gcc/objdir/gcc] bend% ./xgcc -v
Using built-in specs.
Configured with: ../gccfolder/configure --enable-threads=posix
--enable-shared--program-suffix=c
Thread model: posix
gcc version 3.2.1
[Ben-Ds-Computer:~/gcc/objdir/gcc] bend%
:) so it is there and it's called xgcc ! (for some reason). i thought
it would be there somewhere. and it's in the gcc folder that's in the
objdir folder. so surely, deleting the objdir folder is not a good
thing to do?! but some of it must be redundant. i'm sure the folder
that's got all the original installation stuff can go. but the objdir
folder is 150mb so some of it must be erasable too.
If this works, then the only problem is the missing PATH variable
setting. To solve this you need to ask a MacOS user, as I don't know
how to set it up on your system (maybe somewhere in a kind of Control
Panel, maybe :-)
ok i'll look into that.
thanks a-lot for all the info fwyzard. much appreciated.
ben.