help-octave
[Top][All Lists]
Advanced

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

Re: compile error please help more help


From: Doug Stewart
Subject: Re: compile error please help more help
Date: Sun, 14 Dec 2008 09:38:59 -0500
User-agent: Thunderbird 2.0.0.18 (X11/20081125)

Carlo de Falco wrote:

On 14/dic/08, at 13:26, Doug Stewart wrote:

here it is

address@hidden:~$ gnuplot --version
gnuplot 4.2 patchlevel 2
address@hidden:~$


interesting !!!!
doug



I think it could be a problem with your PCRE installation.
The relevant code in __gnuplot_version__ is

------------------------------------------------------
output = "gnuplot 4.2 patchlevel 2";
pattern = "^[^\\s]*\\s*([0-9]+\\.[0-9]+)\\s*[^\\s]*\\s*([^\\s]*)";
[d1, d2, d3, d4, matches] = regexp (output, pattern);
if (iscell (matches) && numel (matches) > 0 && iscellstr (matches{1}))
if (numel (matches{1}) == 2)
__version__ = sprintf ("%s.%s", matches{1}{:});
else
__version__ = matches{1}{1};
endif
endif
--------------------------------------------------------

which for me gives:

------------------------------------------------------
> matches
matches =

{
[1,1] =

{
[1,1] = 4.2
[1,2] = 2
}

}

>> __version__
__version__ = 4.2.2
------------------------------------------------------

what does it return on your system?
c.

I tried this in octave 3.0.0 and got the following. but that is not using the current code.

octave-3.0.0:1> output = "gnuplot 4.2 patchlevel 2";
octave-3.0.0:2> pattern = "^[^\\s]*\\s*([0-9]+\\.[0-9]+)\\s*[^\\s]*\\s*([^\\s]*)";
octave-3.0.0:3> [d1, d2, d3, d4, matches] = regexp (output, pattern);
octave-3.0.0:4> if (iscell (matches) && numel (matches) > 0 && iscellstr (matches{1}))
> if (numel (matches{1}) == 2)
> __version__ = sprintf ("%s.%s", matches{1}{:});
> else
> __version__ = matches{1}{1};
> endif
> endif
octave-3.0.0:5> matches
matches =

{
[1,1] =

{
[1,1] = 4.2
[1,2] = 2
}

}

octave-3.0.0:6> __version__
__version__ = 4.2.2
octave-3.0.0:7>





I don't understand PCRE

address@hidden:~$ whereis pcre
pcre:
address@hidden:~$

Is it software that I should install? is it a library?
Doug


reply via email to

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