Closed satriobio closed 9 months ago
Workaround
sudo apt install -y libhdf5-serial-dev
Nice one! I think sudo apt install -y libhdf5-dev
might install the headers as well. Did you run that before installing libhdf5-serial-dev
? Just wondering if both are required or not.
Thanks for your comment. I found the compilation works without installing libhdf5-dev
.
In addition is it a good idea to state the protoc
version (>=libprotoc 3.6.1)? The protoc
installed using apt in 20.04 is 3.6.1 (it is the latest in 22.04) and will throw following error
cargo run --release -- --help
Compiling tokio-macros v2.1.0
...
Compiling tokio-stream v0.1.14
Compiling tokio-rustls v0.23.4
Compiling ndarray-npy v0.8.1
Compiling h2 v0.3.21
Compiling tower v0.4.13
error: failed to run custom build command for `icarust v0.1.0 (/Icarust)`
Caused by:
process didn't exit successfully: `/Icarust/target/release/build/icarust-4a69da8b985baa40/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-changed=proto/minknow_api/minion_device.proto
cargo:rerun-if-changed=proto/minknow_api/data.proto
cargo:rerun-if-changed=proto/minknow_api/protocol.proto
cargo:rerun-if-changed=proto/minknow_api/statistics.proto
cargo:rerun-if-changed=proto/minknow_api/acquisition.proto
cargo:rerun-if-changed=proto/minknow_api/manager.proto
cargo:rerun-if-changed=proto/minknow_api/protocol_settings.proto
cargo:rerun-if-changed=proto/minknow_api/basecaller.proto
cargo:rerun-if-changed=proto/minknow_api/analysis_configuration.proto
cargo:rerun-if-changed=proto/minknow_api/promethion_device.proto
cargo:rerun-if-changed=proto/minknow_api/instance.proto
cargo:rerun-if-changed=proto/minknow_api/log.proto
cargo:rerun-if-changed=proto/minknow_api/keystore.proto
cargo:rerun-if-changed=proto/minknow_api/rpc_options.proto
cargo:rerun-if-changed=proto/minknow_api/device.proto
cargo:rerun-if-changed=proto/
--- stderr
Error: Custom { kind: Other, error: "protoc failed: Unknown flag: --experimental_allow_proto3_optional\n" }
warning: build failed, waiting for other jobs to finish...
Workaround
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
curl -LO $PB_REL/download/v3.15.8/protoc-3.15.8-linux-x86_64.zip
unzip protoc-3.15.8-linux-x86_64.zip
cp bin/protoc /usr/bin/
protoc --version
Trying to run Icarust@V0.3 on fresh ubuntu:20.04