TRON-Bioinformatics / neofox

Annotation of mutated peptide sequences with published or novel potential neoantigen descriptors
GNU General Public License v3.0
25 stars 6 forks source link

XVector/Biostrings installation fails due to missing zlib #9

Closed aromberg closed 1 year ago

aromberg commented 1 year ago

Hi all, I ran into this issue while installing R requirements:

gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG  -I'/usr/local/lib/R/site-library/S4Vectors/include' -I'/usr/local/lib/R/site-library/IRanges/include'    -fpic  -g -O2 -ffile-prefix-map=/build/r-base-XqSJAD/r-base-4.0.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c io_utils.c -o io_utils.o
io_utils.c:16:10: fatal error: zlib.h: No such file or directory
   16 | #include <zlib.h>
      |          ^~~~~~~~
compilation terminated.
make: *** [/usr/lib/R/etc/Makeconf:172: io_utils.o] Error 1
ERROR: compilation failed for package ‘XVector’
* removing ‘/usr/local/lib/R/site-library/XVector’
ERROR: dependency ‘XVector’ is not available for package ‘Biostrings’
* removing ‘/usr/local/lib/R/site-library/Biostrings’

The downloaded source packages are in
        ‘/tmp/Rtmp4roaRf/downloaded_packages’
Old packages: 'boot', 'class', 'cluster', 'foreign', 'KernSmooth', 'lattice',
  'MASS', 'Matrix', 'mgcv', 'nlme', 'nnet', 'rpart', 'spatial', 'survival'
Warning messages:
1: In install.packages(...) :
  installation of package ‘XVector’ had non-zero exit status
2: In install.packages(...) :
  installation of package ‘Biostrings’ had non-zero exit status

Looks like zlib is missing -- installing it before installing R requirements solved the issue for me: apt-get install libz-dev

priesgo commented 1 year ago

Thanks for the feedback @aromberg this is now in develop branch ready for the next release