Skip to content

Build instructions from README result in errors #26

@jlokimlin

Description

@jlokimlin

I'm trying to build tumorcode by following the instructions in the README, but they are out of date. Specifically, some of the repositories have moved and I cannot get past several dependency issues. To make things easier to reproduce I'm using Docker.

You can try out my Dockerfile by saving the snippet below as Dockerfile in the source folder then running docker build .

Do you see anything that I’m missing? Thanks. Jon.

# syntax=docker/dockerfile:1
FROM ubuntu:18.04
MAINTAINER sofija
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN echo $SHELL
RUN yes | apt-get install git
RUN yes | apt-get update && yes | apt-get install build-essential cmake trilinos-dev libtbb-dev cimg-dev libboost-dev libhdf5-openmpi-dev
RUN yes | apt-get install cmake gfortran libblas-dev liblapack-dev python2.7-dev libboost-dev libboost-python-dev libboost-numpy-dev python-numpy python-matplotlib libboost-program-options-dev libpng16-16=1.6.34-1  libtbb-dev libeigen3-dev python-h5py python-scipy povray mpi-default-dev libmumps-dev libsuperlu-dev libhdf5-openmpi-dev libptscotch-dev binutils-dev libiberty-dev libtrilinos-* python3-numpy libhdf5-dev libboost-date-time-dev libboost-system-dev libboost-serialization-dev
RUN yes | mkdir /root/.ssh
RUN eval "$(ssh-agent -s)"
RUN ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa
RUN exec ssh-agent bash
RUN echo '''[url "https://github.com/"]    insteadOf = <ssh://[email protected]>''' ~/.gitconfig
RUN yes | ssh-keyscan -t rsa github.com >> /root/.ssh/known_hosts
RUN yes | git clone https://github.com/thierry3000/numpycpp.git
RUN find / -name "numpy.hpp"
RUN cd numpycpp && mkdir build && cmake -DCMAKE_INSTALL_PREFIX=/usr/local/ . && make && make all
RUN ls -alR numpycpp
RUN yes | apt-get install cython python-mpi4py python-pkgconfig
RUN yes | git clone https://github.com/jacob-evarts/tumorcode.git
RUN yes | apt-get install libboost-thread-dev libboost-filesystem-dev libpng-dev libboost-random-dev
RUN echo "cmake \
    -DCMAKE_INSTALL_PREFIX=/localdisk/tc_install \
    -DCMAKE_BUILD_TYPE=Release \
    -DPYTHON_NUMPY_INCLUDE_DIR=/usr/include/python2.7/numpy \
    -DADDITIONAL_INCLUDE_DIRS="/usr/local/bin" \
    -DADDITIONAL_LIBRARY_DIRS="" \
    -DHDF5_INCLUDE_DIRS="/usr/include/hdf5/openmpi" \
    $1" > configure.sh
RUN chmod +x configure.sh && cd tumorcode && ../configure.sh .
RUN yes | apt-get install cimg-dev libopenmpi-dev
RUN cd tumorcode && make
CMD ["echo", "Hello World"]

For me that command will fail with the following error

#0 9.787 [  4%] Building CXX object src/mwlib/CMakeFiles/mwlib.dir/field.cpp.o
#0 10.01 In file included from /usr/include/hdf5/openmpi/hdf5.h:24:0,
#0 10.01                  from /usr/include/hdf5/serial/H5Include.h:17,
#0 10.01                  from /usr/include/hdf5/serial/H5Cpp.h:20,
#0 10.01                  from /tumorcode/src/common/hdfio.h:30,
#0 10.01                  from /tumorcode/src/mwlib/lattice-data.h:27,
#0 10.01                  from /tumorcode/src/mwlib/field.h:33,
#0 10.01                  from /tumorcode/src/mwlib/field.cpp:21:
#0 10.01 /usr/include/hdf5/openmpi/H5public.h:61:13: fatal error: mpi.h: No such file or directory
#0 10.01  #   include <mpi.h>
#0 10.01              ^~~~~~~
#0 10.01 compilation terminated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions