RUN echo${MAXIMA_VERSION?Error \$MAXIMA_VERSION is not defined}\
${SBCL_VERSION?Error \$SBCL_VERSION is not defined}
RUN SBCL_ARCH=$(dpkg --print-architecture);if[$SBCL_ARCH= amd64 ];then SBCL_ARCH=x86-64;fi;echo$SBCL_ARCH> /SBCL_ARCH
# Prerequisites for compiling
RUN apt-get update \
&& apt-get install-y\
bzip2 \
make \
wget \
python3 \
gcc \
texinfo
RUN mkdir-p${SRC}
RUN wget https://sourceforge.net/projects/maxima/files/Maxima-source/${MAXIMA_VERSION}-source/maxima-${MAXIMA_VERSION}.tar.gz -O${SRC}/maxima-${MAXIMA_VERSION}.tar.gz
RUN wget https://sourceforge.net/projects/sbcl/files/sbcl/${SBCL_VERSION}/sbcl-${SBCL_VERSION}-$(cat /SBCL_ARCH)-linux-binary.tar.bz2 -O${SRC}/sbcl-${SBCL_VERSION}-$(cat /SBCL_ARCH)-linux.tar.bz2