have you looked at Octave ?
it runs most matlab "m " files
but there is NO binary mex support
octave should be in most if not all OS repos
Code:
apt-get install octave
--- or ---
yum install octave
--- or ---
dnf install octave
--- or ---
zypper in octave
-- and so on ...