autumnai/leaf-examples

Error when compiling: "Error while trying to execute `capnp compile`"

hsaputra opened this issue · 2 comments

When trying to compile the example it error out with message:

cargo build --release
   Compiling leaf v0.2.1 (file:///home/hsaputra/open/github/leaf)
Build failed, waiting for other jobs to finish...
failed to run custom build command for `leaf v0.2.1 (file:///home/hsaputra/open/github/leaf)`
Process didn't exit successfully: `/home/hsaputra/open/github/leaf/target/release/build/leaf-db74caf1e49d43ed/build-script-build` (exit code: 101)
--- stderr
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: Error { kind: Failed, description: "Error while trying to execute `capnp compile`: Failed: No such file or directory (os error 2).  Please verify that version 0.5.2 or higher of the capnp executable is installed on your system. See https://capnproto.org/install.html" }', ../src/libcore/result.rs:741

Which OS are you using?
On ubuntu you can first try to install capnproto, then try running build again.
sudo apt-get install capnproto

ah, yes looks like that helps