I’m attempting to put in the Foundry-ZKSync suite of purposes for sensible contract improvement on my M1 Mac. Nevertheless, I’m encountering errors associated to the libusb library in the course of the set up of Forge. The system seems to seek for this library in a listing usually related to x86_64 structure, inflicting points.
Setup and Steps Taken:
- Mac Specs: M1 structure (arm64).
- Instruments Used: Visible Studio Code (VSC) as my major IDE.
- Atmosphere Configuration: Created a reproduction terminal in VSC: one set for arm64 and the opposite configured utilizing Rosetta 2 for compatibility with x86_64 software program.
- Set up Methodology: Adopted the Foundry set up information and utilized Homebrew for library dependencies.
The Downside:
The set up course of completes with the message:
Cleanup accomplished. Set up accomplished efficiently!
Verifying set up...
dyld[63508]: Library not loaded: /decide/homebrew/decide/libusb/lib/libusb-1.0.0.dylib
Referenced from: <55650B3B-25E0-37FD-9B04-8D7065D9302B> /Customers/ericchelini/.foundry/bin/forge
Cause: tried: '/decide/homebrew/decide/libusb/lib/libusb-1.0.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/decide/homebrew/decide/libusb/lib/libusb-1.0.0.dylib' (no such file), '/decide/homebrew/decide/libusb/lib/libusb-1.0.0.dylib' (no such file)
Set up verification failed. Forge shouldn't be correctly put in.
What I’ve Tried:
Twin Terminal Configuration
- Used one terminal in arm64 mode for installations and one other in Rosetta 2 mode for x86_64 compatibility.
Libusb Library:
- Ensured libusb was put in through Homebrew (brew set up libusb).
- Verified paths and symbolic hyperlinks for /decide/homebrew/decide/libusb.
Questions and Clarifications:
- How can I make sure that the set up technique of Forge acknowledges and makes use of the proper structure (arm64) for my M1 Mac?
- Are there particular configuration information or atmosphere variables that should be set for Foundry or libusb to work on arm64 methods?
- Is there a further workaround for working installations that anticipate x86_64 binaries on an arm64 system with out utilizing Rosetta 2?
Any strategies or options to assist me set up Forge appropriately on my M1 Mac could be vastly appreciated.