TermuxでCARGO_BUILD_TARGETを指定しろというエラーを解消する
OCI CLIを入れようとしたときに発生した
code:plain
error: Don't know the correct rust target for system type aarch64-unknown-linux-android. Please set the CARGO_BUILD_TARGET environment variable.
end of output
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cryptography
Failed to build cryptography
ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects
https://gyazo.com/622e97108c3b6d526891c8362adb3708
対処法
https://github.com/pyca/cryptography/issues/6679
code:sh
export CARGO_BUILD_TARGET=aarch64-linux-android
をしてから実行
環境によって以下のどれかになる
code:plain
$ rustc --print target-list | grep android
aarch64-linux-android
arm-linux-androideabi armv7-linux-androideabi
i686-linux-android
thumbv7neon-linux-androideabi
x86_64-linux-android
#Termux #OCI