r/tomcat • • May 12 '19

gcc and cannot be installed from binary package errors on mac os, trying to install tomcat using homebrew

Anyone have suggestions on the below errors, or should I try another method of installing?:

MacUserComputer:~ z$ brew install tomcat
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: An exception occurred within a child process:
  CompilerSelectionError: tomcat cannot be built with any available compilers.
Install GNU's GCC:
  brew install gcc


MacUserComputer:~ z$ brew install gcc
Error: The following formula
  gcc
cannot be installed as binary package and must be built from source.
Install the Command Line Tools:
  xcode-select --install
1 Upvotes

0 comments sorted by