Il giorno dom, 12/06/2011 alle 00.12 +0200, Sébastien Villemot ha
scritto:
> Pietro Battiston <m...@pietrobattiston.it> writes:
> 
> > Moreover, Matlab _was_ recognized in some way, since it prompted for a
> > new activation.
> 
> I just realize that this explains your problem: Matlab cannot be run by
> the UNIX user used to compile the MEX file. Maybe you have a single user
> license, and you did not give the right login when configuring the
> "matlab-support" package.
> 
> Try run "dpkg-reconfigure matlab-support" and give your login name when
> prompted to the username who can run Matlab.
> 

Indeed, that changed things, thanks for the tip.
I get another error, though, and I'm pasting below the output and
attaching a log - but feel free to close this bug if you want me to open
another one, since it's a different issue.

Pietro



pietro@voubian:~$ LANG=C sudo aptitude safe-upgrade 
Resolving dependencies...                
The following partially installed packages will be configured:
  dynare-matlab 
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 46 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up dynare-matlab (4.2.1-1) ...   
Building Matlab extensions (logfile
at /tmp/dynare-matlab-mexbuild-1307832274.2nStzib)
/bin/mkdir: cannot create directory `../../../matlab': Permission denied
make[1]: *** [all-local] Error 1
make: *** [all-recursive] Error 1
dpkg: error processing dynare-matlab (--configure):
 subprocess installed post-installation script returned error exit
status 2
configured to not write apport reports
                                      Errors were encountered while
processing:
 dynare-matlab
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up dynare-matlab (4.2.1-1) ...
Building Matlab extensions (logfile
at /tmp/dynare-matlab-mexbuild-1307832281.0dM9gC7)
/bin/mkdir: cannot create directory `../../../matlab': Permission denied
make[1]: *** [all-local] Error 1
make: *** [all-recursive] Error 1
dpkg: error processing dynare-matlab (--configure):
 subprocess installed post-installation script returned error exit
status 2
Errors were encountered while processing:
 dynare-matlab

debian-matlab-mexhelper 0.0.13

Copyright (C) 2010-2011 Michael Hanke <michael.ha...@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:        dynare-matlab
Source directory:    /usr/src/matlab/dynare-matlab/mex/build/matlab
MEX dir:             /usr/lib/matlab/site/dynare-matlab
M dir:               /usr/share/matlab/site/m/dynare-matlab
Build user (if any): pietro
Build command:       ./configure --with-matlab=$(dirname $(dirname $(readlink 
-f `which matlab`))) MATLAB_VERSION=$(echo version | matlab -nodesktop 
-nodisplay -nosplash 2>/dev/null | grep -A2 "ans ="|tail -1| cut -d "." -f 1,2) 
&& make
Install command:     mkdir -p /usr/lib/dynare/mex/matlab && install -m644 
/usr/src/matlab/dynare-matlab/mex/matlab/* /usr/lib/dynare/mex/matlab
Clean command:       make distclean && rmdir 
/usr/src/matlab/dynare-matlab/mex/matlab

Attempt to build Matlab extensions:
sudo -H -u pietro sh -c "./configure --with-matlab=$(dirname $(dirname 
$(readlink -f `which matlab`))) MATLAB_VERSION=$(echo version | matlab 
-nodesktop -nodisplay -nosplash 2>/dev/null | grep -A2 "ans ="|tail -1| cut -d 
"." -f 1,2) && make"
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for MATLAB prefix... /home/nobackup/matlab
checking whether to enable MATLAB support... yes
checking for MATLAB version... 7.12
checking for MEX-file suffix... mexa64
setting MEX-file suffix to .mexa64
checking for MATLAB machine architecture... glnxa64
checking for a sed that does not truncate output... /bin/sed
checking for options to compile MEX for MATLAB... ok
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... gfortran
checking whether the Fortran 77 compiler works... yes
checking for Fortran 77 compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for boostlib >= 1.36... yes
checking for dlopen in -ldl... yes
configure:

Dynare is now configured for building the following components...

Binaries (with "make"):
 MEX files for MATLAB:     yes
 M2HTML documentation:     no


configure: creating ./config.status
config.status: creating Makefile
config.status: creating mjdgges/Makefile
config.status: creating kronecker/Makefile
config.status: creating bytecode/Makefile
config.status: creating libdynare++/Makefile
config.status: creating gensylv/Makefile
config.status: creating k_order_perturbation/Makefile
config.status: creating dynare_simul_/Makefile
config.status: executing depfiles commands
Making all in mjdgges
make[1]: Entering directory 
`/usr/src/matlab/dynare-matlab/mex/build/matlab/mjdgges'
/bin/mkdir -p ../../../matlab
make[1]: Leaving directory 
`/usr/src/matlab/dynare-matlab/mex/build/matlab/mjdgges'

Reply via email to