I tried installing the
dfx to a Mac with M1 CPU. Following the Document:
sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
And it failed:
info: ... Do you agree and wish to install the DFINITY Canister SDK [y/N]? y dfinity-sdk: unknown CPU type: arm64 exit
As asking help before: Unrecognized OS type - #6 by flyq
install.sh, modified it from:
case "$_cputype" in x86_64 | x86-64 | x64 | amd64) _cputype=x86_64 ;; *) err "unknown CPU type: $_cputype" ;;
case "$_cputype" in x86_64 | x86-64 | x64 | amd64) _cputype=x86_64 ;; *) _cputype=x86_64 ;;
./install.sh in a terminal, the dfx will be installed successfully.
After testing some examples, everything runs well. If there any problems, I will report it.