Welcome to Cadabra Q&A, where you can ask questions and receive answers from other members of the community.
0 votes

Hi! Recently, I had an upgrade to Lubuntu 17.10 and since that upgrade I've been unable to start Cadabra2. I tried to reinstall it from the source (following the directions in https://github.com/kpeeters/cadabra2), but when I run make, I get the following error message:

./cadabra2python: /home/andreas/anaconda3/lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by ./cadabra2python)
./cadabra2python: /home/andreas/anaconda3/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./cadabra2python)
core/CMakeFiles/gauge_theory_instantons.dir/build.make:57: recipe for target 'core/CMakeFiles/gauge_theory_instantons' failed
make[2]: *** [core/CMakeFiles/gauge_theory_instantons] Error 1
CMakeFiles/Makefile2:227: recipe for target 'core/CMakeFiles/gauge_theory_instantons.dir/all' failed
make[1]: *** [core/CMakeFiles/gauge_theory_instantons.dir/all] Error 2

What am I doing wrong?

in Installation trouble by (320 points)

1 Answer

0 votes
 
Best answer

Did you start from a clean 'build' directory?

The message above indicates that the cadabra2python binary was linked to a libstdc++ which is not the same as the one it picks up when you start it. It may be due to a problem with Cadabra's build process (building against anaconda on Linux does not receive a lot of testing), but it is more likely that you had some leftovers from a build before you upgraded to 17.10.

by (82.6k points)
selected by

Incidentally, there is a binary package for 18.04 now available as well, you may want to give that a shot, although it will use the system python, not your anaconda install.

Thanks for the reply. Actually, I had (after a failed first installation attempt) removed the entire cadabra2 folder and downloaded/cloned it anew through git. So, I cannot exclude that the first installation attempt caused the problem. Anyway, I'm going to give the 18.04 version a shot.

Unfortunately, the update to Lubuntu 18.04 did not fix the problem. I still get the same error message. Is there a way how I can remove all files from a previous build and start a "clean" Cadabra installation from scratch? Thanks!

If you installed from source following the instructions, you can try

 sudo rm -f /usr/local/lib/*cadabra*
 sudo rm -f /usr/local/bin/*cadabra*

I've tried it, but it still wouldn't work; I receive the same error message. This happens, as well, if I remove cadabra as in the previous comment and also remove the cadabra git folder, and download and install everything from the sources again. Finally I tried to install from the deb file, but dpkg says that the architecture doesn't match (required amd64 vs local i386).

Can anything be done about this? Thank you!

Ah, you are on a 32-bit system. Any reason why you did not install a 64-bit version? (only very old machines need 32-bit). I don't really have resources to ensure that things remain working on 32-bit distributions.

Hi! Thanks for pointing this out. An upgrade to Ubuntu 64-bit indeed solved the problem.

...