简体   繁体   English

MacOS Ventura 更新更改了终端命令位置

[英]MacOS Ventura update changed terminal command location

I recently updated my Mac to MacOS Ventura Beta, causing terminal commands like gcc, pyhton3 and pip3 to not work.我最近将我的 Mac 更新为 MacOS Ventura Beta,导致 gcc、pyhton3 和 pip3 等终端命令无法运行。 Until last week I was able to use them normally, but after the update terminal asks me to download XCode Commandline Developer Tools.直到上周我才能够正常使用它们,但是在更新终端要求我下载 XCode Commandline Developer Tools 之后。

The problem that came with this, is that VSCode is unable to find include files for C/C++.随之而来的问题是 VSCode 无法找到 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.我尝试重新安装 VSCode,与 C/C++ 相关的 VSCode 扩展,甚至更改 VSCode 中 C 文件的#include_path,但似乎没有任何效果。

Any help would be very much appreciated:).任何帮助将不胜感激:)。

I wanted to put my solution here.我想把我的解决方案放在这里。

The new macOS Ventura is officially released now.新的 macOS Ventura 现已正式发布。 I encountered the same issue you described.我遇到了你描述的同样问题。 The solution was pretty simple, just to install XCode.解决方案非常简单,只需安装 XCode。

Run this command in Terminal.app :Terminal.app中运行此命令:

xcode-select --install
  • Let it install the XCode.让它安装 XCode。
  • Restart your VSCode.重新启动你的 VSCode。

You should be working correctly now.你现在应该可以正常工作了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM