我正在尝试从mxnet
编译OSX Capitan上的https://github.com/dmlc/mxnet
(http://mxnet.readthedocs.org/en/latest/index.html)。按照安装说明并验证所有依赖项都已就绪后,我在构建步骤中遇到以下错误:
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中获取的脚本并没有找到正在杀死构建的文件。