PDA

View Full Version : gcc ?




dethmaShine
Apr 22, 2011, 07:20 AM
Well, I was trying to compile one of my c programs on lion the other night but there's no such command as gcc, i.e. it gcc is not built into mac os x lion [as of now].

On SL:

> which gcc

would give: /usr/bin/gcc

but there is no such executable in mac os x lion.

Any body here who knows more about it?



Floris
Apr 22, 2011, 07:21 AM
Well, I was trying to compile one of my c programs on lion the other night but there's no such command as gcc, i.e. it gcc is not built into mac os x lion [as of now].

On SL:

> which gcc

would give: /usr/bin/gcc

but there is no such executable in mac os x lion.

Any body here who knows more about it?


You have xcode installed?

dethmaShine
Apr 22, 2011, 07:29 AM
You have xcode installed?

Not on OS X Lion.

innominato5090
Apr 22, 2011, 07:47 AM
Not on OS X Lion.

gcc is included in xCode... you have to install it first.

dethmaShine
Apr 22, 2011, 08:23 AM
gcc is included in xCode... you have to install it first.

Well thanks for that. I thought gcc comes installed with os x by default. Thank you. :)