[greenstone-devel] GS 2.83 and XML Parser

From Anupama of Greenstone Team
DateTue Mar 9 16:39:54 2010
Subject [greenstone-devel] GS 2.83 and XML Parser
Copy for the list.


Hi Diego,

I finally have some news, how much it will help you I don't know. I have
tried the following on the Ubuntu machine here (Ubuntu v8.10):

A. Using GLI to build a Lucene collection:

1. I followed the instructions at
http://wiki.greenstone.org/wiki/index.php/2.83_Release_Notes#Perl_5.8.9_for_Linux

2. Then I ran GLI, added some text documents to my collection and set the
indexer to Lucene. I built it.

3. Upon previewing, it allowed me to search just fine.


B. Using the cmd-line to build a Lucene collection:

1. I ran "source setup.bash" from the terminal, which found my perl 5.8.9,
and set things up so that this will be used

2. I ran "mkcol.pl col2" to create my new collection (called "col2")

3. I put a few text documents into the col2/import folder.

4. I COULD NOT run "import.pl col2", as this gave me an error:
"/usr/bin/perl: symbol lookup error:
/home/ak19/Greenstone/GS283bin/perllib/cpan/perl-5.8/auto/XML/Parser/Expat/Expat.so:
undefined symbol: Perl_Tstack_sp_ptr"

I will update the wiki to explain that to run import and buildcol when
you're using the tarred perl, you have to run these with "perl -S"

5. So I ran "perl -S import.pl col2" and it did the import step without
complaining.

6. I went into the filesystem and in the col2/etc folder, I edited the
collect.cfg to change the "buildtype" from "mgpp" to:
buildtype lucene

7. In the terminal, I ran "perl -S buildcol.pl col2". Once again, it
completed without complaining.

8. I looked in the filesystem to see that the building step had created
the "archives" and "building" folders.
I renamed "building" to "index" (so that the Greenstone server knows there
is a new collection).

9. I ran the web server from the toplevel GS2 installation folder:
./gs2-server.sh

10. In the browser I searched for some keywords and the search seems to
work fine.


I am unable to reproduce your exact problem, but are you already running
import and buildcol with "perl -S"? Does that not work in your case?

Am I missing any particular step that you did? Will you try using GLI to
create and build a simple collection using a lucene-index and see if that
works?

Regards,
Anupama


> Hi Annu, did you have any news?!?!?!
>
> Regards!
>
> Diego
>
> -----Mensaje original-----
> De: ak19@cs.waikato.ac.nz [mailto:ak19@cs.waikato.ac.nz]
> Enviado el: Jueves, 25 de Febrero de 2010 08:19 p.m.
> Para: Diego Spano
> Asunto: RE: [greenstone-devel] GS 2.83 and XML Parser
>
> Hi Diego,
>
> I'll look into this today. Thanks for the extensive investigation.
> Anu
>
>> Hi Anu, Kath:
>>
>> I followed the instructions and now I can build the collection, but....
>> I
>> can□t search. I□m using Lucene engine. I think the problem is related to
>> the
>> perl installation: builcold knows that it must use the perl installation
>> that I downloaded into /gsdl/bin/linux/perl (because setup.bash set it).
>> But, how did Lucene knows about it?
>>
>> I modified the file /opt/gsdl-2.83/bin/script/lucene_query.pl, just the
>> first line and replace
>>
>> "#!/usr/bin/perl -w" with
>>
>> "!/opt/gsdl-2.83/bin/linux/perl/bin/perl -w"
>>
>> But it doesn□t work.
>>
>> If I run (in command line) the command:
>> "/opt/gsdl-2.83/bin/linux/perl/bin/perl -w"
>>
>> I get the following error:
>>
>> /opt/gsdl-2.83/bin/linux/perl/bin/perl: error while loading shared
>> libraries: libperl.so: cannot open shared object file: No such file or
>> directory
>>
>>
>> If I "cd" to /opt/gsdl-2.83/bin/linux/perl/bin/ and run ./perl I get the
>> following:
>>
>> ./perl: error while loading shared libraries: libperl.so: cannot open
>> shared
>> object file: No such file or directory
>>
>>
>> If I run "perl" it runs perl v5.10, the other one installed in the
>> system.
>>
>> So, what can I do?
>>
>> Thanks a lot
>>
>> Diego
>>
>>
>> -----Mensaje original-----
>> De: ak19 [mailto:ak19@cs.waikato.ac.nz]
>> Enviado el: Mi□rcoles, 17 de Febrero de 2010 01:16 a.m.
>> Para: Diego Spano
>> Asunto: Re: [greenstone-devel] GS 2.83 and XML Parser
>>
>> Hi Diego,
>>
>> I don't know if this will help, but can you try the instructions at
>> (unless you already tried them):
>>
>
http://wiki.greenstone.org/wiki/index.php/2.83_Release_Notes#Perl_5.8.9_for_
>> Linux
>>
>> Regards,
>> Anupama
>>
>> Diego Spano wrote:
>>> Hi list:
>>>
>>>
>>>
>>> I have GS 2.83 on linux, but when I try to buildcol I get the
>>> following:
>>>
>>>
>>>
>>>
>>>
>>> BEGIN failed--compilation aborted at
>>> /opt/gsdl-2.83/perllib/cpan/perl-5.8/XML/Parser.pm line 18.
>>> Compilation failed in require at
>>> /opt/gsdl-2.83/perllib/collConfigxml.pm
>>> line 60.
>>> BEGIN failed--compilation aborted at
>>> /opt/gsdl-2.83/perllib/collConfigxml.pm line 60.
>>> Compilation failed in require at /opt/gsdl-2.83/perllib/colcfg.pm
>>> <http://colcfg.pm> line 32.
>>> BEGIN failed--compilation aborted at /opt/gsdl-2.83/perllib/colcfg.pm
>>> <http://colcfg.pm> line 32.
>>> Compilation failed in require at /opt/gsdl-2.83/bin/script/buildcol.pl
>>> <http://buildcol.pl> line 52.
>>> BEGIN failed--compilation aborted at
>>> /opt/gsdl-2.83/bin/script/buildcol.pl <http://buildcol.pl> line 52.
>>>
>>> I renamed ?XML? and ?auto? folder in /gsdl-2.83/cpan and also in
>>> /gsdl-2.83/cpan/perl-5.8 but it always the same . The perl version is
>>> 5.10 (the one installed with the operating system) and XML Parser is
>>> also installed.
>>>
>>>
>>>
>>> Is there any other thing that I must do?. In the same machine I have GS
>>> 2.52 and it is working OK!.
>>>
>>>
>>> Thanks a lot
>>>
>>>
>>>
>>> Diego
>>>
>>>
>>>
------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> greenstone-devel mailing list
>>> greenstone-devel@list.scms.waikato.ac.nz
>>> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel
>>
>>
>
>
>