On Wed, May 25, 2011 at 4:52 AM, Nir Krakauer <[email protected]> wrote: > When I download the current nan package and try to install it in Octave with > > pkg install nan-2.4.1.tar.gz > > I get compilation errors related to mex files (copied below). All > nan-2.x versions give similar kinds of errors. nan-1.0.9 compiles and > runs fine. > > I'm running Octave 3.4.0 compiled from source (libraries and > executables installed in home directory rather than in /usr ) in > Debian unstable. > > Nir > > > > > make: /usr/local/MATLAB/R2010b/bin/mexext: Command not found > make: Entering directory `/tmp/oct-PnYVhn/NaN/src' > make: /usr/local/MATLAB/R2010b/bin/mexext: Command not found > make: /usr/local/MATLAB/R2010b/bin/mexext: Command not found > make: /usr/local/MATLAB/R2010b/bin/mexext: Command not found > make: /usr/local/MATLAB/R2010b/bin/mexext: Command not found > make: /usr/local/MATLAB/R2010b/bin/mexext: Command not found > Makefile:112: warning: overriding commands for target `clean' > Makefile:88: warning: ignoring old commands for target `clean' > str2array.cpp: In function 'void mexFunction(int, mxArray**, int, > const mxArray**)': > str2array.cpp:142: warning: deprecated conversion from string constant > to 'char*' > str2array.cpp:143: warning: deprecated conversion from string constant > to 'char*' > str2array.cpp:145: warning: deprecated conversion from string constant > to 'char*' > linear_model_matlab.c:32:17: error: mex.h: No such file or directory > linear_model_matlab.c:57: error: expected ')' before '*' token > linear_model_matlab.c:136: warning: type defaults to 'int' in > declaration of 'mxArray' > linear_model_matlab.c:136: error: expected ';', ',' or ')' before '*' token > make: *** [train.mex] Error 1 > 'make' returned the following error: mkoctfile-3.4.0 --mex > histo_mex.cpp -lz -lgomp ## Octave > mkoctfile-3.4.0 --mex covm_mex.cpp -lz -lgomp ## Octave > mkoctfile-3.4.0 --mex kth_element.cpp -lz -lgomp ## Octave > mkoctfile-3.4.0 --mex sumskipnan_mex.cpp -lz -lgomp ## Octave > mkoctfile-3.4.0 --mex str2array.cpp -lz -lgomp ## Octave > g++ -fopenmp -Wall -Wconversion -O2 -fPIC -c tron.cpp > g++ -fopenmp -Wall -Wconversion -O2 -fPIC -c linear.cpp > gcc -fopenmp -Wall -Wconversion -O2 -fPIC -I > /usr/local/include/octave-3.4.0/octave -c linear_model_matlab.c > make: Leaving directory `/tmp/oct-PnYVhn/NaN/src' > error: called from `pkg>configure_make' in file > /home/nir/octave/octave-3.4.0/octave/share/octave/3.4.0/m/pkg/pkg.m > near line 1332, column 9 > error: called from: > error: /home/nir/octave/octave-3.4.0/octave/share/octave/3.4.0/m/pkg/pkg.m > at line 783, column 5 > error: /home/nir/octave/octave-3.4.0/octave/share/octave/3.4.0/m/pkg/pkg.m > at line 354, column 9 > > ------------------------------------------------------------------------------ > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, > you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 > _______________________________________________ > Octave-dev mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/octave-dev >
Same happens here Octave 3.5.0+, on Ubuntu 10.10 -- M. Sc. Juan Pablo Carbajal ----- PhD Student University of Zürich www.ailab.ch/carbajal ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ Octave-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/octave-dev
