【发布时间】:2020-03-08 11:24:47
【问题描述】:
我正在尝试关注 these instructions 在 macOS Mojave Version 10.14.6 上编译 Elmer FEM。但是,在运行 make install 时,我收到错误消息:
.../elmerfem/umfpack/src/umfpack/include/umf_internal.h:29:10: fatal error: 'string.h' file not found
#include <string.h>
^~~~~~~~~~
1 error generated.
make[2]: *** [umfpack/src/umfpack/umfpack_zl_save_symbolic.c] Error 1
make[2]: *** Deleting file `umfpack/src/umfpack/umfpack_zl_save_symbolic.c'
make[1]: *** [umfpack/src/umfpack/CMakeFiles/umfpack.dir/all] Error 2
make: *** [all] Error 2
搜索互联网this post建议
xcode-select --install-
sudo xcode-select --switch /Library/Developer/CommandLineTools/
这在我之前已经完成并且对上述错误没有影响。 This 和 this 发布建议
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target / -allowUntrusted
这会导致错误消息
安装程序:安装失败(安装程序遇到错误导致安装失败。请联系软件制造商寻求帮助。)
如果您能帮助我了解问题所在以及如何解决,我将不胜感激。提前感谢您的支持。
P.S.1. 如here 所问,我的make 版本是GNU Make 3.81。
P.S.2. 我硬盘上的string.h 文件列表here。
P.S.3. CMake 的输出粘贴为here。
【问题讨论】:
标签: macos cmake compiler-errors