Is there any different while start by ld.so

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"

As

[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?

Thanks

I’m not very familiar with using ld.so in this way, but I think it would be fine.

You could also try building CockroachDB from source on your system, but it may be hard to get a new enough version of the c++ compiler (we need C++11 support, which means GCC 6.0).

Thank you for your reply, It’s good to hear that from you.

I may try to building CockroachDB from source for production release, If I found issue when running by ld.so.

Currently, I’m okay to running in this way.