[greenstone-users] Re: Linux - plugin problem- collection build fail

From Jim Elmborg
DateFri, 21 Jan 2005 16:04:01 -0600
Subject [greenstone-users] Re: Linux - plugin problem- collection build fail
In-Reply-To (1105304517-14345-12-camel-puriri-cs-waikato-ac-nz)
Hi,
I've been successfully running Greenstone for over a year now, but I'm
hitting a wall trying to install 2.52 on Linux.

I have exactly the same problem as reported by Farid on 1-10-05. He
describes it so completely (full message below) it makes no sense to
type it all again. I have had this problem twice--once on a Mandrake
10.1 installation and now on a Fedora Core 3 installation. Farid
reports the problem on Suse, Redhat 9, and Knoppix.

I can provide the following information that might clarify what's
happening, though the problem is past my technical knowledge.

First sign of trouble is in defining the collection--

(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

On Mon, 2005-01-10 at 10:01 +1300, John R. McPherson wrote:

> On Wed, 2004-12-29 at 09:33, Farid wrote:
> > Hi
> >
> > I've tried to solve the following problem for more than 30 hours but to not much use. Here's the description:
> >
> > On SuSE 9.2/Redhat 9/ Knoppix 3.6 each fully meeting the requirements (except for a libgdbm-dev package for the src installation) I installed gsdl 2.52 both as binary and from source but each time I run ./gli.sh everything seems to be going ok except for that I can't build any collections not even the demo collection provided by the package itself! i.e. when I try to open the collection/ base a new one on it the following error window pops up right after:
> >
> > unable to determine 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 greenstoen developer's guide.
> >
> > The same box shows up but for the following plugins:
> >
> > METSPlug.pm
> > XMLPlug.pm
> > RecPlug.pm
>
> These plugins all use the "Expat" xml parser library, so it seems likely
> that there is a problem with the version of the perl expat library
> distributed with the greenstone linux binaries and the installed version
> of the expat library on your computer. Did you install greenstone from
> the linux binary distribution, or compile it from source?
>
> > So as told by the dev guid and having run the source setup.bash I cded to the plugins directory and ran this:
> >
> > pluginfo.pl GAPlug.pm
> >
> > But here's the result:
> >
> > ERROR: Could not find plugin\GAPlug.pm\"
> >
> > But it's right there!
>
> The command should be "pluginfo.pl GAPlug"
>
> John
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users