help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

octave 2.9.10 pkg and FreeBSD


From: sam sirlin
Subject: octave 2.9.10 pkg and FreeBSD
Date: Fri, 06 Apr 2007 23:19:28 -0700
User-agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.13) Gecko/20070121

Hi,

I've been using 2.1.73 and octave-forge on FreeBSD and Solaris as well as Linux. Now I'm starting to try 2.9.10 -- looks like a lot of good improvements.

Built fairly easily on FreeBSD
- requires gnu sed for the fortran filter file libcruft/mkf77def
- need to add -lstdc++  to LIBS in Makeconf
- need to add a few -R/usr/local/lib/octave-2.9.10 in Makeconf

Now trying to add the octave forge packages is more messy -- they seem to assume -- shell is (ba)sh (mine is (t)csh) Is there some way to configure the shell system uses?
  e.g. unpack.m  does

octave:14> pkg install plot-1.0.0.tar.gz
tar: Error opening archive: Failed to open '/dev/sa0': No such file or directory

This seems to fix unpack.m for me (gunzip pipe to tar just doesn't seem to work, but gtar can do the whole thing)
% sws    commandlist.targz = {"gunzip -c \"%s\" | tar -x -v", ...
%             "gunzip -c \"%s\" | tar -x", ...
%             @__parse_tar__, false};
   commandlist.targz = {"gtar xvf \"%s\" ", ...
            "gtar xvf \"%s\" ", ...
            @__parse_tar__, false};
...
% sws [status, output] = system (sprintf (strcat (command, " 2>&1"), file));
   xcommand = sprintf (strcat (command, " "), file);
   [status, output] = system (xcommand);

next fixing pkg.m
% sws [status, output] = system(["export INSTALLDIR=" desc.dir "; make -C " src]);
             commandxx = ["export INSTALLDIR=" desc.dir "; gmake -C " src];
           [status, output] = system(commandxx);

Here for some reason sh seems to work?! Just need gmake. So now the whole thing seems to be building...
a few didn't build, ...

It would be nice if pkg were more verbose and configurable, but these hacks seem to get it to function for me.

Sam Sirlin






reply via email to

[Prev in Thread] Current Thread [Next in Thread]