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
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
xcode-select --install
Hope this helps anyone who is having the same problem.
Thanks Ali, great tip. Indeed, Apple Developer Tools setup is a prerequisite to installing opam on macOS.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I was having problems installing the packages.I was seeing the error
Thought that was weird because I have
gccin my Mac.Got the error below when checkinggccTo fix it I ran
xcode-select --installHope this helps anyone who is having the same problem.
Thanks Ali, great tip. Indeed, Apple Developer Tools setup is a prerequisite to installing opam on macOS.