image
image
Ticket Options
Question Details
TICKET ARCHIVE -> Checking For Gcc - Result: No
apiccolo - Aug 1, 2005 - 7:18 pm
image
image
The problem is that my OS X.3.9 does not have a GCC compiler.

It all started when I was trying to follow the instructions (that were given here:
http://www.macosxhints.com/article.p...40807104400388
) to convert some .ogg files to .mp3 - and I've downloaded Fink, it all went fine, but when I tried to install (with fink) the libogg packet, I got that sequence of errors from the ./config instruction:

./configure --prefix=/sw
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH

How can I solve it?? I've got the gcc-3.3 and gcc-4 compilers installed, but they are not linked with the gcc, in that $PATH.

Is there a common path in the system that will link a gcc call to a specific gcc in my /usr/bin ??

Tks for attention!
jghaffner - Aug 4, 2005 - 6:35 pm
image
image
Hi Alexandre,

It sounds as if you have gcc installed in a place that is not in your $PATH variable.

From the terminal, type:
echo $PATH

It will show a listing of paths that the system will look for executable files. Each path will be separated by a colon (. Mine looks like this:
/bin:/sbin:/usr/bin:/usr/local/bin:/usr/sbin:/usr/X11R6/bin:/Users/jhaffner/Documents/mybin

You either need to install gcc in a 'standard' spot, like /usr/bin, or add the location where it is installed to your $PATH.

You can do that by adding these lines to your .bash_profile:
PATH=$PATH:/bar/foo
export PATH

You have to save the file, log out of terminal, and then log back in again. (The path /bar/foo is only an example.)

Hopefully that helps!

----------
John H.
MacOSX.com Volunteer
apiccolo - Aug 4, 2005 - 11:33 pm
image
image
Tks a lot for the tips about the PATH (it's nice to learn new things about the system). But I think (and regret) problems might persist a bit longer, unfortunately.

When I run the command "fink install libogg", fink donwloads the right packets, starts installing them but doesn't finish it - and sends me all these messages:

WARNING: You are using a version of gcc which is known to produce incorrect output from C++ code under
certain circumstances.

For information about upgrading, see the Fink web site.

checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH

-- (sys msg finishes here) --

How does it know I've got a "not-recommended" gcc version and says afterwords I've got no gcc installed?? And no C compiler either?!

Any tips for easily installing them??

Just in advance, I've already tried the Apple Xcode 1.5 (and after that I started receiving those warnings from fink).

Tks a lot for suggestions, tips and attention.
jghaffner - Aug 5, 2005 - 3:14 pm
image
image
Hi Alexandre,

I honestly don't know why fink would tell you that your gcc version could cause problems and then tell you that you don't have gcc installed.

It may be that there is a problem with the libogg package. Try going back to the fink web site to see if there are any warnings about the specific version of gcc installed.

What do you get when you just type gcc at the command prompt? I get:
powerpc-apple-darwin8-gcc-4.0.0: no input files
I am running Tiger 10.4.2, and I have XCode 2.0 installed.

Have you tried the echo $PATH command?

If so, does one of the paths match where you've got gcc installed? If not, perhaps you need to modify your $PATH as I outlined before.

Best Regards,
John

----------
John H.
MacOSX.com Volunteer
apiccolo - Aug 6, 2005 - 5:21 pm
image
image
After lots of new tests and changes, a new problem arrives (and I still can't finish a simple compiling):

checking command to parse nm output... failed
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check


Any clues for this new problem??
I'm running Panther 10.3.9 and XCode 1.5 (just compillers installed)
Tks a lot!
jghaffner - Aug 8, 2005 - 2:55 pm
image
image
Hi Alexandre,

Unfortunately, you've just reached the end of my knowlege base. I'm glad you were able to get past the gcc problem.

I'll send this back to the open ticket pool.

----------
John H.
MacOSX.com Volunteer
apiccolo - Aug 8, 2005 - 3:08 pm
image
image
No problem, John.

After a lot of reading and testing (and saying some bad words too), I've decided to reinstall XCode (now all the stuff, not only the compilers) and, fortunately!, it worked fine afterwords. Now I can do great things with gcc and its friends.

Tks for clues, ideas and suggestions.



Alexandre
TechSupport - Aug 11, 2005 - 3:30 pm
image
image
This ticket has been moved to the open forums for more exposure.

Please follow this link:

http://www.macosx.com/forums/showthread.php?t=237767

IF THIS IS YOUR QUESTION AND YOU WISH TO RESPOND, LOGIN HERE FIRST.


Search Engine Optimization by vBSEO 3.3.0 RC1