編譯 geph4 client 出錯,求解決方法

試圖從 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

求解決方法,謝謝。

試過,沒有解決,仍然報同樣的錯: failed to resolve: could not find poll_with_tls_context in future

Rust版本太舊,請用rustup升級到最新版本

請問 geph4 可以成功編譯的 rust 最低版本是多少?希望官方能寫個 Build.md 放在 repo 裏。

『最新版本』是一個非常糟糕的説法,因爲這個版本會隨時間的變化而變化。

建議 Rust 官網安裝 rustup,並且切換到 nightly 分支進行編譯

https://rust-lang.github.io/rustup/installation/index.html#installing-nightly

https://rust-lang.github.io/rustup/overrides.html#default-toolchain

1 个赞