Intmaxのセットアップ(WSL)
追記:Ubuntuのインストールガイドが更新されています。
https://github.com/InternetMaximalism/intmax-rollup-cli/blob/main/docs/for_ubuntu.md
intmaxのテストネットが本日出たらしいのでやってみました。
https://github.com/InternetMaximalism/intmax-rollup-cli
git clone git@github.com:InternetMaximalism/intmax-rollup-cli.git
cd intmax-rollup-cli
cargo --version # 1.65.0-nightly
cargo build --release
alias intmax='./target/release/intmax'
intmax config aggregator-url https://prealpha.testnet.intmax.io/
Setupには上のように書いてあるのですが、この通りに上手くいかなかったので、
intmax -h
まで動いた方法をメモとし残します。
私はWSLでやっています。WSLが入っているところからスタートです。
1. git clone
まずgitcloneです。私はなんかできなかったのですが、
https://go-journey.club/archives/7344
この記事で解決しました。
2. Rust
次にrustです
sudo curl https://sh.rustup.rs -sSf | sh
source "$HOME/.cargo/env"
cd intmax-rollup-cli
cargo --version
cargo build --release
までやると、
error: linker `cc` not found
が出てしまいました。
error: linker cc
not found
sudo apt-get update
sudo apt install build-essential
でerror: linker `cc` not found
は解決しました。
また、cargo build --release
をすると
error: failed to run custom build command for `openssl-sys v0.9.78`
が出ました。
error: failed to run custom build command for openssl-sys
sudo apt-get install libssl-dev
で解決しました。
Rustのセットアップは、多分を公式を見たほうがいいと思います。
3. intmax -h まで
以降はSetupの通りです。
cargo build --release
alias intmax='./target/release/intmax'
intmax config aggregator-url https://prealpha.testnet.intmax.io/
intmax -h
なんとか上手くいきました。
参考
https://hide.ac/articles/rcXN-ghJV
https://github.com/InternetMaximalism/intmax-rollup-cli
https://go-journey.club/archives/7344
https://koma.blog/wsl2-ubuntu-rust/
https://qiita.com/nacika_ins/items/465e89a7b3f