I am trying to install gcc 7.1 (http://hpc.sourceforge.net/) on a mac high sierra 10.13.6.
After download gcc compressed file, I run the following command,
gunzip gcc-7.1-bin.tar.gz
sudo tar -xvf gcc-7.1-bin.tar -C /.
it prompts out the following error
x usr/local/: Can't set user=0/group=0 for usr/localFailed to set file flags
I searched online and this seems a permission issue. I followed the steps in https://github.com/Homebrew/brew/issues/3228, and tried the two different ways that have been reported successful
sudo chown -R $(whoami) $(brew --prefix)/*
or create the /usr/local/include directory before running sudo chown -R $(whoami) $(brew --prefix)/*
to fix.
None of this work for me. Does anyone has any idea about for my problem? Not sure if this is an easy one.