【发布时间】:2016-04-12 14:39:02
【问题描述】:
我想从源代码安装 bazel,并使用 bazel 在运行 redhat 6.7 的集群上编译 tensorflow。当我尝试安装 bazel 时,glibc 版本(2.12)太旧了。我没有对集群的 root 访问权限。这种情况下可以安装tensorflow吗?
我的系统信息:
-bash-4.1$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.7 (Santiago)
-bash-4.1$ which gcc
/usr/bin/gcc
-bash-4.1$ gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC)
-bash-4.1$ ldd --version
ldd (GNU libc) 2.12
系统也安装了更新的 gcc。我试过了,bazel还是编译不出来。
-bash-4.1$ /usr/local/gcc/4.8.4/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/local/gcc/4.8.4/bin/gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc/4.8.4/libexec/gcc/x86_64-unknown-linux-gnu/4.8.4/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/usr/local/gcc/4.8.4
Thread model: posix
gcc version 4.8.4 (GCC)
我在编译bazel的时候,出现如下错误:
bazel-0.1.1/_bin/build-runfiles: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found
也有人报告了这个问题: https://github.com/tensorflow/tensorflow/issues/110 和https://github.com/tensorflow/tensorflow/issues/527
如何在本地安装缺少的依赖项,并让 bazel 选择正确的库?
【问题讨论】:
-
我猜你甚至没有安装 docker 对吧?询问管理员或使用 AWS 实例。
-
@fabrizioM 我认为管理员不愿意安装 docker。 Redhat 6.X 上的 Redhat 不支持 Docker。此外,我不确定 docker 将如何与扭矩(工作分配系统)相互作用。 AWS 不适合我。
-
现在 1 年后,我正在尝试在 Redhat 6.9 上安装 Bazel(用于tenserflow)。同样的问题。
标签: compilation redhat glibc tensorflow bazel