Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

astrostu

macrumors 6502
Original poster
Feb 15, 2007
391
32
I just tried to compile a file on my computer (haven't done it on this one before) via the terminal command "make." It gave me an error saying that there was no such command ("command not found") and when I tried to get the manual entry on it, it said there was "No manual entry for make."

Any ideas?
 

Delameko

macrumors member
May 1, 2008
63
0
You need to install Xcode. Its on your Mac OS X discs or downloadable from the Apple site.
 

astrostu

macrumors 6502
Original poster
Feb 15, 2007
391
32
XCode is installed. And I can compile command-line utilities in that. But this particular one can't be done in XCode, I need to do it in the Terminal.
 

Eraserhead

macrumors G4
Nov 3, 2005
10,434
12,250
UK
Type gcc at the command line. And report back.

To be honest I suspect the command line stuff has gone walkies, the easiest option is just to reinstall Xcode, the latest version is for the iPhone beta 5.
 

astrostu

macrumors 6502
Original poster
Feb 15, 2007
391
32
Sigh. It says GCC isn't found. Guess it's back to the Install DVD.
 

astrostu

macrumors 6502
Original poster
Feb 15, 2007
391
32
How did xcode install without a compiler?! :confused:

No idea. As I said, I've compiled before with XCode and it worked in that installation.

I just finished re-installing XCode and I now have make capabilities at the command-line. I suppose this will just remain one of Mac's little mysteries. :rolleyes:
 

yeroen

macrumors 6502a
Mar 8, 2007
944
2
Cambridge, MA
I don't think it's gone. I'm guessing your $PATH environment variable isn't set right.

Type in

echo $PATH

in the terminal. What do you see?

Edit: Looks like you fixed it by reinstalling Xcode, but in the future you can check your $PATH variable.
 

Sayer

macrumors 6502a
Jan 4, 2002
981
0
Austin, TX
In older Xcode versions (pre-3.0 I believe) you have to explicitly install the "BSD Subsystem" to get all the command-line stuff. If you do a custom install and skip that part, you won't have *all* the programming tools installed. Or if you uninstall the "BSD Subsystem" later manually (not knowing what it does) you will break things.
 

astrostu

macrumors 6502
Original poster
Feb 15, 2007
391
32
In older Xcode versions (pre-3.0 I believe) you have to explicitly install the "BSD Subsystem" to get all the command-line stuff. If you do a custom install and skip that part, you won't have *all* the programming tools installed. Or if you uninstall the "BSD Subsystem" later manually (not knowing what it does) you will break things.

That was not the problem. I did a clean install of my computer when it arrived in February with 10.5 and XCode 3.0. I also never uninstalled the BSD subsystem.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.