mritchielab / FLAMES

A framework for performing single-cell and bulk read full-length analysis of mutations and splicing.
https://mritchielab.github.io/FLAMES/
GNU General Public License v3.0
20 stars 9 forks source link

Installation issue on Debian 11 #13

Closed HaraldWilhelmi closed 1 year ago

HaraldWilhelmi commented 1 year ago

When trying to install the package on Debian 11 with R 4.3 this will fail with errors like this:

Error: package or namespace load failed for 'FLAMES' in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '.../R/lib/R/library/00LOCK-FLAMES/00new/FLAMES/libs/FLAMES.so':
.../R/lib/R/library/00LOCK-FLAMES/00new/FLAMES/libs/FLAMES.so: undefined symbol: _ZSt28__throw_bad_array_new_lengthv

IMHO this is due to the fact the package (https://bioconductor.org/packages/3.17/bioc/src/contrib/FLAMES_1.6.0.tar.gz) contains compiled binaries, which are not compatible with the libstdc++6 package of Debian 11 (e.g. ./src/utility/edit_dist.o). As a workaround we tried that:

$ wget https://bioconductor.org/packages/3.17/bioc/src/contrib/FLAMES_1.6.0.tar.gz
$ tar xvfz FLAMES_1.6.0.tar.gz
$ cd FLAMES
$ find . -name '*.o' -exec rm {} \;
$ cd ..
$ tar cvfz FLAMES_1.6.0_patched.tgz FLAMES
$ R

install.packages("FLAMES_1.6.0_patched.tgz", repos=NULL, type="source")

That seems to avoid the issue.

ChangqingW commented 1 year ago

Thanks for reporting this and sharing your workaround!