Can't compile C program on a Mac after upgrade to Mojave

前端 未结 15 959
陌清茗
陌清茗 2020-11-22 06:58

I have used the gcc command on the terminal to compile C programs but all of a sudden, after an update to my Mac\'s OS (to macOS 10.14 Mojave, and XCode 10.0), I started rec

15条回答
  •  旧巷少年郎
    2020-11-22 07:48

    I had the same issue with Golang (debugging with Goland) after migration. The only (ridiculous) thing that helped is renaming the following folder:

    sudo mv /usr/local/include /usr/local/old_include
    

    Apparently it is related to old files that homebrew installed and now broken.

提交回复
热议问题