# gcc binary
cd /home/shenwei/app/miniconda3/envs/cobs/bin;
ln -s ../libexec/gcc/x86_64-conda-linux-gnu/9.3.0/gcc
# cobs uses old boost version which relies on libboost_**-mt.a
cd /home/shenwei/app/miniconda3/envs/cobs/lib
ln -s libboost_system.a libboost_system-mt.a
ln -s libboost_filesystem.a libboost_filesystem-mt.a
I spent two hours finguring out how to compile cobs on our server (CentOS 7.9 with gcc 4.8.5) using conda. May this helps.
Create conda env and install new gcc/cc/c++ compilers
Link binaries and some libs
Edit envinronment, add few lines to
~/.bashrc.Reactivate envonment
Compile cobs