RE: [greenstone-users] Greenstone and perl

DateWed, 17 Dec 2003 16:54:43 +0000
Subject RE: [greenstone-users] Greenstone and perl
Thanks for the suggestions John.

You were quite correct, I am using perl 5.8.0

I tried suggestion one and can now build collections on 2.41 with no problems.

If I get other, similar problems I'll try suggestion 2 as a blanket kind of coverall approach.

Thanks again.

> t.janssen wrote:

> Uncaught exception from user code: Can't load
> '/home/httpd/gsdl/perllib/cpan/auto/XML/Parser/Expat/' for
> module XML::Parser::Expat:
> /home/httpd/gsdl/perllib/cpan/auto/XML/Parser/Expat/
> undefined symbol: PL_sv_undef at
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi/ line 229.
> at /home/httpd/gsdl/perllib/cpan/XML/ line 14
> I presume this is a problem with my OS distribution. I am running
> 2.41 on Red Hat 9. Any ideas, anyone?

And Jeremy Mears wrote:

> Here's the new error log when i go to build:
> Command: /Applications/Greenstone/bin/script/ -importdir
> /Applications/Greenstone/collect/test2/gimport/ test2
>> dyld: perl Undefined symbols:
>> _PL_curpad
>> _PL_markstack_max
> MacOSX 10.3.1

I think I know what is causing these problems... I assume you are both
using a very recent version of perl, like 5.8 or 5.8.1 (you can type
"perl -v" from the command line to see the version).

Both our prebuilt linux and mac os x greenstone distributions were built
on machines that use perl 5.6, and the distributions contain a few
binary perl modules. I think these are what are causing the problems
when trying to import and build collections.

There are two things you could try:
1) install the perl "XML::Parser" natively for your system and get
greenstone to use that instead of the one that comes with greenstone.
You might have to remove the "gsdl/perllib/cpan/XML" and
"gsdl/perllib/cpan/auto" directories so that perl doesn't look in there

2) build greenstone from the source distribution. This will compile the
perl modules for your currently installed version of perl.
We have notes online to help with compiling greenstone from source:

Hope this helps

John McPherson