6
5

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 3 years have passed since last update.

scoopでgccがインストール出来ないのでdorado/nuwen-mingw-gccをインストールする

Posted at

Windowsのpackage管理にscoopを使っているのですが最近以下のインストールコマンドでgccがインストール出来なくなっています。

$ scoop install gcc
Installing 'gcc' (9.3.0-2) [64bit]
mingw-w64-x86_64-binutils-2.34-1-any.pkg.tar.xz (13.9 MB) [===================================================] 100%
Checking hash of mingw-w64-x86_64-binutils-2.34-1-any.pkg.tar.xz ... ok.
mingw-w64-x86_64-crt-git-8.0.0.5815.9517d302-1-any.pkg.tar.xz (3.1 MB) [======================================] 100%
Checking hash of mingw-w64-x86_64-crt-git-8.0.0.5815.9517d302-1-any.pkg.tar.xz ... ok.
The remote server returned an error: (404) Not Found.
URL http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-expat-2.2.9-1-any.pkg.tar.xz is not valid

Can't install gcc on Win 10, 64 bit. #4235 | Github

うーむ、どうやらリンクが切れているようです。

このままではcgoがbuild出来なくて困ったので代価としてdorado/nuwen-mingw-gccを導入することにしました。
gccとリンカーもセットでインストールしておきます。

$ scoop bucket add dorado https://github.com/chawyehsu/dorado
$ scoop install dorado/llvm-mingw dorado/nuwen-mingw-gcc
$ gcc --version
gcc.exe (GCC) 9.2.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

取り敢えずgccが使えるようになりました。

6
5
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
6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?