Saw below error when running brew install hub and brew install gh
configure: error: in `/tmp/pkg-config-20220914-13522-pwtaq4/pkg-config-0.29.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
READ THIS: https://docs.brew.sh/Troubleshooting
When I look at config.log, I found below errors:
configure:3434: gcc-7 -V >&5
gcc-7: error: unrecognized command line option '-V'
configure:3445: $? = 1
configure:3434: gcc-7 -qversion >&5
gcc-7: error: unrecognized command line option '-qversion'; did you mean '--version'?
I think it's because we should use -v instead -V or -qversion, but how can I change that?