AcalaNetwork / Acala

Acala - cross-chain DeFi hub and stablecoin based on Substrate for Polkadot and Kusama.
https://acala.network
GNU General Public License v3.0
741 stars 456 forks source link

Doesn't build, just fails, right out of the gate 2.23.0 #2722

Closed TurtleSnail closed 5 months ago

TurtleSnail commented 6 months ago

https://wiki.acala.network/integrate/acala/full-node

Describe the bug Doesn't build

Expected Behavior Expect it to build

Current Behavior Doesn't build, just fails, right out of the gate.

Steps to Reproduce

git clone https://github.com/AcalaNetwork/Acala.git
cd Acala/
git checkout 2.23.0
# cargo build --release --features with-acala-runtime
info: syncing channel updates for '1.73.0-x86_64-unknown-linux-gnu'
info: latest update on 2023-10-05, rust version 1.73.0 (cc66ad468 2023-10-03)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-std' for 'wasm32-unknown-unknown'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
info: installing component 'rust-std' for 'wasm32-unknown-unknown'
info: installing component 'rust-std'
info: installing component 'rustc'
info: installing component 'rustfmt'
error: failed to load manifest for workspace member `/root/Acala/node`

Caused by:
  failed to load manifest for dependency `acala-cli`

Caused by:
  failed to load manifest for dependency `acala-service`

Caused by:
  failed to load manifest for dependency `acala-rpc`

Caused by:
  failed to load manifest for dependency `acala-primitives`

Caused by:
  failed to load manifest for dependency `nutsfinance-stable-asset`

Caused by:
  failed to read `/root/Acala/ecosystem-modules/stable-asset/lib/stable-asset/Cargo.toml`

Caused by:
  No such file or directory (os error 2)

1. 2. 3. 4.

Additional context

ermalkaleci commented 6 months ago

Pull submodules first

TurtleSnail commented 6 months ago
# git submodule update --init --recursive
...
# cargo build --release --features with-acala-runtime
...
   Compiling tokio-stream v0.1.14
   Compiling librocksdb-sys v0.11.0+8.1.1
   Compiling flate2 v1.0.28
error: failed to run custom build command for `sc-network-bitswap v0.30.0`

Caused by:
  process didn't exit successfully: `/root/Acala/target/release/build/sc-network-bitswap-5137721f5e207099/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/prost-build-0.11.9/src/lib.rs:1457:10:
  Could not find `protoc` installation and this build crate cannot proceed without
      this knowledge. If `protoc` is installed and this crate had trouble finding
      it, you can set the `PROTOC` environment variable with the specific path to your
      installed `protoc` binary.If you're on debian, try `apt-get install protobuf-compiler` or download it from https://github.com/protocolbuffers/protobuf/releases
TurtleSnail commented 6 months ago

this seems to fix

apt install -y protobuf-compiler libprotobuf-dev

so why not put it in the instructions?

The Steps to Build:

apt install -y protobuf-compiler libprotobuf-dev
git clone https://github.com/AcalaNetwork/Acala.git
cd Acala
git checkout 2.23.0
git submodule update --init --recursive
cargo build --release --features with-acala-runtime
xlc commented 5 months ago

wiki updated to use instructions from readme