Make Error when installing R in Dockerfiles to build Image

Hi,

I am trying to build an image with R installed. However when building image this error pops up:

building package ‘translations’
mkdir -p – …/…/…/library/translations
make[4]: Entering directory ‘/R-3.6.1/src/library/translations’
make[4]: Leaving directory ‘/R-3.6.1/src/library/translations’
make[3]: *** [Makefile:23: all] Error 127
make[3]: Leaving directory ‘/R-3.6.1/src/library/translations’
make[2]: *** [Makefile:37: R] Error 1
make[2]: Leaving directory ‘/R-3.6.1/src/library’
make[1]: *** [Makefile:28: R] Error 1
make[1]: Leaving directory ‘/R-3.6.1/src’
make: *** [Makefile:61: R] Error 1

I can’t attach my Dockerfiles so I will paste below. Please let me know if you have any suggestions. Thank you!

Docker File for ichorCNA_tibanna pipeline v1

Import Base Docker Image

#FROM r-base:3.6.1
FROM fedora:latest

Install Dependencies

RUN yum update -y &&
yum install wget.x86_64 -y
#RUN apt-get update && \

apt-get install -y wget && \

apt-get install -y yum

#RUN sudo yum install wget.x86_64 -y

R

ENV R_LINK=
ENV R_ZIP=R-3.6.1.tar.gz
ENV R_DIR=R-3.6.1
ENV JAVA_LINK=
ENV JAVA_TAR=AutoDL?BundleId=240718_5b13a193868b4bf28bcb45c792fce896
RUN wget $R_LINK &&
tar -xvf $R_ZIP &&
yum install readline-devel -y &&
yum install libcurl-devel.x86_64 -y &&
yum install gcc-gfortran.x86_64 -y &&
yum group install “Development Tools” -y &&
yum install bzip2-devel.x86_64 -y &&
yum install xz-devel.x86_64 -y &&
yum install pcre-devel.x86_64 -y &&
yum install gcc-c++.x86_64 -y &&
yum install zlib-devel.x86_64 -y &&
yum install gcc.x86_64 -y &&
wget $JAVA_LINK &&
tar -xvf $JAVA_TAR &&
alias java=‘~/jre1.8.0_231/bin/java’ &&
cd $R_DIR &&
echo START CONFIGURE &&
./configure --with-readline=no --with-x=no &&
ls /R-3.6.1/src/library/translations/ && ls /R-3.6.1/* &&
echo START MAKE &&
make

R packages

RUN R-3.6.1/bin/R -e “install.packages(‘BiocManager’, lib=‘/home/ec2-user/R-3.6.1/library’, ‘CRAN’)” &&
R-3.6.1/bin/R -e “BiocManager::install(‘HMMcopy’)” &&
R-3.6.1/bin/R -e “BiocManager::install(‘GenomeInfoDb’)” &&
R-3.6.1/bin/R -e “BiocManager::install(‘GenomicRanges’)” &&
R-3.6.1/bin/R -e “install.packages(‘optparse’, lib=‘/home/ec2-user/R-3.6.1/library’, ‘CRAN’)”

##RUN pwd ~ && ls /usr/local/bin && \

R -e “install.packages(‘BiocManager’, lib=‘/home/ec2-user/R-3.6.1/library’, ‘CRAN’)” && \

R -e “BiocManager::install(‘HMMcopy’)” && \

R -e “BiocManager::install(‘GenomeInfoDb’)” && \

R -e “BiocManager::install(‘GenomicRanges’)” && \

R -e “install.packages(‘optparse’, lib=‘/home/ec2-user/R-3.6.1/library’, ‘CRAN’)”

ichorCNA

ENV ICHOR_LINK=
RUN cd ~
git clone $ICHOR_LINK &&
cd ~/ichorCNA/ &&
R-3.6.1/bin/R CMD INSTALL ichorCNA
#R-3.6.1/bin/Rscript install_ichorCNA.R &&
##have to add ichor scripts

HMM-copy

ENV HMM_LINK=
ENV HMM_DIR=~/hmmcopy_utils
ENV CMAKE_LINK=
ENV CMAKE_ZIP=cmake-3.16.0-rc3.tar.gz
ENV CMAKE_DIR=cmake-3.16.0-rc3
RUN cd ~
yum install libss-devel.x86_64 -y &&
yum install openssl-devel.x86_64 -y &&
git clone $HMM_LINK &&
wget $CMAKE_LINK &&
tar -xvf $CMAKE_ZIP &&
cd $CMAKE_DIR &&
#./bootstrap && sudo make && sudo make install &&
./bootstrap && make && make install &&
cd $HMM_DIR &&
cmake . &&
make

------ end of code ------

Thank you!