-
Notifications
You must be signed in to change notification settings - Fork 4.7k
start validator solana-test-validator
Library not loaded error
#17222
Comments
I had the same issue, but on Intel chip, and a simple EDIT: i didn't follow any further steps after installation, however, Homebrew suggested this:
|
I tried |
This all needs to be done in Rosetta on M1, AFAIK |
ok, I installed Rosetta, and then installed x86 brew follow this stockoverflow post link, then installed [email protected] then smylink x86 brew openssl to then ran
test-ledger/validator.log
|
What's the solution here? I'm on an M1, running 11.5.2 and solana v1.7.10 and I've tried uninstalling / reinstalling openssl then rebuilding the solana tools from source using
Everything other than I've tried re-installing homebrew. I've tried in a standard terminal as well as a rosetta 2 terminal. |
I am facing the same issue as @gxxcastillo :( |
Have you built the |
@cdrappi. After a lot of trial and error I was able to get it running via a manual build and run (sorry, I didn't document my steps, I should have). Now, I'm running into this other issue, I wonder if it might be related to me being on an M1. I've tried different demos and all of them have the same issue, when I try to deploy my program. Basically it just gets stuck at |
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. |
@gxxcastillo Hi, i'm running into those issues now. Did you build from source on M1? I can't build due to lots of errors |
Okay it works |
Guys I summarized what I encountered in this note. Hope it helps someone |
how do you Delete solana to start from scratch. |
@dif71214 actually good question |
@dif71214, @rav3nh0lm, you may just need to delete the solana folder you checked out from github and the There are instruction here in case you need to uninstall Rust: |
Make sure to install Rust using the x86_64-apple-darwin script via cd sdk/cargo-build-bpf
cargo install --path .
ln -s $PROJECT_ROOT/bin/sdk ~/.cargo/bin/sdk |
This issue has been automatically locked since there has not been any activity in past 7 days after it was closed. Please open a new issue for related bugs. |
Problem
I followed the solana hello world guide to the step
solana-test-validator
error:
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
no [email protected] 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/[email protected]
from brew opensslget error
/usr/local/opt/[email protected]/lib/libssl.1.1.dylib: mach-o, but wrong architecture
brew openssl in
/opt/homebrew/Cellar/[email protected]/1.1.1k
The text was updated successfully, but these errors were encountered: