読者です 読者をやめる 読者になる 読者になる

やってみる

アウトプットすべく己を導くためのブログ。その試行錯誤すらたれ流す。

chocolateyでMSYSを入手しようとするも失敗

前回のつづき。chocolateyからMSYSをインストールしようとするも失敗したログ。

choco install msys

失敗。

C:\tools>choco install msys
Chocolatey v0.10.0
Installing the following packages:
msys
By installing you accept licenses for the packages.
msys not installed. The package was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is pos
sible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\Documents and Settings\All Users\Application Data\c
hocolatey\logs\chocolatey.log).

Failures
 - msys - msys not installed. The package was not found with the source(s) liste
d.
 If you specified a particular version and are receiving this message, it is pos
sible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"

choco search msys

ヘルプによると検索コマンドがあるらしいので使ってみた。

C:\tools>choco search msys
Chocolatey v0.10.0
Cmder 1.3.0 [Approved] Downloads cached for licensed users
cmdermini 1.1.4.102 [Approved] Downloads cached for licensed users
ConEmu 16.9.14.0 [Approved]
Devbox-Git 1.8.1.20130422 - Possibly broken
git 2.10.0 [Approved]
git.install 2.10.0 [Approved] Downloads cached for licensed users
git.commandline 2.10.0 [Approved] Downloads cached for licensed users
GnuWin 0.6.3.1 - Possibly broken
haskell-stack 1.1.2 [Approved] Downloads cached for licensed users
kellyelton.devenvironment 1.0.0.11 - Possibly broken
mingw-get 1.0.2 - Possibly broken
msys2 20150916.0.1 [Approved] Downloads cached for licensed users - Possibly bro
ken for FOSS users (due to original download location changes by vendor)
msysgit 1.7.10.20120526 [Approved]
13 packages found.

Did you know Pro / Business automatically syncs with Programs and
 Features? Find out more at https://chocolatey.org/compare

"msys2 20150916.0.1"というのはあるらしい。

choco install msys2

失敗したっぽい。

C:\tools>choco install msys2
Chocolatey v0.10.0
Installing the following packages:
msys2
By installing you accept licenses for the packages.

msys2 v20150916.0.1 [Approved] - Likely broken for FOSS users (due to download l
ocation changes)
The package msys2 wants to run 'chocolateyinstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider setting
 'allowGlobalConfirmation'. Run 'choco feature -h' for more details.
Do you want to run the script?([Y]es/[N]o/[P]rint): y

Adding 'C:\Documents and Settings\All Users\Application Data\chocolatey\lib\msys
2' to PATH...
PATH environment variable does not have C:\Documents and Settings\All Users\Appl
ication Data\chocolatey\lib\msys2 in it. Adding...
WARNING: Failure attempting to let Explorer know about updated environment setti
ngs.
  The term 'C:\WINDOWS\System32\setx.exe' is not recognized as the name of a cmd
let, function, script file, or operable program. Check the spelling of the name,
 or if a path was included, verify that the path is correct and try again.
Get-BinRoot is going to be deprecated in v1 and removed in v2. It is being repla
ced with Get-ToolsLocation, however many packages no longer require a special se
parate directory since package folders no longer have versions on them. Some do
though and should continue to use Get-ToolsLocation.
Installing to 'C:\tools\msys32'
Downloading msys2 32 bit
  from 'http://repo.msys2.org/distrib/i686/msys2-base-i686-20150916.tar.xz'
Progress: 100% - Completed download of C:\Documents and Settings\Administrator\L
ocal Settings\Temp\msys2\20150916.0.1\msys2-base-i686-20150916.tar.xz (32.26 MB)
.
Download of msys2-base-i686-20150916.tar.xz (32.26 MB) completed.
Hashes match.
Extracting C:\Documents and Settings\Administrator\Local Settings\Temp\msys2\201
50916.0.1\msys2-base-i686-20150916.tar.xz to C:\tools...
C:\tools
Adding 'C:\tools\msys32' to PATH...
PATH environment variable does not have C:\tools\msys32 in it. Adding...
WARNING: Failure attempting to let Explorer know about updated environment setti
ngs.
  The term 'C:\WINDOWS\System32\setx.exe' is not recognized as the name of a cmd
let, function, script file, or operable program. Check the spelling of the name,
 or if a path was included, verify that the path is correct and try again.
Initializing MSYS2...
ERROR: This command cannot be executed due to the error: 指定されたファイルが見
つかりません。.
Environment Vars (like PATH) have changed. Close/reopen your shell to
 see the changes (or in powershell/cmd.exe just type `refreshenv`).
The install of msys2 was NOT successful.
Error while running 'C:\Documents and Settings\All Users\Application Data\chocol
atey\lib\msys2\tools\chocolateyinstall.ps1'.
 See log for details.
msys2 not installed. An error occurred during installation:
 Path to combine cannot be empty.
This is try 1/3. Retrying after 300 milliseconds.
 Error converted to warning:
 パス 'C:\Documents and Settings\All Users\Application Data\chocolatey\lib\msys2
\.chocolateyPending' の一部が見つかりませんでした。
This is try 2/3. Retrying after 400 milliseconds.
 Error converted to warning:
 パス 'C:\Documents and Settings\All Users\Application Data\chocolatey\lib\msys2
\.chocolateyPending' の一部が見つかりませんでした。
Maximum tries of 3 reached. Throwing error.
パス 'C:\Documents and Settings\All Users\Application Data\chocolatey\lib\msys2\
.chocolateyPending' の一部が見つかりませんでした。

インストールできなかった

WindowsXPでmsysがインストールできない。 もうXPで環境構築できる手立てがないのか。

私のPCには昔の環境があった。 MinGW、gcc4.6.2と一緒にあった。 フォルダにはmsys/1.0/

かなり古そうだが、これを使うか。

所感

ようやくこちらを試すことができそう。