我正在尝试在 OSX Capitanmxnet
上从. 在遵循安装说明并验证所有依赖项都到位后,我在构建步骤中遇到以下错误:https://github.com/dmlc/mxnet
In file included from src/c_api/./c_api_error.h:9:0,
from src/c_api/c_api_error.cc:6:
./dmlc-core/include/dmlc/base.h:104:23: fatal error: sys/types.h: No such file or directory
#include <sys/types.h>
追踪有问题的脚本,../mxnet/dmlc-core/include/dmlc/base.h
我找到了有问题的行:
extern "C" {
#include <sys/types.h>
}
我尝试了以下补丁:
extern "C" {
#include </usr/local/include/c++/4.9.2/parallel/types.h>
}
这会产生以下错误:
In file included from /usr/local/include/c++/4.9.2/parallel/types.h:35:0,
from ./dmlc-core/include/dmlc/base.h:105,
from src/c_api/c_predict_api.cc:6:
/usr/local/include/c++/4.9.2/cstdlib:72:20: fatal error: stdlib.h: No such file or directory
#include <stdlib.h>
有什么想法吗?types.h
肯定存在于我的机器上,但是我从 repo 中获取的脚本没有找到正在杀死构建的文件。