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

Nix Build having 64-bit Architecture errors. #40

Closed
Kaleb47 opened this issue Aug 19, 2021 · 3 comments
Closed

Nix Build having 64-bit Architecture errors. #40

Kaleb47 opened this issue Aug 19, 2021 · 3 comments

Comments

@Kaleb47
Copy link

Kaleb47 commented Aug 19, 2021

Hello, I was trying to build the dependencies that i need to develop plutus, but I ran into an interesting error.

First i run nix build

nix build -f default.nix plutus.haskell.packages.plutus-core.components.library

Then I have this error returned.

error: attribute 'aarch64-darwin' missing, at /nix/store/cyfj6bd0n0ckvkm67mhjyg1qcvrfgsg9-source/artifact.nix:11:10

Could this have anything to do with the M1 chip on my mac?

Thanks I appreciate the help!

@carloskiki
Copy link

carloskiki commented Aug 22, 2021

Hi there!
As mentioned in this Github issue, there is no plan for Plutus to support apple M1 macs in the near future.

I believe the only fix is to run nix under Rosetta2 and here is how you do it:

1. Add these lines to your /etc/nix/nix.conf file:

system = x86_64-darwin
# system = aarch64-darwin
extra-platforms = x86_64-darwin aarch64-darwin

2. Then run this command to reboot nix: nix-env -iA nixpkgs.nix

Here is more information about this method.
And here is a detailed tutorial on how to install plutus on MacOS.

Hope this helps!

@Kaleb47
Copy link
Author

Kaleb47 commented Aug 22, 2021

Hi there!
As mentioned in this Github issue, there is no plan for Plutus to support apple M1 macs in the near future.

I believe the only fix is to run nix under Rosetta2 and here is how you do it:

1. Add these lines to your /etc/nix/nix.conf file:

system = x86_64-darwin
# system = aarch64-darwin
extra-platforms = x86_64-darwin aarch64-darwin

2. Then run this command to reboot nix: nix-env -iA nixpkgs.nix

Here is more information about this method.
And here is a detailed tutorial on how to install plutus on MacOS.

Hope this helps!

Don't worry, I was able to install everything through Rosetta. I had to run through an intel version of VS code. Everything works!

@luisantonioig
Copy link
Contributor

Hi @Kaleb47,

I hope this message finds you well.

I wanted to inform you that we have decided to close this issue as it pertains to an old branch of the course. Please note that these branches are not actively maintained and are kept for historical purposes.

We encourage you to utilize the branch that best suits your needs, whether it's the current version or any other relevant branch.

Please don't hesitate to reach out if you have any questions or require further assistance. We're here to help!

Thank you for your understanding and your valuable contributions.

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

No branches or pull requests

3 participants