試圖從 geph-official/geph4 (github.com) 取得源碼編譯。
編譯機器系統:Ubuntu 20.04.2 LTS x86_64 focal, rustc 1.43.0, cargo 1.43.0
github repo 只有兩個 script 文件,看來是在 osx 上使用交叉編譯產生不同平臺上的運行文件,但我只想編譯 Ubuntu 上的 native binaries。
當使用 cargo build 編譯時出錯:
$ cargo build --release --manifest-path=geph4-client/Cargo.toml
Compiling infer v0.2.3
Compiling constant_time_eq v0.1.5
Compiling vec_map v0.8.2
Compiling futures-micro v0.3.1
error[E0433]: failed to resolve: could not find `poll_with_tls_context` in `future`
error[E0433]: failed to resolve: could not find `from_generator` in `future`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0433`.
error: could not compile `futures-micro`.
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
求解決方法,謝謝。