Hi Camila,
While I would not suggest setting up another machine or container just for this 3dvolreg.afni problem, if there are many issues that are piling up, it might be worth considering. But this one program is simple enough to solve without giving yourself more work to do.
Your current solution of faking libXp should be sufficient to appease the version of 3dvolreg that FreeSurfer is distributing. The program should never attempt to access functions in that library, so it should not actually matter.
Alternatively, we could give you a version that would not have the current issues, if you prefer to overwrite 3dvolreg.afni from FS with something more suitable to Ubuntu 18. For that there might be 3 choices (none of which would require you to install libXp):
-
Use the Ubuntu 16 version of 3dvolreg that is currently distributed with AFNI. This might require some apt-get commands, but it should be simple.
-
Use a lighter-weight version of the above that I could build for you. This might also require apt-get, but it would presumably be fewer than the above, and it might be none at all.
-
Use a lighter-weight version that is based on the version FS is including.
For example, here is a link for case 3 that you could try:
https://afni.nimh.nih.gov/sscc/staff/rickr/pub/3dvolreg.2020.0131.xorg7_64.light
If that file were downloaded (and you have write access to $FREESURFER_HOME), you could try backing up the current version, putting the new one in place, then testing it:
mv $FREESURFER_HOME/bin/3dvolreg.afni $FREESURFER_HOME/bin/3dvolreg.afni.orig
cp 3dvolreg.2020.0131.xorg7_64.light $FREESURFER_HOME/bin/3dvolreg.afni
3dvolreg.afni -help
What seems reasonable? Again, you probably do not need to do anything, now that libXp has been faked.
- rick