autumnai / leaf-examples

Examples for the Hacker's Machine Learning Framework Leaf
78 stars 17 forks source link

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

Closed hsaputra closed 7 years ago

hsaputra commented 8 years ago

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
prmejc commented 7 years ago

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

hsaputra commented 7 years ago

ah, yes looks like that helps