Skip to content

Commit 189ec8b

Browse files
Merge pull request #50 from furrer-lab/49-rgraphviz-installation-fails-in-valgrindgccdevel
install missing stats package
2 parents 17d300d + 5e8b41e commit 189ec8b

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

containers/valgrind/Dockerfile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ ARG R_VERSION
66
# For the valgrind container, target_os, compiler and r_vresion are not specified
77
# Hovever, the valgrind container is fedora, gcc, devel
88
# see https://r-hub.github.io/containers/containers.html#valgrind
9-
FROM rhub/${TARGET_OS}
9+
# FROM rhub/${TARGET_OS}
10+
FROM ghcr.io/r-hub/containers/valgrind:latest
1011

1112
# Build stage: ARGs need to be redeclared
1213
ARG TARGET_OS
@@ -60,10 +61,13 @@ WORKDIR /tmp/$JAGS
6061
# (https://usermanual.wiki/Document/jagsinstallationmanual.880863585.pdf)
6162
# and substitute the compilers with the specifics from the R installation that
6263
# we can get by using the `R CMD config CC/CXX/BLAS_LIBS/LAPACK_LIBS' commands:
63-
RUN if [ "$COMPILER" = "clang" ]; then RCC=/usr/bin/clang RCXX="/usr/bin/clang++ -std=gnu++17 -stdlib=libc++"; else RRCC=/usr/bin/gcc RCXX="/usr/bin/g++"; fi \
64+
RUN if [ "$COMPILER" = "clang" ]; then RCC=/usr/bin/clang RCXX="/usr/bin/clang++ -std=gnu++17 -stdlib=libc++"; else RCC=/usr/bin/gcc RCXX="/usr/bin/g++"; fi \
6465
&& LD="llvm-ld" CC="${RCC}" CXX="${RCXX}" ./configure --with-blas="-L/opt/R/devel-valgrind/lib/R/lib -lRblas" --with-lapack="-L/opt/R/devel-valgrind/lib/R/lib -lRlapack" --libdir=/usr/local/lib && make && make install
6566
RUN ls /tmp/$JAGS
67+
# Add JAGS library path to LD_LIBRARY_PATH
68+
ENV LD_LIBRARY_PATH="/usr/local/lib:${LD_LIBRARY_PATH}"
6669
# ENV PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
70+
6771
# RUN R -e "install.packages('rjags')"
6872
RUN R -e "install.packages('rjags', configure.args = '--enable-rpath')"
6973

@@ -105,6 +109,12 @@ RUN dnf -y install \
105109
# RUN R -e "install.packages('fmesher')"
106110
# - INLA
107111
RUN R -e "install.packages('INLA',repos=c(getOption('repos'),INLA='https://inla.r-inla-download.org/R/stable'), dep=TRUE)"
112+
# - Magick++
113+
RUN dnf -y install \
114+
ImageMagick-c++-devel
115+
# - libxml-2.0
116+
RUN dnf -y install \
117+
libxml2-devel
108118

109119
###
110120
# install all package dependencies

0 commit comments

Comments
 (0)