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.
13 questions
86
votes
7
answers
285k
views
How do I install GCC via Homebrew?
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 ...
36
votes
5
answers
172k
views
How to set gcc 4.8 as default gcc compiler
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 ...
66
votes
6
answers
158k
views
Installed gcc with Homebrew, now how to use that gcc instead of clang?
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 ...
11
votes
3
answers
11k
views
I installed Xcode but I still don't have gcc in my terminal
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 ...
8
votes
4
answers
20k
views
Can't compile source code on mac
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/...
60
votes
6
answers
140k
views
How to accept Xcode license?
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 ...
22
votes
2
answers
13k
views
How to compile mod_wsgi, mod_fastcgi, etc on Mountain Lion (Mavericks) by fixing `apxs:Error: Command failed with rc=65536`?
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 ...
12
votes
4
answers
30k
views
Can't install NTFS-3G on macOS BigSur
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 ...
7
votes
1
answer
2k
views
Why does it appear that I apparently "do not have access to Command Line Tools" in ML?
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 ...
3
votes
1
answer
1k
views
GCC with-gxx-include-dir is set to iOS 11.4 simulator
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 ...
3
votes
1
answer
2k
views
How to compile with Command Line Tools for Xcode after deleting the Xcode.app application bundle?
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,...
1
vote
1
answer
2k
views
how to debug configure.sh errors when compiling rsync on Yosemite
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 ...
1
vote
0
answers
3k
views
ld: library not found for -lSystem
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/...