Re: Error with Regex

"batifon" <[email protected]> Sat, 19 May 2012 08:10:18 -0000
Newsgroups gmane.comp.lang.io
Message-ID <[email protected]>

Hi, same probleme here with the following:

$ io
Io 20110905
Io> r := Regex with("a")
==> "a" asRegex
Io> "a" matchesOfRegex(r) next
IoState_protoWithId_() Error: missing proto with id
IoState fatal error: missing proto 'RegexMatch'

I have libpcre3 too, and ldd /usr/local/lib/io/addons/Regex/_build/dll/libIoRegex.so gives:

linux-gate.so.1 =>  (0xb7784000)
libiovmall.so => /usr/local/lib/libiovmall.so (0xb76e0000)
libpcre.so.3 => /lib/i386-linux-gnu/libpcre.so.3 (0xb76a4000)
libIoRange.so => not found
libbasekit.so => /usr/local/lib/libbasekit.so (0xb7619000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7474000)
libcoroutine.so => /usr/local/lib/libcoroutine.so (0xb7470000)
libgarbagecollector.so => /usr/local/lib/libgarbagecollector.so (0xb746a000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7464000)
/lib/ld-linux.so.2 (0xb7785000)

Any ideas ?

--- In [email protected], "bqt0xenk" <bqt0xenk@...> wrote:
>
> Hi,
> 
> I try executing this code:
> 
> regex := Regex with("a+")
> match := "aaaa73noises" matchesOfRegex(regex) next
> 
> 
> but get this error:
> 
> IoState_protoWithId_() Error: missing proto with id
> IoState fatal error: missing proto 'RegexMatch'%      
> 
> 
> I have 
> 
> libpcre3                                        7.8-3build1 
> 
> installed on my system and compiled libpcre 8 to /usr/local/lib
> 
> ldd /usr/local/lib/io/addons/Regex/_build/dll/libIoRegex.so gives:
> 
> libpcre.so.0 => /usr/local/lib/libpcre.so.0 (0xb7673000)
> 
> 
> 
> Any ideas?
>