我正在尝试让 zkcm 在我的系统(Mac OS X 10.11.3)上运行。我已经很好地安装了gmp(使用 ./configure --prefix=/usr/local --enable-cxx
),一旦我告诉它在哪里可以找到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: 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.