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
392
33
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?
 
You need to install Xcode. Its on your Mac OS X discs or downloadable from the Apple site.
 
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.
 
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.
 
Sigh. It says GCC isn't found. Guess it's back to the Install DVD.
 
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:
 
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.
 
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.
 
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.