1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

cargo buildで「error: linker `link.exe` not found」をVisual Studioを使わずに解決

Posted at

「scoop install rustup」でrustupをインストールして、cargo buildしたら以下のエラー

error: linker link.exe not found
|
= note: program not found

調べてみると、Visual StudioのC++開発ツールをインストールすると解決するとのこと
だがとりあえずbuildしたいだけなので、Visual Studioをインストールするのはめんどくさい

解決方法

「scoop install rustup-gnu mingw」でGNU版のrustupをインストールする
 
参考にもあるようにrustupにはMSVC版とGNU版があり、「scoop install rustup」ではMSVC版がインストールされるためVisual Studioが必要になるらしい
 

参考

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?