I’ve installed MSYS2, but when I type “make dep” I get an error:
$ make dep
make: cc: No such file or directory
make: cc: No such file or directory
make: cc: No such file or directory
make: cc: No such file or directory
arch.mk:17: *** Could not determine CPU architecture of . Stop.
Are you trying to compile Rack itself, or to compile a plugin? If it’s the former, the tutorial does work, but it has to be followed exactly. In particular, make sure you’re using the MinGW 64-bit shell (which installs as a separate shortcut in the Start menu).
If it’s the latter, can you give a few more details?
In either case, did git submodule update --init --recursive (the step before make dep) work?
If you’re on Windows make sure you run the git commands through the MinGW terminal too and not just the make commands. I read that tip on these forums a few days ago
Sounds more like missing a step in the post-mingw install, pre-build. When it says after the pacman -sYu
Then restart the shell and install packages.
You really do have to start a brand-new MINGW64 shell.
Note that git MUST be configured in such a way that you get Linux line endings. If you don’t have linux line endings, make dep will fail in a highly obscure error message that seems to have nothing to do with line endings. I’ve been told that mingw sets up git this this way by default. What I’ve done is add a .gitattributes file to my Rack folder containing * text=auto eol=lf.
I was installing Rack for the first time. The problem was that I wasn’t using the MinGW 64-bit console, as you say. I’m going to uninstall MSYS2 and start over. Thanks.