Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error loading shared libraries #8

Open
SerenaCaplins opened this issue Jan 31, 2024 · 1 comment
Open

error loading shared libraries #8

SerenaCaplins opened this issue Jan 31, 2024 · 1 comment

Comments

@SerenaCaplins
Copy link

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${SPM_VERSION}${SPM_REVISION}Linux${MATLAB_VERSION}.zip -d /opt && rm -f /opt/spm${SPM_VERSION}${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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants