I installed msys2-i686-20161025.exe and did pacman -Syu and pacman -Su as described in the homepage, but it seems there are some commands missing from /usr/bin, e.g. diff and cmp. This causes some configure scripts fail to run.
'pacman -S base-devel --needed'
I have the same problem, mati865 is right, thanks! After 'pacman -S base-devel --needed', msys2 will make a list of package that we need to chose to install, I chosed 18) diffutils and this solved my problem
I installed MSYS2 today. So far looks good. And still ONE WHOLE year later -- It is still _difficult_ to discover where to find the basic tools like diff. A few others I expected "_out of the box_" are absent too. Now that I have the base-defel incantation, I shall recheck.
I suggest a cross-index page for commands and such so new people can find where to go for a command or a tool.
What's so hard about pacman -Ss diff and seeing which one applies? It's not that hard to figure out that diff is from diffutils. Googling for 'what package provides x' also gets you very far.
I just tried pacman -Ss diff. It listed three versions of diffutils, none of which added the diff command to the path. Something about the version base-devel added is different.
pacman -Ss <pkg> does search for pacakges but does not install anything.
Can confirm that pacman -S diffutils works.
Most helpful comment
'pacman -S base-devel --needed'