simonjwright/distributing-gcc

getting permission denied while running ./doinstall shell script

Closed this issue · 2 comments

rm -fr /opt/gcc-11.1.0/lib/gcc/x86_64-apple-darwin15/11.1.0/rts*
rm -fr /opt/gcc-11.1.0/lib/gcc/x86_64-apple-darwin15/11.1.0/adainclude /opt/gcc-11.1.0/lib/gcc/x86_64-apple-darwin15/11.1.0/adalib
mkdir -p /opt/gcc-11.1.0
mkdir: /opt/gcc-11.1.0: Permission denied
make: *** [mkdirs] Error 1

That package is released on Sourceforge, not here!

That said, the README says

Install
Xcode is required.

Download the binary .pkg. It's not signed, so don't double-click on it; instead, right-click on it and Open. Accept the warning. You will be guided through the installation.

Also,

  • see this ticket for why you might not want to use 11.1.0
  • if you get a permissions problem like this, use sudo