Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos zkcm配置失败,can';找不到gmpxx.h_Macos_Gmp_Zkcm - Fatal编程技术网

Macos zkcm配置失败,can';找不到gmpxx.h

Macos zkcm配置失败,can';找不到gmpxx.h,macos,gmp,zkcm,Macos,Gmp,Zkcm,我正在尝试在我的系统(MacOSX10.11.3)上启动并运行zkcm。我已经很好地安装了gmp(使用/configure--prefix=/usr/local--enable cxx),而且只要我告诉mpfr在哪里可以找到gmp(/usr/local/include),就可以轻松地安装mpfr 然而,zkcm的安装并不容易。它还可以找到gmp.h文件(使用/configure--with gmp include=/usr/local/include),但即使我可以看到gmpxx.h就在那里,配

我正在尝试在我的系统(MacOSX10.11.3)上启动并运行zkcm。我已经很好地安装了gmp(使用
/configure--prefix=/usr/local--enable cxx
),而且只要我告诉mpfr在哪里可以找到gmp(/usr/local/include),就可以轻松地安装mpfr

然而,zkcm的安装并不容易。它还可以找到gmp.h文件(使用
/configure--with gmp include=/usr/local/include
),但即使我可以看到gmpxx.h就在那里,配置也会失败

checking /usr/local/include/gmp.h usability... yes
checking /usr/local/include/gmp.h presence... yes
checking for /usr/local/include/gmp.h... yes
checking /usr/local/include/gmpxx.h usability... no
checking /usr/local/include/gmpxx.h presence... no
checking for /usr/local/include/gmpxx.h... no
configure: error: not found.
我不确定是什么问题。我多次尝试重新安装gmp,但都没有成功

我也问过其他类似的问题,但我只能找到信息来指导我已经做了什么。我正在使用最新的三个库。如何正确地将zkcm定向到gmpxx.h

编辑 所有带有“gmpxx.h”的config.log文本:

configure:3331:检查/usr/local/include/gmpxx.h可用性
配置:3331:g++-c-g-O2 conftest.cpp>&5
在conftest.cpp:53中包含的文件中:
/usr/local/include/gmpxx.h:43:10:错误:“gmp.h”文件未与include一起找到;用“引号”代替
#包括
^~~~~~~
“gmp.h”
生成1个错误。
配置:3331:$?=1.
配置:失败的程序是:
|/*confdefs.h*/
|#定义包_名称“”
|#定义包_TARNAME“”
|#定义包_版本“”
|#定义包_字符串“”
|#定义包_BUGREPORT“”
|#定义程序包_URL“”
|#定义STDC#U标题1
|#定义系统类型_h1
|#定义有系统统计1
|#定义标准库1
|#定义HAVE_STRING_H 1
|#定义有_内存_h1
|#定义有_字符串_h1
|#定义具有_INTTYPES_H 1
|定义有力1
|#定义有_UNISTD_H 1
|#定义有uu USR_u本地u包括u GMP_h1
|/*end CONDEFS.h*/
|#包括
配置:3331:结果:否
配置:3331:检查/usr/local/include/gmpxx.h
配置:3331:结果:否
配置:3338:错误:未找到。

文件/usr/local/include/gmpxx.h
说它存在吗?文件
config.log
是否包含有关检测gmpxx失败的更多详细信息?该文件肯定存在。我已经将config.log中的相关文本添加到了我的原始问题中-我不确定该如何理解它,尽管.zkcm似乎有一个奇怪的配置。它应该
#include
-I/usr/local/include
一起使用,而不是试图聪明地(很少使用)与
#include
…谢谢,那么有什么解决办法呢?我找了一个confdefs.h,但在zkcm文件中没有找到。今后的方法是写信给zkcm开发人员(从未听说过该项目)并询问他们。暂时,您可以留意编译器消息,编辑gmpxx.h并将
替换为
“gmp.h”
。您还可以尝试定义环境变量
CGLAGS=-I/usr/local/include
。但是请不要跳过告诉zkcm开发人员的部分。
configure:3331: checking /usr/local/include/gmpxx.h usability
configure:3331: g++ -c -g -O2  conftest.cpp >&5
In file included from conftest.cpp:53:
/usr/local/include/gmpxx.h:43:10: error: 'gmp.h' file not found with <angled> include; use "quotes" instead
#include <gmp.h>
     ^~~~~~~
     "gmp.h"
1 error generated.
configure:3331: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE__USR_LOCAL_INCLUDE_GMP_H 1
| /* end confdefs.h.  */
| #include </usr/local/include/gmpxx.h>
configure:3331: result: no
configure:3331: checking for /usr/local/include/gmpxx.h
configure:3331: result: no
configure:3338: error: not found.