While it is definitely possible to install gcc without Xcode, it seems that nobody packages it in such a way. That said, it does seem like your main reason for asking is to avoid the large download? If you still have the OS install discs that came with your Mac then we can get Xcode installed without having to download it from scratch. Starting with Xcode 4.3 - you must now manually install command line tools from Xcode menu Preferences Downloads. Alternatively, there are stand-alone installation packages both for Mountain Lion (10.8) and for Mavericks (10.9). This package enables UNIX-style development via Terminal by installing command line developer tools, as well as Mac OS X SDK frameworks and headers.
The reason you are seeing this error is that your system doesn't have Xcode installed. Either you have never installed it on your Macbook or it got uninstalled during any OS update.
So to fix this issue, install Xcode. If you are into iOS App development, you can install the complete version and it will solve this issue as well. Download Xcode .dmg file from the Apple developers page.
![]()
Jan 18, 2010. Sep 01, 2011. Apr 20, 2015.
If you don't use it, like me, you can simply search for the Command Line Tools package for Xcode and download the .dmg file for it and install it. You can download it from the Apple developers page.
The Perfect Solution:
If you don't want to download anything and just want to run some commands in the terminal to fix this issue, then here's the command for you:
This is the command which can be run in the terminal and will install the command line tools for Xcode. When you run this command you will be prompted to accept the license, agree with the terms and conditions, etc.
If you are shown that the download requires 7GB+ of space, then be aware you are being forced to download the Xcode Application, in that case, download the .dmg file for command line tools package specifically from the apple developer page.
The above command should fix the issue if it doesn't run the following command too:
Although this will fix your issue, as a follow-up step, you may need to set the path for the command line tools to run without Xcode.
If you face permission issues while running any of the above commands, use
sudo with the commands. For example,
This too can work:
If you have the Xcode app installed, then try running the following command: Distraction app mac disable imessage.
Conclusion:
This issue can happen post OS upgrade and can make services that were running well before, useless. But the above solution should fix the error that you are facing. If none of this works for you, feel free to share your error message in the comment section below.
2020腾讯云10周年活动,优惠非常大!(领取2860元代金券),
地址:https://cloud.tencent.com/act/cps/redirect?redirect=1040
2020阿里云最低价产品入口,含代金券(新老用户有优惠),
入口地址:https://www.aliyun.com/minisite/goods
Macware logo design studio for macos 10.9. I have install Mountain Lion (Mac OS X 10.8) and now gcc doesn't seem to be available anymore. I've also installed Xcode 4.4 so there is no more /Developer directory.
I need gcc both for mac ports and for ruby gems (that have native extensions).
Does Xcode 4.4 include gcc or is there a way to install gcc?
xcodeosxgcc| this question asked Feb 19 '12 at 21:32 Athir Nuaimi 1,479 2 8 11 2 Similar, more recently: Lion — GCC not found, but Xcode is installed — Ask Different – Graham Perrin Apr 21 '12 at 10:14 6 The answers on this thread all fail to make one very important point: they are not installing GCC, but rather Clang/LLVM pretending to be GCC. This is not a trivial difference, for reasons that I'd hope I don't have to explain. – underscore_d Apr 1 '16 at 19:10 | 9 Answers---Accepted---Accepted---Accepted---
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |