はじめに
Alpine Linux では Rustup が パッケージ として提供されています。Rust もあります。
Docker で Alpine Linux 上に Rust の開発環境を構築しました。
そしてその過程においてですが、以下のようなエラーが発生しました。cargo プロジェクトを試験的に動かした時のことです:
$ cargo run
出力は以下の通りでした:
Compiling alpine-rust-example v0.1.0 (/(...)/alpine-rust-example)
error: linker `cc` not found
|
= note: No such file or directory (os error 2)
error: could not compile `alpine-rust-example` due to previous error
こちらの修正方法について記述します。
環境
解決の流れ
* 以下、doas
の代わりに sudo
を使っても大丈夫です。
…
[gs-fb-comments]