Skip to main content

Questions tagged [gcc]

GCC is the GNU Compiler Collection. It's the de facto standard C compiler on Linux and older versions of OS X.

86 votes
7 answers
285k views

I am using Homebrew exclusively (i.e. I don’t, and won’t, use MacPorts or Fink). I also want to keep manual installations to a bare minimum.1 … But how can I install GCC? First of all, I’ve of course ...
Konrad Rudolph's user avatar
36 votes
5 answers
172k views

I recently installed gcc 4.8 using brew on OSX 10.7.5 (Lion). I can now compile using gcc 4.8 by using g++-4.8 some_file.c or using the default gcc 4.2 by using g++ some_file.c I want to use gcc 4.8 ...
quine's user avatar
  • 783
66 votes
6 answers
158k views

I installed gcc with brew install gcc, but when I type gcc the default behavior is still to use clang. How do I set things so that typing gcc in the terminal automatically uses the gcc installed by ...
NeutronStar's user avatar
11 votes
3 answers
11k views

I just got a Mac and I'm a complete newbie, so this may be kind of a really easy question, but I wasn't able to solve it with Google or F1. I was trying to run a C program from the Terminal that ...
Andrew Latham's user avatar
8 votes
4 answers
20k views

I already have xcode installed on OSX Yosemite. I have also run it and accepted terms and conditions. I can also do gcc --version and I see Configured with: --prefix=/Applications/Xcode.app/Contents/...
Knows Not Much's user avatar
60 votes
6 answers
140k views

I want to install a C based toolbox on MATLAB software. To do this, I need to install the GCC compiler. I think I have done that already. And I have Xcode too. To setup the toolbox, I need to write ...
SAH's user avatar
  • 798
22 votes
2 answers
13k views

I've updated to OS X Mountain Lion. Update has removed all of my python and apache modules including mod_wsgi. Now I'm trying to recompile mod_wsgi (it compiled without problems on Lion). I use ...
Daniil Ryzhkov's user avatar
12 votes
4 answers
30k views

Hi I'm trying to install NTFS-3G on macOS BigSur but every time I run brew install ntfs-3g it reports Error: ntfs-3g has been disabled because it requires FUSE!. Obviously I've already installed ...
Matteo's user avatar
  • 121
7 votes
1 answer
2k views

I just upgraded to Mountain Lion, and now gcc, make, g++, etc. are not found when trying to launch them in Terminal. So I went to Xcode Preferences, Downloads, and clicked "Install" next to Command ...
houbysoft's user avatar
  • 9,242
3 votes
1 answer
1k views

I'm trying to compile https://github.com/zeromq/libzmq which requires me to run autoconf and then ./configure. It was working a few days ago, but now this happens: checking for a BSD-compatible ...
Rajiv's user avatar
  • 428
3 votes
1 answer
2k views

I first had Command Line Tools for Xcode installed and then installed the Xcode app. I have now deleted the Xcode.app application bundle but still have Command Line Tools for Xcode installed. However,...
Abhishek's user avatar
1 vote
1 answer
2k views

I am trying to build myself a new version of rsync 3.1.1 under Mac OS 10.10.3, as the mac comes with an older version, and the project does not distribute binaries. I followed this simple script but ...
László's user avatar
  • 461
1 vote
0 answers
3k views

New to Mac. I am going to install a software and running make, returns the error: $ make gcc -I/Users/username/softwarename/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/...
Py-ser's user avatar
  • 193