为什么在安装MPIR时出现配置错误?

问题描述

我很难过,因为三天以来我一直在尝试为c ++安装FLINT2(数字理论快速库)库并在Visual Studio 2019中使用它。我在阅读文档时发现我首先需要安装FLINT依赖的三个库,即MPIR,MPFR和GMP。因此,我开始尝试安装它们,花了我一段时间后才意识到这些库是为GNU系统制作的。因此,我必须安装MinGW和msys才能使其“兼容”并能够使用命令./configure、make、make check等。一段时间后,我能够安装GMP库。接下来,MPFR库依赖于GMP,但是我能够通过声明--with-gmp-include = ... --with-gmp-lib = ...来安装它,我还必须添加--enable-static --disable-shared。最后,我尝试安装MPIR库,但是,显然我的计算机上缺少YASM,因此我使用Windows Powershell安装Chocolatey。然后,我输入choco install yasm进行安装,它成功了! 我回到msys并键入./configure --enable-static --disable-shared配置MPIR(如果没有enable / disable,它就无法工作...),但是随后出现一条错误消息,即: / p>

checking for strtoul... yes
checking for sysconf... no
checking for sysctl... no
checking for sysctlbyname... no
checking for times... no
checking for vsnprintf... yes
checking whether vsnprintf works... yes
checking whether sscanf needs writable input... no
checking for struct pst_processor.psp_iticksperclktick... no
configure: error: no version of divisible_p found in path:  x86/nehalem x86 generic

请给我一些帮助吗?我环顾四周,但找不到有关这种错误的任何信息!显然,divisible_p函数是在名为divis.c的C文件中定义的函数,可以在gmp / mpn / generic /中找到该文件,但是即使将该文件复制/粘贴到MPIR对应的文件夹中,也无法使用...

解决方法

因此,由于我需要MPIR或GMP,所以我成功地将FLINT库构建并安装到了msys文件夹中,因此不需要安装MPIR。但是,我仍然对divisible_p文件丢失的原因很感兴趣...

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...