Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 933 Bytes

OSX_README.md

File metadata and controls

38 lines (25 loc) · 933 Bytes

These are instructions for building psibase on Mac OS X Sonoma 14.1 using M-series CPUs.

  1. Install the following brew libraries
brew install binaryen yarn node wasm-pack 
  1. 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

  1. 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

  1. 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