| Hi
Try editing import.pl and adding the path to the directory where your
perl module has been installed, to @INC in:
BEGIN {
die "GSDLHOME not set\n" unless defined $ENV{'GSDLHOME'};
die "GSDLOS not set\n" unless defined $ENV{'GSDLOS'};
unshift (@INC, "$ENV{'GSDLHOME'}/perllib");
unshift (@INC, "$ENV{'GSDLHOME'}/perllib/cpan");
unshift (@INC, "$ENV{'GSDLHOME'}/perllib/plugins");
unshift (@INC, "$ENV{'GSDLHOME'}/perllib/classify");
}
Then perl will look in that directory to find the module.
Regards,
Katherine Don
Bossaporn Eampornchai wrote:
> Dear all,
> I want to insert word segmentation code into one
> part of greenstone plugin. The word segmentation
> program is actually written in C language. Luckily,
> the creator has added perl module to make a call to C
> function.
>
> Previously, I've tested word segmentation program
> individually using ActiveState ActivePerl on Window XP
> and it does work fine. However, after I merged the
> program with Basplug.pm and ,then, tried to process
> import.pl, it produced the following error message.
>
> Can't locate loadable object for module ttool in @INC
> (@INC contains: D:\Program
> Files\gsdl\collect\testtha/perllib D:\Program
> Files\gsdl/perllib/classify D:\Pr
> ogram Files\gsdl/perllib/plugins D:\Program
> Files\gsdl/perllib/cpan D:\Program F
> iles\gsdl/perllib D:/Program
> Files/gsdl/bin/windows/perl/lib D:/Program Files/gs
> dl/bin/windows/perl/site/lib .) at D:\Program
> Files\gsdl/perllib/thseg.pm line 33
>
> I guess it was probably because I has installed word
> segmentation package into ActivePerl library not
> greenstone's perl library.
>
> I've also tried to copy installed module from
> ActivePerl to gs's perl library and modify some path
> values in .packlist file, but it introduced a severe
> problem of microsoft IE instead.
>
> So, the problem here is I don't know howto install
> word segmentation perl module into gs's perl library.
>
> Any suggestions?
>
> Thank you very much in advance,
> Fah
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance Tax Center - File online. File on time.
> http://taxes.yahoo.com/filing.html
>
> _______________________________________________
> greenstone-devel mailing list
> greenstone-devel@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel
> |