Coinmonks
Published in

Coinmonks

Solana From Source

Build Solana Master

$ git clone https://github.com/solana-labs/solana
$ cd solana
#cargo="$("${readlink_cmd}" -f "${here}/../cargo")"
cargo="cargo"
$ ./scripts/cargo-install-all.sh --validator-only .
$ cargo build --release --bin solana-test-validator
$ cp target/release/solana-test-validator ./bin

Set Up Solana

$ solana config set --url https://api.devnet.solana.com
$ solana-keygen new
$ solana airdrop 5

Setup BPF SDK

$ cargo install --path .
$ ln -s $PROJECT_ROOT/bin/sdk ~/.cargo/bin/sdk

Compile Hello World Smart Contract

$ cargo build-bpf \
--manifest-path=./src/program-rust/Cargo.toml \
--bpf-out-dir=dist/program
$ solana program deploy ./dist/program/helloworld.so

Join Coinmonks Telegram Channel and learn about crypto trading and investing

Also, Read

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store