solana: start validator `solana-test-validator` Library not loaded error
Problem
I followed the solana hello world guide to the step solana-test-validator
error:
dyld: Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib
Referenced from: /Users/123/.local/share/solana/install/active_release/bin/solana-test-validator
Reason: image not found
zsh: abort solana-test-validator
m1 chip macOS 11.3.1 node version v14.16.1
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
Error: Unknown command: switch
which openssl
/usr/bin/openssl
no openssl@1.1 folder in /usr/local/opt/
tried different node versions,
tried update upgrade brew,
tried brew uninstall then install openssl
tried brew install different version of openssl
tried symlink to brew openssl
tried manually copy the file to /usr/local/opt/openssl@1.1 from brew openssl
get error /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib: mach-o, but wrong architecture
brew openssl in /opt/homebrew/Cellar/openssl@1.1/1.1.1k
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (7 by maintainers)
Guys I summarized what I encountered in this note. Hope it helps someone
Update: My issues have been resolved. I have the solana-test-validator running on my M1 and I’ve been able to build and deploy. Going back through and making sure everything: Homebrew, openssl, rust, and the solana tools were installed on x86 and that fixed it.
I had the same issue, but on Intel chip, and a simple
brew install openssl@1.1solved it for me.EDIT: i didn’t follow any further steps after installation, however, Homebrew suggested this:
how do you Delete solana to start from scratch.