瀏覽代碼

Update Readme.md

An update to Catalina requires to set the CPATH variable
cyBerta 5 年之前
父節點
當前提交
d03695f01e
共有 1 個文件被更改,包括 10 次插入1 次删除
  1. 10 1
      README.md

+ 10 - 1
README.md

@@ -41,7 +41,7 @@ Now build and run - e.g. by pressing Cmd-r - or click on the triangle at the top
 
 ![Screenshot](docs/images/screenshot_build_and_run.png)
 
-If Xcode complains about missing header files (different mac versions may or may not install all headers),
+If you're on MacOS Mojave and Xcode complains about missing header files (different mac versions may or may not install all headers),
 you can force-install them with the following command:
 
 ```bash
@@ -53,3 +53,12 @@ If you get an error about that file not existing, you probably simply don't have
 ```bash
 $ xcode-select --install
 ```
+
+On MacOS Catalina the include paths changed, `/usr/include` doesn't exist anymore. 
+You'll need to manually set the `CPATH` variable to specify the location of the header files:
+
+```
+export CPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
+```
+Note: the default terminal switched to zsh on MacOS Catalina. All your exported variables have to move to ~/.zshrc
+