layerfMRI/LAYNII

Problem running LN2_LAYERS on CentOS 7

Figsandcitrus opened this issue · 4 comments

make all successfully ran and compiled the directory. However, when running the following command ./LN2_LAYERS, I got the following error:

./LN2_LAYERS: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./LN2_LAYERS).

I am using CentOS 7.0. Any help is appreciated!

Hi @Figsandcitrus,

thanks for reaching out. I have not seen this before and I am surprised that it compiles at all if you do not have the c++ STD library. Could it be that it is somwhere else and you just need to copy it there?

sudo find / -name "libstdc++.so.6*"
sudo cp somewhere/libstdc++.so.6.0.25 /usr/lib64/

Alternatively, you could also check if you have it installed with the right version for your system: https://stackoverflow.com/questions/44773296/libstdc-so-6-version-glibcxx-3-4-20-not-found

+1 to what @layerfMRI is saying. I am also baffled to hear that it compiled. How can it compile!??

I am guessing that you have some sort of server setup with CentOS 7, which is already become discontinued not going to be maintained beyond 2024.

Do let us know if you solve the issue or got stuck.

Was able to solve the issue. The conda environment had a different gcc version which allowed it to compile but not run ./LN2_LAYERS. However, after deactivating conda and compiling again, the program didn't need GLIBXX_3.4.21 anymore. Thank you for your help!

@Figsandcitrus , glad to hear that you have solved your problem! Feel free to reach out if you encounter other issues.