lhenneman / disperseR

New version of the hyspdisp package
4 stars 6 forks source link

libgfortran5.so in place of libgfortran3.so? #55

Open michaelaoash opened 1 year ago

michaelaoash commented 1 year ago

I am running through Vignette - DipserseR and getting an error from the crucial disperseR::run_disperser_parallel() function.

/home/mash/R/x86_64-pc-linux-gnu-library/4.2/SplitR/linux-amd64/parhplot: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory I am running Ubuntu 23.04 and it uses libgfortran.so.5 rather than libgfortran.so.3. I tried a "cheat" $ sudo ln -s /usr/lib/x86_64-linux-gnu/libgfortran.so.5.0.0 /usr/lib/x86_64-linux-gnu/libgfortran.so.3 but that did not work. The error message from disperseR::run_disperser_parallel() changes to:

/home/mash/R/x86_64-pc-linux-gnu-library/4.2/SplitR/linux-amd64/parhplot: /usr/lib/x86_64-linux-gnu/libgfortran.so.3: version `GFORTRAN_1.4' not found (required by /home/mash/R/x86_64-pc-linux-gnu-library/4.2/SplitR/linux-amd64/parhplot)
/home/mash/R/x86_64-pc-linux-gnu-library/4.2/SplitR/linux-amd64/parhplot: /usr/lib/x86_64-linux-gnu/libgfortran.so.3: version `GFORTRAN_1.0' not found (required by /home/mash/R/x86_64-pc-linux-gnu-library/4.2/SplitR/linux-amd64/parhplot)

So I cloned the disperseR and SplitR repositories and thought I would compile SplitR and disperseR with libgfortran.so.3 changed to libgfortran.so.5 but I cannot find any reference to the library in the code of either project.

Please let me know if you have any advice. For example, how do I back-install libgfortran.3.so or where do I find the the place to update the code to use libgfortran.5.so?

Thanks very much for suggestions.

michaelaoash commented 1 year ago

I resolved this problem in the short run with the advice at Installing libgfortran3 for ubuntu20.04.md which involved installing backdated versions of gcc-6 and libfortran3. In the longer run, the dependency in disperseR should be updated to libfortran5 (or the most current version).