compile error please help more help

Doug Stewart dastew at sympatico.ca
Sun Dec 14 13:40:40 CST 2008


Carlo de Falco wrote:
>
> On 14/dic/08, at 14:38, Doug Stewart wrote:
>
>> I don't understand PCRE
>>
>> doug at ubuntu32:~$ whereis pcre
>> pcre:
>> doug at ubuntu32:~$
>>
>> Is it software that I should install? is it a library?
>> Doug
>
> PCRE is the library on which the command "regexp" is based (as far as 
> I understand).
> On ubuntu I think this is located /usr/lib/libpcre.so
> my guess whas that, maybe due to missing/malfunctioning libpcre
> the regexp command in your Octave is not working properly so that the
> call to regexp in __gnuplot_version__ returns "4.2."
> instead of "4.2" or "4.2.2" which would be valid version strings
> c.
>
>
>

yes there seems to be a problem in regexp.

using this input
output = gnuplot 4.2 patchlevel 2

it returns:

d1 = 1
d2 = 26
d3 =

{
[1,1] =

9 11
27 26

}

d4 =

{
[1,1] = gnuplot 4.2 patchlevel 2

}

matches =

{
[1,1] =

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

}


you see that the second element is blank

so now

numel (matches{1}) == 2 returns true

and
__version__ = sprintf ("%s.%s", matches{1}{:})

prints the 4.2 then a . then the blank


Also when I do a make check it reports 8 errors for regexp

So :
1) where is regexp?
2) what is PCRE and where do I look to debug it?


Any help is valued.
Doug


PS I do have a running version
GNU Octave, version 3.1.51+
Copyright (C) 2008 John W. Eaton and others.

but every thing is not quite there yet.







More information about the Help-octave mailing list