-
Notifications
You must be signed in to change notification settings - Fork 873
solana-test-validator Library not loaded error #200
Comments
I can confirm this error on Mac M1. Even after linking the right library the message I get is
It looks like M1 is not supported right now. can you guys put instructions on how to compile for M1 ? |
Linking openssl can be achieved with: But then you’ll run into this one: |
Yes. Just wanted to post here for anyone trying. I tried to install docker and then get the solanalabs/rust image and install the cli on it. But there is a problem with AVX support there as well. The message I get is this machine does not support AVX. Apparently there is no way to run solana without CUDA. Anyway if someone finds a way to run solana locally on a Mac M1 please let me know. I am able to run it on older Mac without any problem. |
@MohitKumar1991 can you try installing Rosetta on your M1 mac and see if that resolves your issue? If so, it would be helpful to have some instructions for other users with this issue written up in a new PR if you have time |
installing Rosetta didn't resolves my issue, got illegal hardware instruction error |
I was able to run
but still not able to deploy program to validator:
|
@MohitKumar1991 what did you go with ? Any solution till now ? |
same issue here, Mac M1. any ideas how to circumvene? |
-> Just install rosetta 2 and new ur terminal with rosetta. Then install Homebrew, openssl on rosetta terminal. But you will get new error like this By the way, I think this issue and issue #236 and |
The macos release binaries are not suitable for M1 silicon in any configuration as they are built for x86_64 arch with AVX and AVX2 extensions available. Building them from scratch under Rosetta is the workaround for now. See https://github.com/solana-labs/solana/blob/master/README.md#building |
You can set your config URL to https://api.devnet.solana.com |
Is someone working on fix for M1? |
Still the same issue here. Currently my workaround is to dev against devnet, not optimal but works... |
You can try with this guide of
|
Thanks will try tonight. Other option is to build validatir from source, but I've issue making it work with the anchor test calls. Else I can run the 1.7.11 test validator built from source on my m1 |
I am so thanksful for you taking the time to point me to these resources, merci @pierreneter |
And now IDK why but my rosetta terminal refuse to use the correct prefix, so installations still fail :/
I saw that prefix cannot be forced, but so solana is picking the wrong openssl build and arch is invalid. |
Someone needs to start working on full M1 compatibility, Apple is only making those from now on. It makes no sense to rely on Roseta today unless it is a temporary workaround (no one confirmed it is the case). |
I agree, but I need to build, so I do what it takes |
Yeah didn't really work for me, I hope this gets fixed soon |
It does work, you need to nuke any brew or other things installed for the M1, and to reinstall the whole stack with a rosetta term. Including solana built from source |
I'm using a rosetta terminal and still getting this issue. :/ |
It does work, I have done it on several computers, a few times. You really need to wipe everything from brew upward |
Nuking the brew already configured on the m1 and reinstalling the stack with a rosetta term not ideal for me, wondering if anyone knows there will be a proposed alternate solution in the works? |
Got it to work by just cloning terminal with rosetta and starting from scratch that route... |
Good article on Rosetta workaround: https://dev.to/nickgarfield/how-to-install-solana-dev-tools-on-an-m1-mac-kfn |
I get that this is an M1 problem, but literally anyone doing default install is going to be presented with this issue. I'm not sure why this is being closed. Further, Rosetta was always designed to be a work around/temporary. Rosetta isn't even supported in all regions - https://9to5mac.com/2021/03/02/apple-may-disable-rosetta-2-on-m1-macs-in-some-regions-macos-11-3-code-suggests/ I get that this is not the top priority, but it makes it quite difficult to support the Solana ecosystem. |
The solana-cli works on M1 now except the validator needs a recompile for M1. The edit/compile explained here worked. |
@jstarry Not sure why you closed this issue. A valid solution was not provided and it seems this will become evermore problematic as Apple will only be producing laptops with M1 chips. |
same problem here |
Ive tried everything multiple times. My computer is just throttling now due to the number of attempts. A full clean/reformat of the system might do it, but honestly that's ridiculous. |
For me work this:
|
It fails for me with the following output:
|
m1 chip
macOS 11.3.1
node version v14.16.1
when start
solana-test-validator
google searched this thread:
https://stackoverflow.com/questions/59006602/dyld-library-not-loaded-usr-local-opt-openssl-lib-libssl-1-0-0-dylib
but can't switch openssl vserion
tried different node versions
tried reinstall xcode and brew with no luck
The text was updated successfully, but these errors were encountered: