Re: [greenstone-users] GLI plugins loading error

From Lian Liming
DateSat, 27 Nov 2004 23:26:10 +0800
Subject Re: [greenstone-users] GLI plugins loading error
In-Reply-To (41A88C6A-2020908-realss-com)
Lian Liming wrote:

> Lian Liming wrote:
>
>> Hi all,
>> When i start the GLI , it appears a banner of "Loading Plugins".
>> And it stops with an error:
>> "Unable to determin the arguments for the GAPlug.pm" plugin.
>> Please ensure that the plugin in question provides the -xml flag by
>> running the pluginfo.pl script described in section 2.1 of the
>> Greenstone Developers Guide".
>> I check the Greenstone Developer Guide, and find there is very
>> hard for me to get the meaning(i am not familiar with the greenstone
>> source).
>> I did not change any code after downloading the greenstone
>> installation source.
>>
>> What is the possible wrong? and how can i fix it?
>>
>> Thank you for suggestions.
>>
>>
>> _______________________________________________
>> greenstone-users mailing list
>> greenstone-users@list.scms.waikato.ac.nz
>> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>>
> Another helpful information is that:
>
> I get the following message by the command "pluginfo.pl GAPlug" at
> command prompt:
>
> Can't load
> '/var/www/greenstone/gsdl/perllib/cpan/perl-5.8/auto/XML/Parser/Expat/Expat.so'
> for module XML::Parser::Expat:
> /var/www/greenstone/gsdl/perllib/cpan/perl-5.8/auto/XML/Parser/Expat/Expat.so:
> undefined symbol: PL_stack_sp at /usr/lib/perl/5.8/DynaLoader.pm line
> 225.
> at /var/www/greenstone/gsdl/perllib/cpan/perl-5.8/XML/Parser.pm line 15
> Compilation failed in require at
> /var/www/greenstone/gsdl/perllib/cpan/perl-5.8/XML/Parser.pm line 15.
> BEGIN failed--compilation aborted at
> /var/www/greenstone/gsdl/perllib/cpan/perl-5.8/XML/Parser.pm line 27.
> Compilation failed in require at
> /var/www/greenstone/gsdl/perllib/XMLParser.pm line 29.
> BEGIN failed--compilation aborted at
> /var/www/greenstone/gsdl/perllib/XMLParser.pm line 29.
> Compilation failed in require at
> /var/www/greenstone/gsdl/perllib/plugins/XMLPlug.pm line 36.
> BEGIN failed--compilation aborted at
> /var/www/greenstone/gsdl/perllib/plugins/XMLPlug.pm line 36.
> Compilation failed in require at
> /var/www/greenstone/gsdl/perllib/plugins/GAPlug.pm line 35.
> BEGIN failed--compilation aborted at
> /var/www/greenstone/gsdl/perllib/plugins/GAPlug.pm line 35.
> Compilation failed in require at
> /var/www/greenstone/gsdl/perllib/plugin.pm line 66.
>
>
> It seems something wrong with my perl && xml, i am a newbie on these
> two technology.
> Can someone help me for what is the possible wrong and how to fix it?
>
> Any help is appreciated.
>
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
ok, i find the season for my problem from the FAQ of greenstone.org
website:
Following the solution, hope that it can help someone with the same problem


----------------------------------------------------------------------------------------------------------------------------------------------------

How do I fix XML::Parser errors during import.pl?


Our prebuilt Linux and Mac OS X Greenstone distributions are built on
machines using Perl 5.6, and these distributions contain a few binary
perl modules. These cause problems if you are using a recent version of
perl like 5.8 or 5.8.1 (you can type "perl -v" from the command line to
see the version).

On the Mac, our distribution contains modules for both perl 5.6 and 5.8
and the correct one should (hopefully) be installed.

A typical error message during import.pl would be:

Uncaught exception from user code: Can't load
'/home/httpd/gsdl/perllib/cpan/auto/XML/Parser/Expat/Expat.so' for
module XML::Parser::Expat:
/home/httpd/gsdl/perllib/cpan/auto/XML/Parser/Expat/Expat.so: undefined
symbol: PL_sv_undef at
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229. at
/home/httpd/gsdl/perllib/cpan/XML/Parser.pm line 14

To remedy this, you need to remove the "gsdl/perllib/cpan/XML" and
"gsdl/perllib/cpan/auto" directories. Then you need to install the perl
XML::Parser natively for your system, and get Greenstone to use this
instead.

On redhat or mandrake, install the .rpm named "perl-XML-Parser", on
debian, install the "libxml-parser-perl" package. For other Linuxes, use
your distribution's package, or you can get it from
http://search.cpan.org/~msergeant/XML-Parser-2.34/
<http://search.cpan.org/%7Emsergeant/XML-Parser-2.34/>.

You may also need to get Expat, available from
http://sourceforge.net/projects/expat/