Question: Matlab (R2024b) connection does not work on Maple 2024 -2025

On Ubuntu 24.04 or LinuxMint 22.1 (based on Ubuntu 24.04) I have the problem with(Matlab) funtions functionality

Matlab[openlink]();
Error, (in Matlab:-openlink) There was a problem initializing the Matlab engine. Refer to ?Matlab,setup for help configuring your system to work with the Matlab-link.  The error was: Maple/Matlab Link: Can't start Matlab engine; environment variable $MATLAB_BASEDIR not set

+ other error mesages from CLI:

starting mmatlink
In connectToMatlab
/bin/csh: /opt/MATLAB/R2024b/bin/glnxa64/libbsd.so.0: version `LIBBSD_0.7' not found (required by /bin/csh)

MATLAB R2024b using obsolete libbsd ver. 0.4.2 !!! So this is probably the problem...

$MATLAB_BASEDIR is properly defined at maple script:

# In order to link to MATLAB from within Maple, correct the following path
# and uncomment the next four lines, or define the environment variable,
# $MATLAB_BASEDIR outside this script.
if [ -z "$MATLAB_BASEDIR" ] ; then
MATLAB_BASEDIR=/opt/MATLAB/R2024b
export MATLAB_BASEDIR
fi

# C-shell is required for link to MATLAB (sudo apt install csh)

Any help???

Please Wait...