Skip to content

Instantly share code, notes, and snippets.

@PhyrexTsai
Last active December 4, 2017 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PhyrexTsai/e83f7ec61ec6e7011cb340908fb439cd to your computer and use it in GitHub Desktop.
Save PhyrexTsai/e83f7ec61ec6e7011cb340908fb439cd to your computer and use it in GitHub Desktop.

Instruction of install Cardano 1.0 on MacOS

This is the document explain how to connect to Cardano on MacOS

Install cardano-sl

Use this tutorial: https://github.com/input-output-hk/cardano-sl/blob/master/docs/how-to/build-cardano-sl-and-daedalus-from-source-code.md

Find nix-build under /nix/store/

cd /nix/store/
find ./ -name nix-build

Run this below, to start build cardano-sl-1.0

/nix/store/{hashkey}/bin/nix-build -A cardano-sl-static --cores 0 --max-jobs 2 --no-build-output --out-link cardano-sl-1.0

Connect Cardano to mainnet

Under /cardano-sl folder, run this command below

/nix/store/{hashkey}/bin/nix-build release.nix -A connect.mainnetWallet -o connect-to-mainnet

After build, we will see connect-to-mainnet, and run it

./connect-to-mainnet

Build local wallet

Download Haskell stack to use stack build https://docs.haskellstack.org/en/stable/install_and_upgrade/

brew install haskell-stack
xcode-select --install
stack setup

symbol link of nix-shell & nix-build

ln -s /nix/store/{hashkey}/bin/nix-build /usr/local/bin/nix-build
ln -s /nix/store/{hashkey}/bin/nix-shell /usr/local/bin/nix-shell

Install libiconv

brew install libiconv

If there is any issue on it, change this line add --nix after --dependencies-only, and run ./scripts/build/cardano-sl.sh https://github.com/input-output-hk/cardano-sl/blob/master/scripts/build/cardano-sl.sh#L206

Run command below https://github.com/input-output-hk/cardano-sl/blob/master/docs/how-to/build-cardano-sl-and-daedalus-from-source-code.md#stack-with-nix-for-system-libraries-mixed-mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment