In Centos6.4 the default glibc version is glibc-2.12-1.107
But cockroach need higher glibc version
[wen@hadoop241 cockroach]$ ./cockroach -h ./cockroach: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./cockroach) ./cockroach: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by ./cockroach) [wen@hadoop241 cockroach]$
I build a new version(glibc-2.17) but not install, because I don’t want to interfere the existing system( the influence may big, it’s hard to control for upgrading glibc)
So, now I need to start this way
url="/home/wen/cockroach/cockroach" g="/home/wen/glibc/build" p="$g:$g/math:$g/elf:$g/dlfcn:$g/nss:$g/nis:$g/rt:$g/resolv:$g/crypt:$g/nptl:$g/dfp" GCONV_PATH=$g/iconvdata LC_ALL=C cmd="$g/elf/ld.so --library-path $p $url"
[wen@hadoop241 cockroach]$ $cmd version Build Tag: beta-20160915 Build Time: 2016/09/15 14:55:42 Platform: linux amd64 Go Version: go1.7.1 C Compiler: gcc 4.9.2 [wen@hadoop241 cockroach]$
After all, I start it by ld.so and running about 18 days, seems no problem as I known
Will it have any difference between the normal start and start by ld.so
Is there any bad consequence for starting by ld.so?