2019独角兽企业重金招聘Python工程师标准>>>
最近想研究下TensorFlow在服务器上不要在服务器上尝试下载安装后系统提示
运行import tensorflow as tf报错
ImportError: /lib64/libc.so.6: version GLIBC_2.17not found (required by/opt/Python/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so)
提示是gblic版本应该比较低应该升级下glibc至少是2.17版本。在网上找了个教程 configure后直接make 天啊所有的命令都不能运行了
[rootlocalhost /lib64]# ln -f ld-2.12.so ld-linux-x86-64.so.2 localhost /lib64]# lsls: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argumentdate: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argumenthostname: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argumentwhoami: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argumentwhoami: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argumentdate: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argumentwho: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument
case: 如果你对话框已经关了请看 CentOS 救援模式 rescue installed system修复损坏系统
case:如果还没关对话框在/lib64重新连接
libc.so.6 -> libc-2.12.sold-linux-x86-64.so.2 -> ld-2.12.solibBrokenLocale.so.1 -> libBrokenLocale-2.12.so
LD_PRELOAD/lib64/libc-2.12.so ln -fs /lib64/libc-2.12.so /lib64/libc.so.6 //强制链接LD_PRELOAD/lib64/libc-2.12.so ln -sf ld-2.12.so ld-linux-x86-64.so.2 /lib64/libc-2.12.so ln -sf libc-2.12.so libc.so.6 /lib64/libc-2.12.so ln -sf libBrokenLocale-2.12.so libBrokenLocale.so.1 LD_PRELOAD/lib64/libc-2.12.so ln -sf ld-2.12.so ld-linux-x86-64.so.2
import tensorflow 报错CentOS 升级 glibc
转:https://my.oschina.net/mickelfeng/blog/2995269