remove anaconda3
rm -rf ~/anaconda3
mini conda is all your need
1 upgrade g++
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
optional
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt install -y g++-11
2 cmake install glog v0.5.0-rc2 from source
git clone https://github.com/google/glog.git
cd glog/
git checkout v0.5.0-rc2
mkdir build && cd build
cmake ..
sudo make -j12 install
3 cmake install ceres 1.14