To install solana + Anchor dev worksapce (M1 mac):
Solana:
sh -c "$(curl -sSfL https://release.solana.com/v1.8.0/install)"
Anchor:
cargo install --git https://github.com/project-serum/anchor --tag v0.18.2 anchor-cli --locked
anchor --version
New project:
anchor init <new-project-name>
Builds programs in the workspace targeting Solana's BPF runtime and emitting IDLs in the target/idl
directory
anchor build --verifiable
When trying to run the solana-test-validator to create a local test node this error pops up:
dyld[50832]: Library not loaded: /usr/local/opt/[email protected]/lib/libssl.1.1.dylib
Referenced from: /Users/sensei/.local/share/solana/install/releases/1.8.5/solana-release/bin/solana-test-validator
Reason: tried: '/usr/local/opt/[email protected]/lib/libssl.1.1.dylib' (no such file), '/usr/local/lib/libssl.1.1.dylib' (no such file), '/usr/lib/libssl.1.1.dylib' (no such file)
zsh: abort solana-test-validator
Trying this stackoverflow solution doesn't seem to work (at least in my machine hehe)
Then found this issue on github which led me to this other one but this last one stopped working.
The last issue on this topic seemed to be #2
At this point (I think) the correct version of openssl is installed but still unable to run solana-test-validator
Other related issue
Last valuable resource i could find was this dev.to post
I got to the conclusion that M1 support is not on the priority list, and that solana dev workflow is by now very Rosseta dependent which sucks because Rosseta was meant to be temporary and this people are using it as a requirement to develop on the Solana ecosystem