Problems with Dockerfile: Missing build-centos-bdsim.sh in bdsim/building/docker

Issue #320 resolved
Former user created an issue

I have some Problems using the Docker installation guide on: http://www.pp.rhul.ac.uk/bdsim/manual-develop/installation.html#docker-build. I was not able to finde the file build-centos-bdsim.sh in bdsim/building/docker, as it is written in the guide.

I tried to make my own docker image using docker image build . -f Dockerfile-centos-bdsim -t bdsim in the folder bdsim/building/docker. But I get this error during the build: /tmp/bdsim/src/BDSPSCellFlux4D.cc:22:10: fatal error: boost/variant.hpp: No such file or directory #19 175.2 #include <boost/variant.hpp> #19 175.2 ^~~~~~~ #19 175.2 compilation terminated. #19 175.2 make[2]: [CMakeFiles/bdsim.dir/build.make:4652: CMakeFiles/bdsim.dir/src/BDSPSCellFlux4D.cc.o] Error 1 #19 175.2 make[2]: Waiting for unfinished jobs.... #19 179.5 make[1]: [CMakeFiles/Makefile2:2336: CMakeFiles/bdsim.dir/all] Error 2 #19 179.5 make: [Makefile:183: all] Error 2


executor failed running [/bin/bash -c source /usr/local/bin/thisroot.sh && mkdir bdsim-build && cd bdsim-build && source scl_source enable devtoolset-7 && cmake3 ../bdsim && make -j6 && make install]: exit code: 2

Can anyone help me with this?

Best regards Maximilian

Comments (4)

  1. Laurie Nevay

    Hello Maximilian,

    Please use the develop branch of the repository:

    cd bdsim
    git checkout develop
    git pull
    

    You will now see the file in bdsim/building/docker.

    This error comes from missing the BOOST package, but this should only be required when you configure BDSIM with -DUSE_BOOST=ON. In our Dockerfile, we didn’t do this (but perhaps you need this), so you would have to add the yum command to get boost as a package in the Centos image.

    Perhaps, first, try the one in the develop branch and let me know if you have problems with that.

    Best,

    Laurie

  2. Maximilian Meier

    Hey Laurie,

    thank you very much, that helped. The docker image could now be created and is now running. I still have a little problems with the display output. I have to play around a bit with the settings I think. (Error Message: qt.qpa.screen: QXcbConnection: Could not connect to display :0
    Could not connect to any X display.)

    The configuration with Boost on was wrongly made. First of all, I do not need the package. I am a beginner in the use of BDSIM and wanted to get to know the system first and see how I can adapt my tasks.

    Best,

    Maximilian

  3. Log in to comment