MacOS Ventura update changed terminal command location - terminal

I recently updated my Mac to MacOS Ventura Beta, causing terminal commands like gcc, pyhton3 and pip3 to not work. Until last week I was able to use them normally, but after the update terminal asks me to download XCode Commandline Developer Tools.
The problem that came with this, is that VSCode is unable to find include files for C/C++.
I tried reinstalling VSCode, VSCode extensions related to C/C++, and even changing the #include_path for C files in VSCode, but nothing seems to work.
Any help would be very much appreciated :).

I wanted to put my solution here.
The new macOS Ventura is officially released now. I encountered the same issue you described. The solution was pretty simple, just to install XCode.
Run this command in Terminal.app:
xcode-select --install
Let it install the XCode.
Restart your VSCode.
You should be working correctly now.

Related

If I install Homebrew on Max OSX, am I required to use XCode as my IDE?

I'm a new developer, learning to set up environments both local and cloud-based. For local, I already have installed Node and Git and they are working. And I use Visual Studio Code for editing files, for terminal, also for managing Git repo.
I've heard good things about Homebrew and I'd like to try it, but on its installation instructions, it lists the following among its MacOS requirements: "Command Line Tools (CLT) for Xcode: xcode-select --install, developer.apple.com/downloads or Xcode 3"
Does this mean I would be required to use Xcode every time I interact with Homebrew? Nothing against Xcode but I'd be surprised if Homebrew can't be used just as easily with some other IDE like VSCode or Sublime text, etc. Thanks.
What you need are the Xcode command line tools and not the IDE itself, they can be downloaded separately so you don’t have to install the full Xcode app.
So while Homebrew does make use of those command line tools it isn’t something you will notice when using homebrew.

Terminal not working in Aptana IDE with OSX

This Terminal Emulator is not functional because no 'bash' shell could be found.
Please correct the problem and restart the ID
This is a brand new OSX laptop with 10.13.6, and I've been trying to replicate the setup with aptana 3. I'm not sure what I'm missing to be getting this error... previous threads with similar errors all seem to be dealing with windows environments
I had the same issue on macOS Mojave 10.14 with AptanaStudio 3.7.2 and could fix it based on the suggestion here (which is for linux) https://stackoverflow.com/a/6685532/5220160
So assuming your AptanaStudio.app sits in /Applications the fix would be chmod +x /Applications/AptanaStudio.app/Contents/Eclipse/plugins/com.aptana.terminal_3.0.0.201802081530/os/macosx/redtty

xcode simulator is installed but isn't available from terminal

I've installed xcode Version 5.1.1 (5B1008), and I've installed command line tools using xcode-select --install. I can check it using xcode-select -p.
but when I call simulator from terminal I get the error "XCode not installed." why?
note: I'm using AppGyver Steroids and I call simulator while working with it.
Since I didn't get any help on this, I removed the Xcode and installed it again and it worked properly. this won't be the best way, but at least solved the issue.

How do I eliminate multiple versions of Xcode?

I installed homebrew, and it keeps complaining that:
Warning: Your Xcode (4.2) is outdated
Please install Xcode 4.6.2.
As I learned there is no way to update Xcode so I just downloaded / installed the latest version.
The warning did not go away, and as I learned, I now have 2 versions installed:
and the warning did not go away
How do I now eliminate the old version? I just wanted to update it really.
The /Developer location is now obsolete. Xcode now runs entirely from the application bundle in /Applications/Xcode.app.
To remove it properly, run this from Terminal:
sudo /Developer/Library/uninstall-devtools --mode=all
Although, I've simply moved /Developer it to the Trash in the past and that seemed to work fine.
You'll need to go into Xcode.app's preferences afterwards and install Command Line Tools from Downloads->Components. I came across a tutorial for setting up homebrew for new Xcode installations.

Setting environment variables to compile node on Mountain Lion with XCode4.4

After upgrading to Mountain Lion (10.8) and XCode 4.4, and installing the XCode Command Line utilities from the XCode Preferences pane, I was unable to compile node.js (0.8.5) from source. Specifically, the configure script believed that I did not have a C compiler installed.
It looks to me like the environment variables required for the command line tools were lost somewhere along the way.
I tried sudo xcode-select --switch /Applications/Xcode.app but this did not appear to clear up the problem.
I had to perform these steps to make the node build system happy:
export PATH=$PATH:/Applications/Xcode.app/Contents/Developer/usr/bin
export CC='gcc --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/'
export CXX='g++ --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/'
After that I was able to compile and link.
So... why did I have to do this? Am I missing some easy step that could have done this for me automatically? Or am I in some bad state because I installed XCode before upgrading to Mountain Lion, and the XCode updater went off the rails?
Once you've updated to Mountain Lion and updated XCode 4.4, you have to reinstall the command line tools inside XCode.
Go to XCode/Preferences/Downloads/Components and click install on "Command Line Tools" and once it has downloaded and installed, you should once again have gcc and g++ in your (normal) path.
The correct thing to do was to reinstall the command-line tools from inside Xcode.
This was temporarily impossible because a malformed download list was being served by Apple, but the problem was fixed. The malformation was detectable by inspecting the output from Xcode in Console.
Once the tools were reinstalled, compilation worked normally.
http://docwiki.embarcadero.com/RADStudio/XE4/en/Installing_the_Xcode_Command_Line_Tools_on_a_Mac
Please refer the above link and try to install command line from apple developer portals

Resources