muscbridge / mcr-v97

Matlab (C) Runtime for Matlab R2019b (v.9.7) in Docker
https://hub.docker.com/repository/docker/dmri/mcr-v97
Mozilla Public License 2.0
1 stars 1 forks source link

cannot install matlab runtime #1

Open Laura-Bueno opened 2 years ago

Laura-Bueno commented 2 years ago

Hi,

When I try to run your dockerfile to install Matlab Runtime in my Linux VM, I get the following error:

The following error was detected while installing lxe/lxe_glnxa64:

/opt/mcr/v97/bin/glnxa64/builtins/lxe/lxe/mwm_lxe_builtinimpl.so (No such file or directory)

Any idea what this could be or how to fix it please?

Many thanks in advance!

TheJaeger commented 2 years ago

Hi @Laura-Bueno, I'll look into why this error is being produced. You may pull the pre-built image in the meantime with docker pull dmri/mcr-v97.

TheJaeger commented 2 years ago

I just tried building this Dockerfile and it runs to completion on my end. In order for me to better assist you, could you post the command you ran, your system information, and a screenshot of the terminal window with the error?

Laura-Bueno commented 2 years ago

Hi @TheJaeger , thank you for your reply. I just tried to pull the pre-built image with docker pull dmri/mcr-v97 as you mentioned, however I get the following error:

"failed to register layer: ApplyLayer exit status 1 stdout: stderr: write /mcr-install/MATLAB_Runtime_R2019b_Update_5_glnxa64.zip: no space left on device"

I tried 'docker system prune --all' and still got the same error. Any ideas how could I solve this?

Thanks

TheJaeger commented 2 years ago

It means that all storage allocated to Docker for containers/images is full. You'll need to remove some containers to make more space. This guide here clears ALL locally stored containers: https://stackoverflow.com/questions/44785585/docker-how-to-delete-all-local-docker-images

Laura-Bueno commented 2 years ago

Hi @TheJaeger , thank you - I managed to solve he issue with the memory space. I have also instaled matlab runtime in the virtual machine and pulled the matlab runtime docker image. However, when I run the dockerfile I get the following error related to the environmental variable Library path.

RuntimeError: Could not find an appropriate directory for MATLAB or the MATLAB runtime in LD_LIBRARY_PATH. Details: libmwmclmcrrt.so.9.7

Any ideas why this could be?

thanks!

TheJaeger commented 2 years ago

Hi @Laura-Bueno,

Could you share the command you ran, as well a screenshot of your Terminal window?

Laura-Bueno commented 2 years ago

Hi @TheJaeger,

Sure, please see below.

1) Pulled the image running the command docker pull dmri/mcr-v97. 2) Installed Matlab runtime v9.7 in virtual machine and set up the library path environmental variable. 3) Within Dockerfile to run my application I included a command to import the runtime image and added the following commands to set up the environmental variable:

ENV LD_LIBRARY_PATH /opt/mcr/v97/runtime/glnxa64:/opt/mcr/v97/bin/glnxa64:/opt/mcr/v97/sys/os/glnxa64:/opt/mcr/v97/extern/bin/glnxa64 ENV XAPPLRESDIR /etc/X11/app-defaults

The dockerfile runs ok and it is able to build the image of my application however when I create and the container I get the following error:

image

Thanks