oneclick / rubyinstaller2

MSYS2 based RubyInstaller for Windows
https://rubyinstaller.org
BSD 3-Clause "New" or "Revised" License
652 stars 247 forks source link

pkgconf not found #226

Open toohoo opened 3 years ago

toohoo commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

Oh! he did not take my screenshot, but why?

Hello, screenshot nearby.

Regards

-- Thomas Hofmann Dorfen @.***

On Thu, May 6, 2021 at 4:32 PM Lars Kanis @.***> wrote:

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?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

toohoo commented 3 years ago
C:\>ridk version
Der Befehl "ridk" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
larskanis commented 3 years ago

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 commented 3 years ago

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

how install:

> 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 commented 3 years ago

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 commented 3 years ago

Hello

cdonnellytx commented 2 years ago

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