Caffe2安装问题

时间:2019-12-30 17:56:56

标签: python cmake centos7 caffe2

我正在尝试在Caffe2 documentation之后完成我的Caffe2安装(在使用CentOS Linux 7的虚拟环境中)。

进入实际设置python setup.py install时,出现以下错误:

  

subprocess.CalledProcessError:命令'['cmake','-GNinja','-DBUILD_PYTHON = True','-DBUILD_TEST = True','-DCMAKE_BUILD_TYPE = Release','-DCMAKE_INSTALL_PREFIX = / pstore / home / user /pytorch/torch'、'-DCMAKE_PREFIX_PATH=/pstore/home/user/miniconda3/envs/myenv'、'-DNUMPY_INCLUDE_DIR=/pstore/home/user/miniconda3/envs/myenv/lib/python3.7/site-packages / numpy / core / include','-DPYTHON_EXECUTABLE = / pstore / home / user / miniconda3 / envs / myenv / bin / python','-DPYTHON_INCLUDE_DIR = / pstore / home / user / miniconda3 / envs / myenv / include / python3 .7m','-DPYTHON_LIBRARY = / pstore / home / user / miniconda3 / envs / myenv / lib / libpython3.7m.so.1.0','-DTORCH_BUILD_VERSION = 1.4.0a0 + ee87b01','-DUSE_NUMPY = True', '/ pstore / home / user / pytorch']'返回非零退出状态1

CMake错误日志显示以下内容:

Performing C++ SOURCE FILE Test SUPPORT_GLIBCXX_USE_C99 failed with the following output:
Change Dir: /pstore/home/user/pytorch/build/CMakeFiles/CMakeTmp

Run Build Command(s):/pstore/home/user/miniconda3/envs/myenv/bin/ninja cmTC_5ab82 && [1/2] Building CXX object CMakeFiles/cmTC_5ab82.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_5ab82.dir/src.cxx.o 
/pstore/apps/GCC/4.8.4/bin/c++    -DSUPPORT_GLIBCXX_USE_C99 -std=c++14 -o CMakeFiles/cmTC_5ab82.dir/src.cxx.o -c src.cxx
c++: error: unrecognized command line option ‘-std=c++14’
ninja: build stopped: subcommand failed.


Source file was:

  #include <cmath>
  #include <string>

  int main() {
    int a = std::isinf(3.0);
    int b = std::isnan(0.0);
    std::string s = std::to_string(1);

    return 0;
    }
Performing C++ SOURCE FILE Test SUPPORT_GLIBCXX_USE_C99 failed with the following output:
Change Dir: /pstore/home/user/pytorch/build/CMakeFiles/CMakeTmp

Run Build Command(s):/pstore/home/user/miniconda3/envs/myenv/bin/ninja cmTC_86b95 && [1/2] Building CXX object CMakeFiles/cmTC_86b95.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_86b95.dir/src.cxx.o 
/pstore/apps/GCC/4.8.4/bin/c++    -DSUPPORT_GLIBCXX_USE_C99 -std=c++14 -o CMakeFiles/cmTC_86b95.dir/src.cxx.o -c src.cxx
c++: error: unrecognized command line option ‘-std=c++14’
ninja: build stopped: subcommand failed.


Source file was:

  #include <cmath>
  #include <string>

  int main() {
    int a = std::isinf(3.0);
    int b = std::isnan(0.0);
    std::string s = std::to_string(1);

    return 0;
    }
Performing C++ SOURCE FILE Test SUPPORT_GLIBCXX_USE_C99 failed with the following output:
Change Dir: /pstore/home/user/pytorch/build/CMakeFiles/CMakeTmp

Run Build Command(s):/pstore/home/user/miniconda3/envs/myenv/bin/ninja cmTC_9d582 && [1/2] Building CXX object CMakeFiles/cmTC_9d582.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_9d582.dir/src.cxx.o 
/pstore/apps/GCC/4.8.4/bin/c++    -DSUPPORT_GLIBCXX_USE_C99 -std=c++14 -o CMakeFiles/cmTC_9d582.dir/src.cxx.o -c src.cxx
c++: error: unrecognized command line option ‘-std=c++14’
ninja: build stopped: subcommand failed.


Source file was:

  #include <cmath>
  #include <string>

  int main() {
    int a = std::isinf(3.0);
    int b = std::isnan(0.0);
    std::string s = std::to_string(1);

    return 0;
    }

我尝试更新软件包,但这似乎不起作用。

有人可以支持我修复此安装吗?

也许,我还应该提到我目前没有管理员权限,但到目前为止一切正常。

TY

0 个答案:

没有答案