Hello all,
I have a Debian bookworm system on my computer. I encountered an error when I tried installing matlab-gdf on Linux terminal using apt. It gives the following error:
Setting up matlab-gdf (0.1.3-11) ...
Building Matlab extensions (logfile at /tmp/gdf-mexbuild-1671961944.j0OkP0P)
sh: 1: mex: not found
sh: 1: mex: not found
dpkg: error processing package matlab-gdf (--configure):
installed matlab-gdf package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
matlab-gdf
I can not see any other error codes or file references. Trying sudo dpkg --configure -a and sudo apt --fix-broken install only shows this. This is the display of the log file shown:
debian-matlab-mexhelper 0.0.21.1
Copyright (C) 2010-2011 Michael Hanke <michael.hanke@gmail.com>
Licensed under GNU General Public License version 3 or later.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Michael Hanke.
Attempt to build Matlab extensions
Package name: gdf
Source directory: /usr/src/matlab/gdf
MEX dir: /usr/lib/matlab/site/gdf
M dir: /usr/share/matlab/site/m/gdf
Build user (if any):
Build command: for f in *.cpp; do mex $f -lGDF; done
Install command: mv -t /usr/share/matlab/site/m/gdf *.mex?*
Clean command: rm -f *.o *.a *.mex*
Attempt to build Matlab extensions:
for f in *.cpp; do mex $f -lGDF; done
Due to failed installation, directory /usr/lib/matlab/site/gdf did not exist. I tried to copy /usr/src/matlab/gdf to /usr/lib/matlab/site/gdf, but it didn't work. In Matlab, mex command works normally and gives correct outputs. Hence, I couldn't understand how to resolve this issue.
Thanks in advance.