PDA

View Full Version : Any Reason Why I Wouldn't Have "make" Installed?




astrostu
May 8, 2008, 02:39 PM
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
May 8, 2008, 02:41 PM
You need to install Xcode. Its on your Mac OS X discs or downloadable from the Apple site.

astrostu
May 8, 2008, 02:46 PM
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
May 8, 2008, 02:48 PM
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
May 8, 2008, 02:51 PM
Sigh. It says GCC isn't found. Guess it's back to the Install DVD.

JoeG4
May 8, 2008, 03:21 PM
How did xcode install without a compiler?! :confused:

astrostu
May 8, 2008, 03:32 PM
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:

Eraserhead
May 8, 2008, 03:34 PM
How did xcode install without a compiler?! :confused:

It didn't just somehow the command line programs got lost, its weird but these things happen.

yeroen
May 8, 2008, 03:54 PM
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
May 8, 2008, 04:06 PM
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
May 8, 2008, 04:41 PM
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.