Skip to content

Commit

Permalink
fix(env): load xerces-c, update PATH (#66)
Browse files Browse the repository at this point in the history
This should resolve the following errors:

```
$ /esi/opticks/g4cx/tests/G4CXTest_raindrop.sh run
/esi/opticks/g4cx/tests/G4CXTest_raindrop.sh: line 167: G4CXTest: command not found
/esi/opticks/g4cx/tests/G4CXTest_raindrop.sh : run error
```

```
$ /esi/opticks/g4cx/tests/G4CXTest_raindrop.sh run
G4CXTest: error while loading shared libraries: libxerces-c-3.2.so: cannot open shared object file: No such file or directory
/esi/opticks/g4cx/tests/G4CXTest_raindrop.sh : run error
```
  • Loading branch information
plexoos committed May 13, 2024
1 parent 69d16ac commit 044e0ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ RUN sed -i 's/ autoload: direct/\ autoload: none/g' /opt/spack/etc/
RUN spack module tcl refresh -y
RUN cp -r /opt/spack/share/spack/modules/$(spack arch) /opt/modules
RUN echo "module use --append /opt/modules" >> /etc/profile.d/z10_load_spack_modules.sh
RUN spack module tcl loads geant4 clhep boost cmake nlohmann-json >> /etc/profile.d/z10_load_spack_modules.sh
RUN spack module tcl loads geant4 xerces-c clhep boost cmake nlohmann-json >> /etc/profile.d/z10_load_spack_modules.sh
RUN rm -fr /opt/spack/share/spack/modules/$(spack arch)

ENV ESI_DIR=/esi
Expand All @@ -62,6 +62,7 @@ ENV OPTICKS_OPTIX_PREFIX=${OPTIX_DIR}
ENV OPTICKS_COMPUTE_CAPABILITY=52
ENV PYTHONPATH=${OPTICKS_HOME}
ENV LD_LIBRARY_PATH=${OPTICKS_PREFIX}/lib/:$LD_LIBRARY_PATH
ENV PATH=${OPTICKS_PREFIX}/lib:${PATH:+${PATH}}

WORKDIR $ESI_DIR

Expand Down

0 comments on commit 044e0ba

Please sign in to comment.