Re: [greenstone-users] Re: Linux - plugin problem- collectionbuildfail

From Michael Dewsnip
DateThu, 10 Feb 2005 16:57:27 +1300
Subject Re: [greenstone-users] Re: Linux - plugin problem- collectionbuildfail
In-Reply-To (1107719660-6450-17-camel-localhost-localdomain)
Hi Jim,

Thanks for this information. For the next release we're going to try
detecting existing versions of the Expat module and not installing the
Greenstone version in that case -- hopefully this will help avoid
problems like yours.

All the best,

Michael

Jim Elmborg wrote:

>Sorry to be slow responding. These XML Parser errors apparently come
>from conflicting versions of Perl on the system (as Birgit kindly
>pointed out, this problem is actually well described on the FAQ). After
>I read the FAQ, it was not clear to me exactly how to fix the problem.
>
>After some correspondence with some very helpful people off list (thanks
>especially to Rus), I decided to remove the entire cpan directory out of
>the Greenstone installation to see if Greenstone would use the system's
>Perl. I figured if this didn't work, I was no worse off than before and
>could proceed with other fixes. I moved the cpan directory to another
>location, and lo and behold, problem gone, collections build. I've been
>running this installation for the last two weeks now with no problems.
>
>Hope this helps somebody.
>
>Jim Elmborg
>
>
>On Fri, 2005-01-28 at 20:23 +0100, F B wrote:
>
>
>>Hi
>>
>>I don't have access to my linux test box at the moment so Jim can you tell me if the solution worked for you?
>>
>>Thanks
>>
>>
>>
>>
>>
>>>Jim Elmborg wrote:
>>>
>>>
>>>
>>>>(quoting from Farid)
>>>>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 developer's guide.
>>>>
>>>>The same box shows up but for the following plugins: METSPlug.pm
>>>>XMLPlug.pm
>>>>RecPlug.pm"
>>>>
>>>>I can use GLI to tag the collection and proceed to build, but build
>>>>fails instantly with this error
>>>>
>>>>Compilation failed in require at /usr/local/gsdl/perllib/plugin.pm line
>>>>67. Looks like line 67 is the first time a plugin is called in the
>>>>build.
>>>>
>>>>Both installations are from binary distribution (not compiled from
>>>>source). When I tried to run pluginfo.pl GAPlug, I get the following
>>>>message:
>>>>
>>>>Can't load
>>>>'/usr/local/gsdl/perllib/cpan/perl-5.8/auto/XML/Parser/Expat/Expat.so'
>>>>for module
>>>>XML::Parser::Expat:
>>>>/usr/local/gsdl/perllib/cpan/perl-5.8/auto/XML/Parser/Expat/Expat.so:
>>>>undefined symbol: PL_stack_sp at
>>>>/usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line
>>>>230.
>>>>at /usr/local/gsdl/perllib/cpan/perl-5.8/XML/Parser.pm line 15
>>>>Compilation failed in require
>>>>at /usr/local/gsdl/perllib/cpan/perl-5.8/XML/Parser.pm line 15.
>>>>BEGIN failed--compilation aborted
>>>>at /usr/local/gsdl/perllib/cpan/perl-5.8/XML/Parser.pm line 27.
>>>>Compilation failed in require at /usr/local/gsdl/perllib/XMLParser.pm
>>>>line 29.
>>>>BEGIN failed--compilation aborted
>>>>at /usr/local/gsdl/perllib/XMLParser.pm line 29.
>>>>Compilation failed in require
>>>>at /usr/local/gsdl/perllib/plugins/XMLPlug.pm line 36.
>>>>BEGIN failed--compilation aborted
>>>>at /usr/local/gsdl/perllib/plugins/XMLPlug.pm line 36.
>>>>Compilation failed in require
>>>>at /usr/local/gsdl/perllib/plugins/GAPlug.pm line 35.
>>>>BEGIN failed--compilation aborted
>>>>at /usr/local/gsdl/perllib/plugins/GAPlug.pm line 35.
>>>>Compilation failed in require at /usr/local/gsdl/perllib/plugin.pm line
>>>>66.
>>>>
>>>>The script seems to fail at line 15 of Parser.pm. That line reads:
>>>>
>>>>require XML::Parser::Expat;
>>>>
>>>>So I installed the XML::Parser::Expat thinking I might be missing that.
>>>>Then I reinstalled Greenstone. Still same problems. Am taking a break
>>>>now and hoping someone can help me figure out this installation.
>>>>Any guidance much appreciated.
>>>>
>>>>Thanks,
>>>>Jim Elmborg
>>>>
>>>>
>>>>
>>>>
>>>>
>>>at the risk of pointing out the obvious: have you checked this faq
>>>entry -
>>>http://www.greenstone.org/cgi-bin/library?e=p-en-faq-utfZz-8&a=p&p=faqbuild#33? This is how I got rid of these errors - remove the modules that come bundled with Greenstone, and install fresh ones from CPAN
>>>instead.
>>>
>>>Best regards,
>>>
>>>Birgit
>>>
>>>
>>>
>>>_______________________________________________
>>>greenstone-users mailing list
>>>greenstone-users@list.scms.waikato.ac.nz
>>>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>>>
>>>
>
>
>
>_______________________________________________
>greenstone-users mailing list
>greenstone-users@list.scms.waikato.ac.nz
>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>
>