Dear all,
I recently experienced a serious problem when trying to use MATLAB functions in COMSOL on Linux computers, where COMSOL needs to call a MATLAB command line.
I use COMSOL 4.4 and MATLAB R2013b.
I both tried that on a workstation with Ubuntu 12.04 and a server with Debian 7.7.
Models and MATLAB functions where tested on a PC with Windows 7 before and worked.
When trying to run them (actually when trying to run any function that needs to call MATLAB), I get the following error:
-----------------------------------------------------------------------------
The following feature has encountered a problem:
Failure loading MATLAB libraries. This model requires that MATLAB is available.
- Library: csmatlab.so
- Error: libeng.so: cannot open shared object file: No such file or directory
-----------------------------------------------------------------------------
Both libraries, csmatlab.so and libeng.so, are on the system. libeng.so is also in the directory of the MATLAB installation that is set in COMSOL, namely /usr/local/MATLAB/R2013b (and there within /bin/glnxa64/libeng.so).
Calling COMSOL servers from MATLAB works perfectly fine on this systems (to the best of my knowledge and experience).
So did anyone else get this error and is there a solution for that problem?
Thanks already in advance for your help.
Best,
Hannes
I recently experienced a serious problem when trying to use MATLAB functions in COMSOL on Linux computers, where COMSOL needs to call a MATLAB command line.
I use COMSOL 4.4 and MATLAB R2013b.
I both tried that on a workstation with Ubuntu 12.04 and a server with Debian 7.7.
Models and MATLAB functions where tested on a PC with Windows 7 before and worked.
When trying to run them (actually when trying to run any function that needs to call MATLAB), I get the following error:
-----------------------------------------------------------------------------
The following feature has encountered a problem:
Failure loading MATLAB libraries. This model requires that MATLAB is available.
- Library: csmatlab.so
- Error: libeng.so: cannot open shared object file: No such file or directory
-----------------------------------------------------------------------------
Both libraries, csmatlab.so and libeng.so, are on the system. libeng.so is also in the directory of the MATLAB installation that is set in COMSOL, namely /usr/local/MATLAB/R2013b (and there within /bin/glnxa64/libeng.so).
Calling COMSOL servers from MATLAB works perfectly fine on this systems (to the best of my knowledge and experience).
So did anyone else get this error and is there a solution for that problem?
Thanks already in advance for your help.
Best,
Hannes