pacman(a port from arch-linux) and has about 2000 precompiled mingw-packages. MSYS2 is designed to build standalone software: the binaries built with mingw-w64 compilers do not depend on MSYS2 itself[^1].
mingw-w64-curlpackage can be found on the msys2 website: https://packages.msys2.org/base/mingw-w64-curl. Here we can also find installation instructions for the various available flavors. For example to install the default x64 binary for curl we run:
curlcommand line tool as well as libcurl headers and shared libraries. The default
curlpackages are built with the OpenSSL back-end and hence depend on
mingw-w64-x86_64-openssl. There are also
mingw-w64-x86_64-curl-gnutlspackages, refer to the msys2 website for more details.
pkg-configto query the flags needed to build against libcurl. Start msys2 using the mingw64 shell (which automatically sets the path to include
/mingw64) and run:
mingw-w64-curlpackage. We can easily modify the file to rebuild the package ourselves.
git. Start the msys2 shell and run:
mingw-packagesrepository and go to the
--syncdepsparameter will automatically check and prompt to install dependencies of
mingw-w64-curlif these are not yet installed. Once the process is complete you will have 3 new files in the current directory, for example:
pacman -U mingw-w64-x86_64-curl-7.80.0-1-any.pkg.tar.zst
pacman -U mingw-w64-x86_64-curl-gnutls-7.80.0-1-any.pkg.tar.zst
pacman -U mingw-w64-x86_64-curl-winssl-7.80.0-1-any.pkg.tar.zst
pacman -ucommand to install such a local package file:
mingw-w64-curlwith the msys-packages
curl-devel. The latter are part of msys2 environment itself (e.g. to support pacman downloads), but not suitable for redistribution. To build redistributable software that does not depend on MSYS2 itself, you always need
mingw-w64-…packages and tool chains.