Entering edit mode
5.0 years ago
hsu
▴
40
I'm installing packages on Rstudio-server of linux. But I got this error.
fwrite.c:10:49: fatal error: zlib.h: No such file or directory #include <zlib.h> // for compression to .gz
compilation terminated. /usr/local/lib/R/etc/Makeconf:167: recipe for target 'fwrite.o' failed make: * [fwrite.o] Error 1 ERROR: compilation failed for package ‘data.table’ * removing ‘/usr/local/lib/R/site-library/data.table’ ERROR: dependency ‘data.table’ is not available for package ‘Hmisc’ * removing ‘/usr/local/lib/R/site-library/Hmisc’
Does anyone have an idea how to solve this probelm? Thank you very much!!!
You will need to install
zlib
library using instructions appropriate for the OS you are using.should I intall it on linux or r? Does it require root ?
For linux. You could install locally if you don't have root access. See this.
Please use
ADD REPLY/ADD COMMENT
when responding to existing posts to keeps threads logically organized.duplicate: Problems With Installing Vcftools On Ubuntu ; stringtie2 error : ./samtools-0.1.18/bgzf.h:29:10: fatal error: zlib.h: No such file or directory ; Trouble Installing Bamtools On Ubuntu ; ....
install zlib headers as well..