[Neurodebian-users] matlab-spm8 fails to install due to missing gcc

Holger Krause Holger.Krause at med.uni-duesseldorf.de
Mon Jul 25 11:55:35 UTC 2011


Dear list,

I tried to install matlab-spm8 on lucid (ubuntu 10.04). Unfortunately the 
installation fails due to

/usr/bin/matlab-mex: 1372: gcc: not found
eval: 1: gcc: not found

I have a feeling like missing sth. really simple, like some installation notes 
asking me to install gcc on my own, but I can't remember where this comes 
from. Shouldn't the matlab-support package, which is already installed, have 
taken care of all relevant dependencies? matlab-mex is checking for available 
gcc versions, couldn't it return a more informative message to the caller?

Best regards,

Holger

P.S: Please find attached the complete transcript of the aptitude call, and 
the logfile created by spm8-mexbuild.
-------------- next part --------------
13:24:29 krause at metta:~$ sudo aptitude install spm 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Note: selecting "matlab-spm8" instead of the
      virtual package "spm"
The following NEW packages will be installed:
  matlab-spm8 spm8-common{a} spm8-data{a} spm8-doc{a} 
0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/71.6MB of archives. After unpacking 109MB will be used.
Do you want to continue? [Y/n/?] 
Writing extended state information... Done
Selecting previously deselected package spm8-common.
(Reading database ... 202748 files and directories currently installed.)
Unpacking spm8-common (from
.../spm8-common_8.4290~dfsg.1-1~nd10.04+1_all.deb) ...
Selecting previously deselected package matlab-spm8.
Unpacking matlab-spm8 (from
.../matlab-spm8_8.4290~dfsg.1-1~nd10.04+1_all.deb) ...
Selecting previously deselected package spm8-data.
Unpacking spm8-data (from .../spm8-data_8.4290~dfsg.1-1~nd10.04+1_all.deb)
...
Selecting previously deselected package spm8-doc.
Unpacking spm8-doc (from .../spm8-doc_8.4290~dfsg.1-1~nd10.04+1_all.deb) ...
Setting up spm8-common (8.4290~dfsg.1-1~nd10.04+1) ...
Setting up matlab-spm8 (8.4290~dfsg.1-1~nd10.04+1) ...
Building Matlab extensions (logfile at
/tmp/spm8-mexbuild-1311593090.ldMkrfX)
Makefile:401: warning: overriding commands for target `verb.mex'
Makefile:394: warning: ignoring old commands for target `verb.mex'
/usr/bin/matlab-mex: 1372: gcc: not found
eval: 1: gcc: not found

    mex: compile of ' "spm_vol_utils.c"' failed.

make: *** [utils_uchar.mexa64.o] Error 1
dpkg: error processing matlab-spm8 (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up spm8-data (8.4290~dfsg.1-1~nd10.04+1) ...
Setting up spm8-doc (8.4290~dfsg.1-1~nd10.04+1) ...
Errors were encountered while processing:
 matlab-spm8
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up matlab-spm8 (8.4290~dfsg.1-1~nd10.04+1) ...
Building Matlab extensions (logfile at
/tmp/spm8-mexbuild-1311593091.ZhbLNkx)
Makefile:401: warning: overriding commands for target `verb.mex'
Makefile:394: warning: ignoring old commands for target `verb.mex'
/usr/bin/matlab-mex: 1372: gcc: not found
eval: 1: gcc: not found

    mex: compile of ' "spm_vol_utils.c"' failed.

make: *** [utils_uchar.mexa64.o] Error 1
dpkg: error processing matlab-spm8 (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 matlab-spm8
Reading package lists... Done             
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Writing extended state information... Done
-------------- next part --------------
debian-matlab-mexhelper 0.0.13

Copyright (C) 2010-2011 Michael Hanke <michael.hanke at gmail.com>

Licensed under GNU 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:        spm8
Source directory:    /usr/src/matlab/spm8
MEX dir:             /usr/lib/matlab/site/spm8
M dir:               /usr/share/matlab/site/m/spm8
Build user (if any): 
Build command:       make -C src all toolbox MEXBIN="matlab-mex"
Install command:     make -C src install && find . ! -wholename "./src" -name "*.mex?*" -print0 | xargs -0 -I {} cp -v --parent {} /usr/share/spm8
Clean command:       make -C src distclean toolbox-distclean && find . -name "*.mex?*" -delete

Attempt to build Matlab extensions:
make -C src all toolbox MEXBIN="matlab-mex"
make: Entering directory `/usr/src/matlab/spm8/src'
_____________________________________________________________

        Linux compilation (x86-64)
_____________________________________________________________

matlab-mex -O -c spm_vol_utils.c -DSPM_UNSIGNED_CHAR 

Warning: You are using gcc version "".  The version
         currently supported with MEX is "4.3.4".
         For a list of currently supported compilers see: 
         http://www.mathworks.com/support/compilers/current_release/

make: Leaving directory `/usr/src/matlab/spm8/src'


More information about the Neurodebian-users mailing list