DEV Community

Discussion on: Practical OCaml

Collapse
 
alieissa profile image
ali

I was having problems installing the packages.I was seeing the error

checking whether the C compiler works... no

Thought that was weird because I have gcc in my Mac.Got the error below when checking gcc

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

To fix it I ran xcode-select --install

Hope this helps anyone who is having the same problem.

Collapse
 
yawaramin profile image
Yawar Amin

Thanks Ali, great tip. Indeed, Apple Developer Tools setup is a prerequisite to installing opam on macOS.