1. We need to use matlab runtime(MCR) instead of matlab because then there is no license issue. Calling a compiled or not compiled matlab program from Omero without MCR installed will have a license issue as far as I know.
Understood.
2. We tried to add MCR's library path both to the system and Omero account. When adding the path to system library path, it caused Omero server failed to start. When adding MCR's library path to Omero, it still can not find MCR libraries.
So adding the MCR shared libraries to the OMERO environment seem to be blocker probably for the reasons explained by Roger earlier.
So, we are stuck here at this point...Any other suggestions?
One thought. Since the MCR library is only required within the scope of the script, it might be worth trying to extend the environment variable and set it during the subprocess.Popen using the env keyword.
Best,
Sebastien