| Hi Renate,
You wrote:
> I downloaded the HTML parser with cpan, and then copied the files to
the Greenstone perrlib folder, and it built successfully now.
It isn't clear from the above statement whether you compiled up the HTML
parser (see instructions in our previous email to you on this topic)
before copying the compilation-product files into Greenstone. The
compilation is a necessary step and may affect the outcome of your build.
In that previous email, I didn't make it sufficiently clear that the
following strings in the steps outlined were placeholders that are meant
to be filled out by you:
- /full/path/to/COMPILED_LOCATION
- /fullpath/to/where/you/have/downloaded/the/tar.gz/file
Regards,
Anupama
Renate Morgenstern wrote:
> Thanks for the help.
> I downloaded the HTML parser with cpan, and then copied the files to
> the Greenstone perrlib folder, and it built successfully now.
> However, it said that that no KOHA metadata could be extracted,
> although I can see the records with the OAI, but I will look at my
> KOHA installation again.
> Regards
> Renate
>
>
>> Hi Renate,
>>
>> Sam has dealt with a similar issue to do with perl 5.10's XML Parser,
>> but the same has not been done for the HTML Parser yet. For the
>> moment, since you have root access, Sam suggests that you can try to
>> download the latest version of this parser from
>> http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTML-Parser-3.68.tar.gz
>>
>> 1. Stop GLI if it is running.
>>
>> 2. Unzip the downloaded HTML-Parser-3.68.tar.gz file. You can use a
>> terminal to do so:
>> > cd /fullpath/to/where/you/have/downloaded/the/tar.gz/file
>> > tar -xvzf HTML-Parser-3.68.tar.gz
>>
>> 3. Compile it up. For the prefix parameter, pick a location on your
>> machine to send the compiled products
>> > perl Makefile.PL prefix=/full/path/to/COMPILED_LOCATION
>> > make
>> > make install
>>
>> 4. Use a FileBrowser to go into your Greenstone 2.84 installation
>> folder. Move the following directory out of your GS2.84 installation
>> (so you don't delete it if you want to keep a backup):
>> perllib/cpan/HTML
>>
>> 5. Still using a filebrowser, visit
>> /full/path/to/COMPILED_LOCATION/lib/perl/5.10.1/
>> This folder contains the subfolders "auto" and "HTML".
>> Copy the "HTML" folder into your Greenstone2.84/perllib/cpan.
>>
>> 6. Move the file "GS2.84/perllib/cpan/auto/HTML/Parser/Parser.so"
>> out of your Greenstone 2.84 installation (so that it's no longer in
>> the way, even as you keep it elsewhere as a back-up).
>>
>> 7. Go into your
>> /full/path/to/COMPILED_LOCATION/lib/perl/auto/HTML/Parser folder
>> This contains a file called Parser.so.
>> Put that into your Greenstone installation's
>> perllib/cpan/auto/HTML/Parser folder, in the place of the older one.
>>
>> 8. Re-run GLI and try out the changes to perl and see if you
>> encounter the same errors as before, or whether they've now disappeared.
>> If there are no more errors, you can delete the downloaded tar.gz
>> file, the unzipped tar.gz folder as well as the folder
>> (COMPILED_LOCATION) where you compiled up the HTML::Parser code of
>> Steps 2 and 3. And if you feel confident, you can the backup "HTML"
>> folder and Parser.so file of Steps 4 and 6 too.
>>
>> Please write back if things did not work out.
>>
>> Regards,
>> Sam and Anu
>>
>>
>> Renate Morgenstern wrote:
>>> Hi,
>>> Here is the output.
>>>
>>> This is perl, v5.10.1 (*) built for i686-linux-gnu-thread-multi
>>> (with 40 registered patches, see perl -V for more detail)
>>>
>>> Copyright 1987-2009, Larry Wall
>>>
>>> Perl may be copied only under the terms of either the Artistic License
>>> or the
>>> GNU General Public License, which may be found in the Perl 5 source
>>> kit.
>>>
>>> Complete documentation for Perl, including FAQ lists, should be
>>> found on
>>> this system using "man perl" or "perldoc perl". If you have access to
>>> the
>>> Internet, point your browser at http://www.perl.org/, the Perl Home
>>> Page.
>>>
>>>> Hi,
>>>>
>>>> Sam would like to know what version of Perl you have. You can find
>>>> out by running the following in your x-term:
>>>> > perl -version
>>>>
>>>> Regards,
>>>> Anupama
>>>>
>>>>
>>>> Renate Morgenstern wrote:
>>>>> Good day,
>>>>> I have created a collection which should integrate with KOHA for full
>>>>> text retrieval using the OAI and Metadata plugin. I checked the KOHA
>>>>> server and the records can be viewed. However, when I want to
>>>>> build it
>>>>> on Ubuntu Maverick, it can't be build due to an error in perl
>>>>> libraries.
>>>>> Using Greenstone 2.84 for Linux. I am running Greenstone as root. Are
>>>>> there permissions which should be changed? Here is the error message:
>>>>> Thanks for any help.
>>>>> Regards
>>>>> Renate
>>>>> =================================================
>>>>>
>>>>> Command: perl -S /var/www/greenstone/bin/script/full-import.pl -gli
>>>>> -language en -collectdir /var/www/greenstone/collect wimsa
>>>>> import.pl> Removing current contents of the archives directory...
>>>>> import.pl> Global file scan checking
>>>>> directory: /var/www/greenstone/collect/wimsa/import
>>>>> import.pl> MetadataXMLPlugin: processing metadata.xml
>>>>> import.pl> OAIMetadataXMLPlugin: Checking OAI server
>>>>> (http://127.0.1.1:8080/cgi bin/koha/oai.pl) connection
>>>>> import.pl> perl: symbol lookup
>>>>> error: /var/www/greenstone/perllib/cpan/auto/HTML/Parser/Parser.so:
>>>>> undefined symbol: Perl_Tstack_sp_ptr
>>>>> import.pl> Error: Failed to run: perl -S import.pl -removeold "-gli"
>>>>> "-language" "en" "-collectdir" "/var/www/greenstone/collect" "wimsa"
>>>>> import.pl> Command failed.
>>>>>
>>>
>>>
>>
>>
>
> |