These are instructions for building psibase on Mac OS X Sonoma 14.1 using M-series CPUs.
- Install the following brew libraries
brew install binaryen yarn node wasm-pack
-
Install rust https://www.rust-lang.org/tools/install
- If you have installed rust via homebrew, uninstall it
- make sure ~/.cargo/bin is in your path
- install wasm32 support for rust via:
rustup target add wasm32-unknown-unknown
For more information: https://rustwasm.github.io/wasm-pack/book/prerequisites/non-rustup-setups.html
- Install WASI_SDK 20.0
https://github.com/WebAssembly/wasi-sdk/releases set WASI_SDK_PREFIX to the root of the wasi-sdk release you downloaded
- Install icu4c
git clone https://github.com/unicode-org/icu
cd icu/icu4c/source
./configure
make
export ICU_LIBRARY_DIR = icu/icu4c/source/lib
export DYLD_LIBRARY_PATH = $DYLD_LIBRARY_PATH:$ICU_LIBRARY_DIR