regex.h 在 msys2 (windows )

regex.h in msys2 (windows )

我正在尝试在 windows 运行ning msys2 上编译 cvs-fast-import (https://gitlab.com/esr/cvs-fast-export) 但是当我 运行 make 我得到一个错误:

main.c:9:10: fatal error: regex.h: No such file or directory

这指的是 main.c,它看起来像这样:

001 /*
002  *  Copyright © 2006 Keith Packard <keithp@keithp.com>
003  *
004  *  SPDX-License-Identifier: GPL-2.0+
005  */
006 #include "cvs.h"
007 #include <unistd.h>
008 #include <getopt.h>
009 #include <regex.h>
010 #include <time.h>
011 #include <sys/stat.h>
012 #include <sys/resource.h>
013 #include "revdir.h"
014 #if defined(__GLIBC__)
015 #include <malloc.h>
016 #endif /* __GLIBC__ */
... rest of file

我该如何解决这个问题,是否有我可以安装的软件包,或者是否需要为另一个软件包重写软件?我希望有一个名为 "regex" 的 packman 安装程序,但在那里并不那么幸运。

我还在 https://gitlab.com/esr/cvs-fast-export/issues/27 bugtracker 中发布了一个错误请求。

在我的系统上,/mingw32/include/regex.hmingw-w64-i686-libsystre 提供。尝试 运行 这个:

pacman -S $MINGW_PACKAGE_PREFIX-libsystre