setup-matlab icon indicating copy to clipboard operation
setup-matlab copied to clipboard

Allow to specify user defined installation path

Open singhbal-baljinder opened this issue 4 years ago • 6 comments

Hello! I would like to know if it is possible to install MATLAB in a user defined path in the runner. If not, it would be a great enhancement :).

Thanks!

singhbal-baljinder avatar Aug 06 '21 13:08 singhbal-baljinder

Hi @singhbal-baljinder,

You cannot currently specify the installation path of MATLAB in the setup-matlab action, but it is certainly something we could consider. Is there a particular reason the default installation path is an issue?

Best, Mark

mcafaro avatar Aug 10 '21 23:08 mcafaro

@mcafaro Sorry for the late reply. While setting up MATLAB I had an issue with libstdc++.so.6: https://it.mathworks.com/matlabcentral/answers/329796-issue-with-libstdc-so-6

One of the way to solve it is to rename <matlabroot>/sys/os/glnxa64/libstdc++.so.6 to <matlabroot>/sys/os/glnxa64/libstdc++.so.6.old but I had some problems doing so on the Github Host so knowing where MATLAB is installed could help. I finally solved this issue by setting LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6.

singhbal-baljinder avatar Oct 26 '21 09:10 singhbal-baljinder

@singhbal-baljinder Got it. Thanks for the clarification. The MATLAB root folder is read-only on GitHub hosted agents, which would explain why you were unable to rename the library. MATLAB is currently installed under /usr/local/MATLAB.

mcafaro avatar Oct 26 '21 13:10 mcafaro

@mcafaro Sorry for the late reply. While setting up MATLAB I had an issue with libstdc++.so.6: https://it.mathworks.com/matlabcentral/answers/329796-issue-with-libstdc-so-6

One of the way to solve it is to rename <matlabroot>/sys/os/glnxa64/libstdc++.so.6 to <matlabroot>/sys/os/glnxa64/libstdc++.so.6.old but I had some problems doing so on the Github Host so knowing where MATLAB is installed could help. I finally solved this issue by setting LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6.

I had the exact same issue regarding libstdc++.so.6 and came here to ask for write permissions. I have tried setting LD_PRELOAD in a step preceding the run-command action but MATLAB appears to ignore it. I have also tried to run setenv('LD_LIBRARY_PATH', '/usr/lib/x86_64-linux-gnu/libstdc++.so.6') in the script I am trying to run, but no success.

Could you tell me what exactly your steps are to set up your MATLAB workflow? @singhbal-baljinder

Simon-Stone avatar Jan 09 '22 22:01 Simon-Stone

Could you tell me what exactly your steps are to set up your MATLAB workflow? @singhbal-baljinder

@nullpunktTUD In my ubuntu-latest CI I am changing LD_PRELOAD through the GITHUB_ENV variable: https://github.com/robotology/urdf2casadi-matlab/blob/5ca4507ba8ae98489ebdc3cf96eb585389f75576/.github/workflows/matlab_ci.yml#L57

singhbal-baljinder avatar Jan 10 '22 09:01 singhbal-baljinder

Thank you so much for the quick response, @singhbal-baljinder ! This solved my problem.

Simon-Stone avatar Jan 10 '22 10:01 Simon-Stone