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

pkgconf not found #226

Open
toohoo opened this issue May 6, 2021 · 8 comments
Open

pkgconf not found #226

toohoo opened this issue May 6, 2021 · 8 comments

Comments

@toohoo
Copy link

toohoo commented May 6, 2021

What problems are you experiencing?

I've downloaded Rubyinstaller and installed it.
In the end it says that pkgconf not found.

Steps to reproduce

Download Rubyinstaller from https://rubyinstaller.org/downloads/
start installer
.. runs the msys2 installer
error message:


Fehler: Ziel nicht gefunden: pkgconf
Fehler: Ziel nicht gefunden: mingw-w64-x86_64-pkgconf
Install MSYS2 and MINGW development toolchain failed
Installation failed: pacman failed


What's the output from ridk version?

can't see no ridk version, where should it be?

@larskanis
Copy link
Member

What's the output from ridk version?

You can run "cmd" from the start menu and type "ridk version" there.

What version of RubyInstaller did you use. Can you please post some screenshots?

@toohoo
Copy link
Author

toohoo commented May 6, 2021 via email

@toohoo
Copy link
Author

toohoo commented May 7, 2021

C:\>ridk version
Der Befehl "ridk" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

@larskanis
Copy link
Member

There's no screenshot. What version of RubyInstaller did you use? How did you install it? Did you select "Add Ruby to PATH" in the installer?

@toohoo
Copy link
Author

toohoo commented May 10, 2021

Version:
I've downloaded rubyinstaller-3.0.1-1-x64.exe . It has a size of 14.594.552 B.

how install:

  • start installer
  • accept the licence
  • set components:
    [X] Ruby-3.0.1 base files
    [X] Ruby RI and HTML documentation
  • Installing
  • Completing:
    [X] Run 'ridk install' (MSYS2)
  • command line:
    Ruby Installer 2
  • Which components: 1,3
> sh -lc true
MSYS2 seems to be properly installed
Install MSYS2 and MINGW development toolchain ...
> pacman -S --needed --noconfirm autoconf autogen automake-wrapper diffutils file gawk grep libtool m4 make patch sed texinfo texinfo-tex wget mingw-w64-x86_64-binutils mingw-w64-x86_64-crt-git mingw-w64-x86_64-gcc mingw-w64-x86_64-gcc-libs mingw-w64-x86_64-headers-git mingw-w64-x86_64-libmangle-git mingw-w64-x86_64-libwinpthread-git mingw-w64-x86_64-make mingw-w64-x86_64-tools-git mingw-w64-x86_64-winpthreads-git pkgconf mingw-w64-x86_64-pkgconf
Warnung: file-5.37-1 ist aktuell -- Überspringe
Warnung: gawk-5.0.0-1 ist aktuell -- Überspringe
Warnung: grep-3.0-2 ist aktuell -- Überspringe
Warnung: m4-1.4.18-2 ist aktuell -- Überspringe
Warnung: sed-4.7-1 ist aktuell -- Überspringe
Warnung: wget-1.20.3-1 ist aktuell -- Überspringe
Fehler: Ziel nicht gefunden: pkgconf
Fehler: Ziel nicht gefunden: mingw-w64-x86_64-pkgconf
Install MSYS2 and MINGW development toolchain failed
Installation failed: pacman failed

@larskanis
Copy link
Member

I think your MSYS2 setup is too old. You might update the pacman database by "pacman -Sy" or running "ridk install 1 2 3" instead of the default of only components 1 and 3.

The other option is to use the RubyInstaller-Devkit version, which installs a fresh MSYS2 with "pkgconf" and others preinstalled. You can use this MSYS2 also for multiple rubies or other purposes. See here: https://github.com/oneclick/rubyinstaller2/wiki/FAQ#user-content-shared-devkit

@toohoo
Copy link
Author

toohoo commented May 20, 2021

Hello

  • uninstall MSYS2 in control panel
  • rubyinstaller-3.0.1-1-x64.exe
  • Run 'ridk install'
  • automatic started command line: RubyInstaller2
  • [1,2,3]
  • automatic started: msys2-x86_64-20190524.exe
  • [C:\Programm\msys64]
  • Start Menu [MSYS2 64bit]
  • Start MSYS64 now
  • see txt file
    rubyinstaller-fail.txt

@cdonnellytx
Copy link

cdonnellytx commented Dec 13, 2021

I encountered this same problem installing Ruby 3.0.2 x64 on Windows 10. The Ruby installer attempts to install a now-two-year-old version of MSYS2 (the above-mentioned 20190524) first, and its version of pacman is unable to install the dev tools.

The way I worked around it was to install the latest MSYS2 (20211130) standalone first, then install Ruby after it.

Would it be possible to have the Ruby installer attempt to install a newer version of MSY2 (preferably latest or a known-good version updated every few months)?

EDIT: clarify what version of MSYS2 fixed it

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

3 participants