Hi!
I tried to install package: Rhtslib in my miniconda env, but I get error:
make[1]: Entering directory '/tmp/Rtmpmkgpv4/R.INSTALL78e3ccf441d/Rhtslib/src/htslib-1.7'
Makefile.Rhtslib:128: warning: overriding recipe for target '.c.o'
/cluster/bioinfo/mbon/miniconda/3/envs/R-3.5.1/lib/R/etc/Makeconf:160: warning: ignoring old recipe for target '.c.o'
x86_64-conda_cos6-linux-gnu-cc -g -Wall -O2 -I. -c -o kfunc.o kfunc.c
x86_64-conda_cos6-linux-gnu-cc -g -Wall -O2 -I. -c -o knetfile.o knetfile.c
x86_64-conda_cos6-linux-gnu-cc -g -Wall -O2 -I. -c -o kstring.o kstring.c
x86_64-conda_cos6-linux-gnu-cc -g -Wall -O2 -I. -c -o bcf_sr_sort.o bcf_sr_sort.c
x86_64-conda_cos6-linux-gnu-cc -g -Wall -O2 -I. -c -o bgzf.o bgzf.c
In file included from bgzf.c:39:0:
htslib/bgzf.h:35:10: fatal error: zlib.h: No such file or directory
#include <zlib.h>
^~~~~~~~
compilation terminated.
make[1]: *** [Makefile.Rhtslib:128: bgzf.o] Error 1
make[1]: Leaving directory '/tmp/Rtmpmkgpv4/R.INSTALL78e3ccf441d/Rhtslib/src/htslib-1.7'
make: *** [Makevars.common:21: htslib] Error 2
ERROR: compilation failed for package ‘Rhtslib’
I using Bioconductor 3.7 (BiocInstaller 1.30.0)
What I can do, to install that package?
f you were not using conda, the standard method of installation would work or would be remedied by installing libz. You are using conda, so this is a conda error and needs to be reported to them.
The Bioconductor approach is not finding libz and headers, because they are installed in a location known to conda but not to R.