0

系统信息

操作系统:CentOS 6.8
Python:2.7.11

问题

大家好,我想安装tensorflow。由于我使用的是 CentOS 6.8,似乎没有官方的方式来安装 tensoflow。因此,我搜索了几种安装方法,并遵循了本指南:https ://blog.abysm.org/2016/06/building-tensorflow-centos-6/ (其他指南对我不起作用,有些是 glibc 问题,有些是“不是支撑轮”问题等)

但是,现在我想使用 GPU 来加速。我已经安装了 cuda 和 cudnn,但是当我尝试以类似于上面提到的指南的方式使用 gpu 构建 tensorflow 时(在 ./configure 步骤中我选择了“启用 cuda”),我得到了这样的错误:

[root@Linux1 tensorflow]# ~/bin/bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package

ERROR: /root/.cache/bazel/_bazel_root/a3c166d17dc24b80d65cd498892a86b2/external/protobuf/BUILD:609:1: Linking of rule '@protobuf//:python/google/protobuf/internal/_api_implementation.so' failed: link_dynamic_library.sh 
failed: error executing command external/bazel_tools/tools/cpp/link_dynamic_library.sh no ignored ignored ignored 
external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -shared -o ... (remaining 10 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
/usr/bin/ld: unrecognized option '-plugin'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 14.665s, Critical Path: 2.62s

我是 linux 新手,我不知道发生了什么。有没有可能解决这个问题的方法?提前致谢。

4

0 回答 0