当我安装 Chef 时,出现以下错误。
[root@centos Tools]# chef-server-ctl reconfigure
/opt/opscode/embedded/bin/ruby: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /opt/opscode/embedded/lib/libruby.so.2.1)
/opt/opscode/embedded/bin/ruby: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by /opt/opscode/embedded/lib/libruby.so.2.1)
我已经下载了glibc-2.14.1.tar.gz
源glibc-2.17.tar.gz
代码并手动编译了--prefix
位置,/home/virt02/lib
但仍然没有用。得到与上面相同的错误。
更新:我做到了
[root@centos Tools]# cat /etc/ld.so.conf.d/randomLibs.conf
/home/virt02/lib
[root@centos Tools]# ldconfig
[root@centos Tools]#
更新 :
[root@centos ~]# ldd /opt/opscode/embedded/lib/libruby.so.2.1
/opt/opscode/embedded/lib/libruby.so.2.1: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /opt/opscode/embedded/lib/libruby.so.2.1)
/opt/opscode/embedded/lib/libruby.so.2.1: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by /opt/opscode/embedded/lib/libruby.so.2.1)
linux-vdso.so.1 => (0x00007ffce97a7000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fab5317c000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fab52f77000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fab52d40000)
libm.so.6 => /lib64/libm.so.6 (0x00007fab52abc000)
libc.so.6 => /lib64/libc.so.6 (0x00007fab52727000)
/lib64/ld-linux-x86-64.so.2 (0x00007fab53883000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007fab52524000)
[root@centos ~]# ldd /lib64/libc.so.6
/lib64/ld-linux-x86-64.so.2 (0x00007f0151e36000)
linux-vdso.so.1 => (0x00007fff952ee000)
[root@centos ~]#
但仍然不起作用。