Tldr: relocation error: /usr/lib64/libc.so.6: symbol _dl_starting_up, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference

brew update D
Already up-to-date.
➜ .linuxbrew brew doctor D
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don’t worry or file an issue; just ignore this. Thanks!

Warning: Your Homebrew’s prefix is not /home/linuxbrew/.linuxbrew.
Some of Homebrew’s bottles (binary packages) can only be used with the default
prefix (/home/linuxbrew/.linuxbrew).
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew’s GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this unsupported configuration.

aa% ➜ .linuxbrew D
➜ .linuxbrew brew reinstall tldr D
==> Reinstalling tldr
==> Downloading https://linuxbrew.bintray.com/bottles/tldr-1.3.0_2.x86_64_linux.bottle.tar.gz
Already downloaded: /mnt/home/jchen/.cache/Homebrew/downloads/9324592eacef63c9430b3d677b4643e1b6854a05b9d9f2f3dcfdcefb058f26ce–tldr-1.3.0_2.x86_64_linux.bottle.tar.gz
==> Pouring tldr-1.3.0_2.x86_64_linux.bottle.tar.gz
:beer: /mnt/home/jchen/.linuxbrew/Cellar/tldr/1.3.0_2: 6 files, 100.1KB
➜ .linuxbrew tldr D
tldr: relocation error: /usr/lib64/libc.so.6: symbol _dl_starting_up, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference

brew config D
HOMEBREW_VERSION: 2.2.5-5-g4f10b38
ORIGIN: https://github.com/Homebrew/brew
HEAD: 4f10b383282707441bf1dd9effcdc29445ac5497
Last commit: 2 hours ago
Core tap ORIGIN: https://github.com/Homebrew/linuxbrew-core
Core tap HEAD: a52e0d58078dcb7c88af9d48c422a50d9f5aaa02
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /mnt/home/jchen/.linuxbrew
HOMEBREW_CELLAR: /mnt/home/jchen/.linuxbrew/Cellar
HOMEBREW_CACHE: /mnt/home/jchen/.cache/Homebrew
HOMEBREW_LOGS: /mnt/home/jchen/.cache/Homebrew/Logs
HOMEBREW_REPOSITORY: /mnt/home/jchen/.linuxbrew/Homebrew
HOMEBREW_DEV_CMD_RUN: 1
HOMEBREW_SYSTEM_CURL_TOO_OLD: 1
CPU: 24-core 64-bit haswell
Homebrew Ruby: 2.6.3 => /mnt/home/jchen/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3/bin/ruby
Clang: N/A
Git: 2.25.0 => /mnt/home/jchen/.linuxbrew/bin/git
Curl: 7.68.0 => /mnt/home/jchen/.linuxbrew/opt/curl/bin/curl
Java: 1.8.0_45
Kernel: Linux 3.10.0-957.27.2.el7.x86_64 x86_64 GNU/Linux
OS: CentOS Linux release 7.6.1810 (Core) (Core)
Host glibc: 2.17
/usr/bin/gcc: 4.8.5
glibc: 2.23
gcc: 5.5.0_7
xorg: N/A

I think this says it all

I have solved the problem. It results from the dependence libs are not compiled by the same version gcc.

What I do is to reinstall all the dependence and compile from source with a fixed version gcc.

Thank you. Though the prefix is not the default, it should still work. But I have get rid of the problem by installing from source.