rtracklayer S.h
1
0
Entering edit mode
gibran • 0
@75f6b08f
Last seen 2.3 years ago
United Kingdom

I'm struggling to install the rtracklayer package. This is my Dockerfile

FROM rocker/tidyverse:latest

RUN apt-get update && apt-get install -y \
    sudo \
    libbz2-dev \
    zlib1g-dev \
    libncurses5-dev  \
    libncursesw5-dev \
    liblzma-dev

RUN R -e "install.packages('BiocManager')"
RUN R -e "BiocManager::install('Rhtslib')"
RUN R -e "BiocManager::install('rtracklayer')"
RUN R -e "devtools::install_github('mrcieu/gwasdataimport')"

I get the following compilation error

gcc -I"/usr/local/lib/R/include" -DNDEBUG -DUSE_SSL -D_FILE_OFFSET_BITS=64 -I'/usr/local/lib/R/site-library/S4Vectors/include' -I'/usr/local/lib/R/site-library/IRanges/include' -I'/usr/local/lib/R/site-library/XVector/include' -I/usr/local/include   -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c chain_io.c -o chain_io.o
chain_io.c:1:10: fatal error: S.h: No such file or directory
    1 | #include <S.h>
      |          ^~~~~
compilation terminated.
make: *** [/usr/local/lib/R/etc/Makeconf:168: chain_io.o] Error 1
ERROR: compilation failed for package ‘rtracklayer’
* removing ‘/usr/local/lib/R/site-library/rtracklayer’

Any idea what I'm doing wrong? Perhaps relatedly - is there a more appropriate docker image to build from?

install • 1.3k views
ADD COMMENT
2
Entering edit mode
@james-w-macdonald-5106
Last seen 5 minutes ago
United States

You should get the dockerfile from Bioconductor.

ADD COMMENT
0
Entering edit mode

Thanks, much appreciated. So I think this approach actually gets binaries and I'm not sure how to isolate the problem I was experiencing as the bioconductor docker container has quite a complex set of dependencies. But I should be able to continue this way

ADD REPLY

Login before adding your answer.

Traffic: 1120 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