libstdc++.so.6 and libc.so.6 too old
While running the QSMbox we ran into a problem of library incompatibilities with the following error messages:
libstdc++.so.6: version `GLIBCXX_3.4.21' not found
libc.so.6: version `GLIBC_2.14' not found
A solution suggested in QSMbox/master/ptb/_3DSRNCP/3DSRNCP_jac_README.txt didnt work as we dont have the rights to implement it. Instead, Arturo found the following workaround:
I. To get the latest version of libc.so.6, perform the following steps:
1. mkdir ~/glibc_install; cd ~/glibc_install
2. wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
3. tar zxvf glibc-2.14.tar.gz
4. cd glibc-2.14
5. mkdir build
6. cd build
6. ../configure --prefix=/home/<USERNAME>/glibc-2.14
8. make -j 4
9. make install
II. To get the latest version of libstdc++.so.6, install the latest version of Miniconda from https://conda.io/miniconda.html.
III. Add the following line to Matlab startup file:
setenv('LD_LIBRARY_PATH', '/home/<USERNAME>/miniconda3/lib');
IV. Create a link to libc.so.6 in miniconda3/lib directory:
ln -s /home/<USERNAME>/glibc-2.14/lib/libc.so.6 /home/<USERNAME>/miniconda3/lib/
Edited by Renat