spm / spm-docker

SPM Containers (Docker & Singularity)
https://www.fil.ion.ucl.ac.uk/spm/docs/installation/containers/
MIT License
17 stars 11 forks source link

error loading shared libraries #8

Open SerenaCaplins opened 9 months ago

SerenaCaplins commented 9 months ago

Hello,

i am trying to build an image from the dockerfile. It builds matlab okay but gives an error when checking the spm installation.

/opt/spm12/spm12: error while loading shared libraries: libmwlaunchermain.so: cannot open shared object file: No such file or directory Error: building at STEP "RUN wget --no-check-certificate --progress=bar:force -P /opt https://www.fil.ion.ucl.ac.uk/spm/download/restricted/utopia/spm12/spm${SPM_VERSION}_${SPM_REVISION}_Linux_${MATLAB_VERSION}.zip && unzip -q /opt/spm${SPMVERSION}${SPM_REVISION}Linux${MATLAB_VERSION}.zip -d /opt && rm -f /opt/spm${SPMVERSION}${SPM_REVISION}Linux${MATLAB_VERSION}.zip && /opt/spm${SPM_VERSION}/spm${SPM_VERSION} function exit && chmod +x /opt/spm${SPM_VERSION}/spm${SPM_VERSION}": while running runtime: exit status 127

korbinian90 commented 1 month ago

The answer is probably a bit late, still: The problem occurs when the matlab runtime is not found. It needs to be installed before with the correct matlab version. The matlab runtime paths need to be added to LD_LIBRARY_PATH, e.g.

ENV LD_LIBRARY_PATH=/opt/matlabruntime/${MATLAB_VERSION}/runtime/glnxa64:/opt/matlabruntime/${MATLAB_VERSION}/bin/glnxa64:/opt/matlabruntime/${MATLAB_VERSION}/sys/os/glnxa64:/opt/matlabruntime/${MATLAB_VERSION}/sys/opengl/lib/glnxa64:/opt/matlabruntime/${MATLAB_VERSION}/extern/bin/glnxa64