Compiling codespan-reporting v0.11.1
Compiling deno_media_type v0.1.2
Compiling dynasm v1.2.3
error: failed to run custom build command for `denokv_proto v0.5.0`
Caused by:
process didn't exit successfully: `/tmp/cargo-installn2VqwA/release/build/denokv_proto-43f70196a3ae35a1/build-script-build` (exit status: 101)
--- stdout
cargo:rerun-if-changed=./schema/datapath.proto
cargo:rerun-if-changed=./schema/backup.proto
--- stderr
thread 'main' panicked at /home/game/users/masaki.motoike/.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
For more information: https://docs.rs/prost-build/#sourcing-protoc
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `deno v1.39.2`, intermediate artifacts can be found at `/tmp/cargo-installn2VqwA`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
概要
deno 公式にならって
cargo install deno --locked
で deno をインストールしようとしたが以下のようなエラー文とともに正しくインストールできなかった。protoc のインストールが必要だったので、その当時の対応手順をメモしておく。
対応手順
関連Issue/PR
参考文献