On 8 November 2011 09:00, Paul Dreik <sl...@pauldreik.se> wrote: > 2011-11-07 23:33, Juan Pablo Carbajal skrev: >> On Mon, Nov 7, 2011 at 8:57 PM, Paul Dreik <dive...@pauldreik.se> wrote: >>> Yes, <cstdlib> should be there too. I tested on ubuntu 11.10 (octave >>> 3.2, gcc 4.6.1) and it compiles without <cstdlib>, so it does not seem >>> to be necessary but it should definitely be there, as free is used. >>> >>> By the way, install fails which surprises me, it tries to install system >>> wide. The error message is copied below. (I compiled the package outside >>> octave to see that it compiled with/without <cstdlib>) >>> >>> octave:1> pkg install -local signal-1.1.1.tar.gz >>> cl2bp_lib.cc: In function 'bool cl2bp(MallocArray<double>&, int, double, >>> double, double*, double*, int, double, int, void (*)(void*), void*)': >>> cl2bp_lib.cc:260:7: warning: variable 'iup' set but not used >>> [-Wunused-but-set-variable] >>> cl2bp_lib.cc:267:25: warning: variable 'ak1' set but not used >>> [-Wunused-but-set-variable] >>> couldn't create installation directory >>> /usr/share/octave/packages/3.2/signal-1.1.1 : Permission denied >>> error: called from `pkg>copy_files' in file >>> /usr/share/octave/3.2.4/m/pkg/pkg.m near line 1431, column 7 >>> error: called from: >>> error: /usr/share/octave/3.2.4/m/pkg/pkg.m at line 756, column 5 >>> error: /usr/share/octave/3.2.4/m/pkg/pkg.m at line 287, column 7 >>> octave:1> >>> >>> >>> paul >>> > snip >> Thanks for the remarks, >> Indeed in my system (Ubuntu 10.10 gcc 4.4.5) it compiles perfectly. >> I've added cstdlib. >> >> Regarding the installation issues. It seems that Octave is trying to >> put the package system wide in your machine. It diesn't happen here, >> it uses my ~/octave to do so. >> Did you compiled octave on your own? Maybe it has to do with some >> flags set during configuration? >> > nope, only defaults here! > I can not see any related bug reports on the ubuntu package page > https://launchpad.net/ubuntu/+source/octave3.2/+bugs > I find a related bug on debian however, > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=536839 > > Modifying /etc/octave3.2.conf solves the problem, but one can also run > this in a per session basis > pkg prefix /tmp /tmp > pkg install /tmp/signal-1.1.1.tar.gz > > It is weird that I have not seen any error reports on this, is the > number of debian/ubuntu default installation octave users installing > non-distribution packages that low? Or are they all aware of this?
I've seen other users mentioning they couldn't do a local install of the packages but the fix has always been, "do a system install". Carnë ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev