Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSYS2 + MINGW fails to install properly #88

Closed
stakach opened this issue Nov 5, 2017 · 5 comments
Closed

MSYS2 + MINGW fails to install properly #88

stakach opened this issue Nov 5, 2017 · 5 comments

Comments

@stakach
Copy link

stakach commented Nov 5, 2017

I solved the problem by running the pacman install again, except I removed the mingw-w64-x86_64-winstorecompat-git package

What problems are you experiencing?

Install MSYS2 and MINGW development toolchain ...
> pacman -S --needed --noconfirm autoconf autoconf2.13 ...
warning: file-5.28-2 is up to date -- skipping
warning: gawk-4.1.4-1 is up to date -- skipping
warning: grep-2.26-1 is up to date -- skipping
warning: m4-1.4.17-4 is up to date -- skipping
warning: sed-4.2.2-2 is up to date -- skipping
warning: wget-1.18-1 is up to date -- skipping
error: target not found: mingw-w64-x86_64-winstorecompat-git
Install MSYS2 and MINGW development toolchain failed
Installation failed: pacman failed

Steps to reproduce

ridk install on a fresh install

What's the output from ridk version?

---
ruby:
  path: C:/Ruby24-x64
  version: 2.4.2
  platform: x64-mingw32
ruby_installer:
  package_version: 2.4.2-2
  git_commit: a1b07ad
msys2:
  path: C:\msys64
  title: MSYS2 64bit
  version: '20161025'
cc: x86_64-w64-mingw32-gcc (Rev2, Built by MSYS2 project) 6.2.0
sh: GNU bash, version 4.3.46(2)-release (x86_64-pc-msys)
os: Microsoft Windows [Version 10.0.15063]
@larskanis
Copy link
Member

If winstorecompat can not be found, it usually means, that the package database isn't up-to-date. So it seems to me, that ridk install 2 wasn't executed?

@stakach
Copy link
Author

stakach commented Nov 9, 2017

Literally a fresh install of windows and ruby installer.
ridk install is executed as part of the installation - not super hard to check.

pacman -S --needed --noconfirm mingw-w64-x86_64-winstorecompat-git will fail

@larskanis
Copy link
Member

Did you choose ridk install option 3 alone? Option 2 updates the package database (pacman -Sy) and must be called first. Alternatively just pressing enter in ridk install makes sure that all tools are installed properly. See also this stackoverflow question .

@stakach
Copy link
Author

stakach commented Nov 9, 2017

I didn't select option 2... Also sorry that my last message was a bit blunt (uncool of me) and thanks for the work you've put into this project. It is hugely useful!

So I guess that solves the issue.
I do still think the instructions seem to indicate that step 2 is optional especially since step 3 also runs step 1 - maybe updating the text to say something like "On initial installation run each step in order" and change the wording of step 3 to "install MingW development toolchain" even though it does more

larskanis added a commit that referenced this issue Dec 19, 2017
This package is not part of msys2-20161025 and therefore install fails
when no MSYS2 update (ridk install 2) was done before.
Since I don't know any gem which required this package, it's safe to
not install it per default.
This makes install step 2 optional.

See also #88
@larskanis
Copy link
Member

I removed package winstorecompat-git from default dev tools in commit 50100e2, so that option 2 is now optional. Thanks for highlighting this!

larskanis added a commit that referenced this issue Dec 20, 2017
RubyInstaller-2.4.3-1 - 2017-12-19

### Changed
- Update to ruby-2.4.3, see [release notes](https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/).
- Ignore invalid character encodings when scaning registry for MSYS2.
  [#86](#86)
- Update of the SSL CA certificate list.
- Uninstall old RubyInstaller version when doing update.
  It avoids broken and orphaned links in the startmenu
  [#78](#78 (comment)).
  See also [updating RubyInstaller](https://github.com/oneclick/rubyinstaller2/wiki/FAQ#q-what-is-recommended-way-to-update-a-ruby-installation).

### Removed
- Remove package 'winstorecompat' from default dev tools, to make `ridk install` step 2 optional.
  [#88](#88)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants