How do i get gcc on my mac




















So the question is how can I run the configure? After finishing the installation you should have the headers you need to compile with your GCC. Probably not the elegant answer, but it worked. Now all works. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 1 year, 9 months ago.

Active 9 months ago. Viewed 14k times. Then I get the following: configure: error: cannot run C compiled programs. Improve this question. Add a comment. Active Oldest Votes. First you need to install the Command-Line tools. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Install gcc to mac via Terminal Ask Question. Asked 7 years, 9 months ago.

Active 7 years, 1 month ago. Viewed 42k times. In terminal: sudo port install gcc48 sudo port select -set gcc mp-gcc48 All the above went smoothly until I type: hash gcc When I press enter, I get the following error message: -bash: hash: gcc: not found I am at a loss and do not know how to proceed to successfully install gcc on my Mac which is running Mac OS X Much obliged to any suggestions and or alternatives to installing the gcc.

Improve this question. Any reason you need gcc specifically? The major bugs have been squashed in the past few years. An edit would help this. If you have a package you need to compile, list that. If you just want to know how to make gcc compile for the fun of it, that's fine too but the answer to either is different. What does which gcc give? It should point to the directory in which gcc is located. Show 3 more comments.

Active Oldest Votes. Python Javascript Linux Cheat sheet Contact. How to install make and gcc on a mac? Once the installation is complete, the command line utilities should be set up property.

Older versions: Installing recent XCode versions confusingly enough does not automatically install the command line tools. To install the command line tools when they're not automatically installed; Start XCode.

Click the "Downloads" tab.



0コメント

  • 1000 / 1000