I tried to create a Polkadot Node by following the Readme instructions.
I was able to build it by running the following commands (copy/paste into Bash Terminal):
git clone https://github.com/paritytech/polkadot; cd polkadot; git checkout master; rustup update nightly; rustup target add wasm32-unknown-unknown --toolchain nightly; rustup update stable; rustup default stable; cargo install --git https://github.com/alexcrichton/wasm-gc --force; cargo install --git https://github.com/pepyakin/wasm-export-table.git --force; brew install openssl; brew upgrade openssl; rustc --version; cargo --version; ./build.sh; cargo build; cargo run -- --help; ./target/debug/polkadot --help;
I then tried to run a Polkadot Node with the following commands (which are equivalent):
./target/debug/polkadot -- --chain=dev --validator --key Alice -d /tmp/alice; cargo run -- --chain=dev --validator --key Alice -d /tmp/alice;
But instead it showed the following:
Blocking waiting for file lock on the git checkouts Blocking waiting for file lock on build directory
I found it was caused by CLion (Jetbrains IDE).
I solved the problem by closing CLion. I used Visual Studio Code editor instead, which also allows for debugging Rust code with breakpoints
cargo runworked fine.~/.cargo/.package-cacheas mentioned it this issue github.com/rust-lang/cargo/issues/9742.