Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue] Make install scripts install Rosetta 2 if not present on ARM64 #1548

Closed
Petermarcu opened this issue Feb 11, 2023 · 2 comments · Fixed by #1733
Closed

[Issue] Make install scripts install Rosetta 2 if not present on ARM64 #1548

Petermarcu opened this issue Feb 11, 2023 · 2 comments · Fixed by #1733

Comments

@Petermarcu
Copy link
Member

Here we mask the fact that its ARM64. When we do that, we need to ensure the emulator is installed:

Here is some sample bash with how it might be done:

    if /usr/bin/pgrep oahd >/dev/null 2>&1; then
        echo "Rosetta is already installed and running. Nothing to do."
    else
        /usr/sbin/softwareupdate –install-rosetta –agree-to-license
       
        if [[ $? -eq 0 ]]; then
        	echo "Rosetta has been successfully installed."
        else
        	echo "Rosetta installation failed!"
        	exitcode=1
        fi
    fi
@ghost ghost added the needs-triage For new issues label Feb 11, 2023
@ghost ghost removed the needs-triage For new issues label Feb 13, 2023
@rajeshkamal5050 rajeshkamal5050 added this to the Mar 8 - Release 0.7 milestone Feb 13, 2023
@rajeshkamal5050
Copy link
Contributor

@danieljurek

Currently, users on M1/M2 see this after a successful azd installation,

rajeshkamal@Rajeshs-MBP ~ % azd
zsh: bad CPU type in executable: azd

Can we fix and enhance docs,

Let us continue discussing here #1314 on the options we have around ARM64(Linux/M1/M2) support.

@rajeshkamal5050
Copy link
Contributor

@danieljurek please take a look at the doc update MicrosoftDocs/azure-dev-docs#1087

Let us also look into if we can get emulator installed during installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants