fwrite.c:10:49: fatal error: zlib.h: No such file or directory #include <zlib.h> // for compression to .gz
0
0
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!!!

RStudio-server • 3.1k views
ADD COMMENT
0
Entering edit mode

You will need to install zlib library using instructions appropriate for the OS you are using.

ADD REPLY
0
Entering edit mode

should I intall it on linux or r? Does it require root ?

ADD REPLY
0
Entering edit mode

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.

ADD REPLY
0
Entering edit mode

install zlib headers as well..

ADD REPLY

Login before adding your answer.

Traffic: 1875 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6