Skip to content

Instantly share code, notes, and snippets.

@dwi2
Last active February 22, 2021 11:58
Show Gist options
  • Save dwi2/fa089d57fd4861f6ff6b09887fcb4ebf to your computer and use it in GitHub Desktop.
Save dwi2/fa089d57fd4861f6ff6b09887fcb4ebf to your computer and use it in GitHub Desktop.
Notes for my own rust learning

Path related problem

linker cc not found problem on Mac OSX Catalina with XCode command line tools 11.0.3

  • clang, cc, dsymutil are located at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/
  • Write the path above in $PATH is not helping. rustc still complains linker cc not found
  • Workaround
    • Make symlink cc, clang, dsymutil in $HOME/.cargo/bin
    • I am not sure if there is any side-effect

'sys/types.h' file not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment