From bug-request at octave dot org Sun Mar 6 23:38:42 2005 Subject: gcc cannot find "mex.h" or "mex.o" From: "Edward C. Jones" To: bug-octave at bevo dot che dot wisc dot edu Date: Sun, 6 Mar 2005 23:02:38 -0600 I am trying to install WaveLab with Octave. I have an up-to-date Debian sid system on a PC. I have installed Debian packages "octave2.1", version 2.1.67-1 and "octave-forge", version 2004.11.16-6. Yto 2.1.67 is very recent. As root, I start octave, then run "startup". I get the error messages like: building CPAnalysis.c + mkoctfile -DHAVE_OCTAVE_21 -v -o CPAnalysis.oct mex_CPAnalysis.cc /usr/lib/octave/2.1.66/site/oct/i386-pc-linux-gnu/octave-forge/mex.o -I/usr/lib/octave/2.1.66/site/oct/i386-pc-linux-gnu/octave-forge -DV4 CPAnalysis.c /usr/bin/gcc -c -fPIC -I/usr/include/octave-2.1.67 -I/usr/include/octave-2.1.67/octave -I/usr/lib/octave/site/oct/api-v13/i386-pc-linux-gnu/octave-forge -mieee-fp -O2 -I/usr/lib/octave/2.1.66/site/oct/i386-pc-linux-gnu/octave-forge -DHAVE_OCTAVE_21 -DV4 CPAnalysis.c -o CPAnalysis.o It is looking for mex.h and mex.o in the wrong directory. The correct directory is /usr/lib/octave/site/oct/api-v13/i386-pc-linux-gnu/octave-forge Note the "2.1.66"s. ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------