This is a test version of Biostars. For the public version, visit https://www.biostars.org.
fwrite.c:10:49: fatal error: zlib.h: No such file or directory #include <zlib.h> // for compression to .gz

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!!!

rstudio-server

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.

install zlib headers as well..

0 answers

No answers yet.

Log in to answer this question.