安裝musl-gcc
下載源代碼
編譯和安裝
參考源碼目錄下INSTALL文檔。 默認安裝目錄是:/usr/local/musl 配置環境變量: export PATH=$PATH:/usr/local/musl/bin/
編譯命令
cargo build --target x86_64-unknown-linux-musl --release
參考源碼目錄下INSTALL文檔。 默認安裝目錄是:/usr/local/musl 配置環境變量: export PATH=$PATH:/usr/local/musl/bin/
cargo build --target x86_64-unknown-linux-musl --release