no acceptable C compiler found in $PATH

Joined
Mar 27, 2012
Messages
5
Reaction score
0
Points
1
C compiler cannot create executables

I'm sorry if this question has been answered before already but I wasn't able to find them.
I've been trying to use the command ./configure for a file that I downloaded from the instructions of a video.
At first, I was it was unable to find an acceptable GCC but I fixed it by deleting and putting the files back into usr/bin
Now when I type ./configure it pops up "configure: error: C compiler cannot create executables"
Can someone help me with this? It's driving me nuts!:'(
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
Try reinstalling xCode.
 
OP
B
Joined
Mar 27, 2012
Messages
5
Reaction score
0
Points
1
Try reinstalling xCode.

I'm not sure if I did reinstall. I put in the Mac OS X Install dvd then >optional installs>xcode(something like that) and ran the intallation again. It is Xcode 3.1 and I'm on Snow Leopard.
I tried ./configure again and the same error popped up.
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
Might want to do an uninstall first. Should be.

sudo /Developer/Library/uninstall-devtools --mode=all

You'll need to reboot before install. I've seen this when my install was borked.
 
OP
B
Joined
Mar 27, 2012
Messages
5
Reaction score
0
Points
1
sadly no, the error still ceases to disappear...
I'm not sure if this would help but when I type "gcc" this is what pops up: i686-apple-darwin9-gcc-4.2.1: no input files
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
That's right - you should see that error when you pass gcc no files to compile.

What are you trying to compile?
 
Joined
Dec 11, 2010
Messages
1,808
Reaction score
40
Points
48
Location
Chicago
Your Mac's Specs
late 2012 mini w/SSD
I think it's still your PATH that's messed up.
type this and show us the result:
echo $PATH
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
I think it's still your PATH that's messed up.
type this and show us the result:
echo $PATH
I was going to suggest that but the previous post demonstrated that it was:

sadly no, the error still ceases to disappear...
I'm not sure if this would help but when I type "gcc" this is what pops up: i686-apple-darwin9-gcc-4.2.1: no input files

;)
 
Joined
Dec 11, 2010
Messages
1,808
Reaction score
40
Points
48
Location
Chicago
Your Mac's Specs
late 2012 mini w/SSD
I mean the resources Other Than gcc itself.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
Looks like something might have been missed during the Xcode install. Read this to fix the problem.
 
OP
B
Joined
Mar 27, 2012
Messages
5
Reaction score
0
Points
1
echo $PATH: /Library/Frameworks/Python.framework/Versions/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
I am trying to compile 'Speex-1.2'

I don't see the Xcode.mpkg in optional install
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
The name may be different. Simply relaunch the installer you used.
 
OP
B
Joined
Mar 27, 2012
Messages
5
Reaction score
0
Points
1
The name may be different. Simply relaunch the installer you used.

I have run the installer again and nothing has seemed to change. Right now, I am unintalling everything with the command that dysfunction has given me, and I will tell you what happens after installing again.

EDIT: Still the same problem...this is frustrating me...would this help if I updated to Lion and downloaded the Xcode 4?
 
Joined
Dec 11, 2010
Messages
1,808
Reaction score
40
Points
48
Location
Chicago
Your Mac's Specs
late 2012 mini w/SSD
Sorry I can't give you a definitive answer...
Out on the web, it looks like 10.6 uses
~/.MacOSX/environment.plist
and
~/.profile

to save and setup PATH.
I'm thinking you may need to delete those two and then reinstall Xtools.
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
Sorry I can't give you a definitive answer...
Out on the web, it looks like 10.6 uses
~/.MacOSX/environment.plist
and
~/.profile

to save and setup PATH.
I'm thinking you may need to delete those two and then reinstall Xtools.

Whoa. You can set path on the fly too. I'd do that before I did ANY systemic change.

export PATH=$PATH:/path/to/new/directory
 
Joined
Dec 11, 2010
Messages
1,808
Reaction score
40
Points
48
Location
Chicago
Your Mac's Specs
late 2012 mini w/SSD
Ya, I agree that deleting is too over the top...
But someone (other than me) needs to tell "bippity" what to add to his PATH.

My PATH has /Developer/Tools - his doesn't.
But I don't know if that's correct for 10.6?

And where should the Developer tools have added the environment for gcc to the saved PATH setup?
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top