help with installing gcc in os x please.

Ben Dougall bend@freenet.co.uk
Tue Dec 31 06:19:00 GMT 2002


fwyzard: i've done all that, successfully (apart from the search path), 
i think!

about the make install/password issue - the solution is:
sudo make install
this makes it ask for a password first. and then goes ahead without the 
permission denied error.

so i've done all the installation. i've even deleted both the objdir 
and srcdir folders as i was so skeptical that it's done anything 
outside of those folders - but my skepticism seems to be wrong, but i 
still don't understand where it has put it. physically i mean. for some 
reason i've got this fixation about being able to view the file(s) in 
the finder - icons in windows and i just can't see where they are. (in 
fact that's something that's always mystified me about apple's gcc - 
i've never found the actual file(s))

but in anycase, putting not being able to see/find the files to one 
side, it does seem to have worked! :) weheee! after deleting the objdir 
and srcdir, i did as you said:
cd /usr/opt/gcc/bin
./fsf-gcc -v
which gave:
Reading specs from ./../lib/gcc-lib/powerpc-apple-darwin6.2/3.2.1/specs
Configured with: ../gccfolder/configure --enable-threads=posix 
--enable-shared --prefix=/usr/opt/gcc --program-prefix=fsf- 
--disable-libgcj --enable-version-specific-runtime-libs 
--enable-languages=c
Thread model: posix
gcc version 3.2.1

back to my fixation. where/what is this?:  
./../lib/gcc-lib/powerpc-apple-darwin6.2/3.2.1/specs
i've searched in the finder for 'gcc-lib' and 'powerpc-apple-darwin6.2' 
and '3.2.1' and 'specs'. none of those folders exist. i've probably got 
the wrong end of the stick here, but why can't i see they don't seem to 
exist. i've also looked in both the main and local library folders - 
nothing's been added there. and in the system folder. where is it?! ok 
i won't mention this issue again (for a while).

i did actually successfully compile a test bit of code, with an earlier 
attempt, by using ./xgcc test.c which compiled the test.c file i'd put 
in the same folder as xgcc (which was in the objdir folder).

so it looks like i just need to sort out the search path, which i 
haven't really tried to do yet. - i'm going to have a go at that later. 
need a break.

so thanks very much again fwyzard, for your extensive help.

i'll report back how the path thing goes when i have a go at it later.

thanks, ben.



More information about the Gcc-help mailing list