I added perl code to eclipse with epic and I do the configure and make then I
had the following error SphinxTrain:util not found
is there util folder in sphinx train and how do we make it if it isn't ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It says to plug in perl module SphinxTrain::Util which is located in the file
Util.pm
and why there is error next to it .
This module is located in a custom folder. So it's not found by default. You
need to configure Eclipse to look for the modules in a proper folder and it
will find it.
You can read http://perldoc.perl.org/perlmod.html
for details on modules. As for Eclipse configuration, it must be in project
properties, but I'm not sure which perl plugin are you using so can't tell you
where is it exactly.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First , thank you for you reply
But I have additional Problem
I add ${resource_loc:/myperl/lib/SphinxTrain} to Include Path where myperl is
name of my database that I want to train
so the
use sphinxTrain:: Util work with no error
but the same error appear next to
use Pod::Usage;
how can I sove this problem ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
the folder
digit/scripts_pl/lib/SphinxTrain/
contains Config.pm and Util.pm
I don't understand whey eclipse find the first and reduse the another , you
say it is in custom folder
I try to understand this but I fail ,I need a hint !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Do you need more information ,
the error still exist and I don't know what is the problem ?
give me refrence to fix this error cos I want to complete my studying soon cos
I have project
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I added perl code to eclipse with epic and I do the configure and make then I
had the following error SphinxTrain:util not found
is there util folder in sphinx train and how do we make it if it isn't ?
The SphinxTrain::Util module is in the folder
ok .. do you know how could I fix the above error
Yes, I do
I am not good in English but do you find my question wrong or not obvious or
silly ?
Sorry, I didn't mean anything about your quesiton, I just answered it. If you
were looking for another answer you need to ask another question.
what is the meaning of
use sphinxTrain:: Util and why there is error next to it .
It says to plug in perl module SphinxTrain::Util which is located in the file
Util.pm
This module is located in a custom folder. So it's not found by default. You
need to configure Eclipse to look for the modules in a proper folder and it
will find it.
You can read
http://perldoc.perl.org/perlmod.html
for details on modules. As for Eclipse configuration, it must be in project
properties, but I'm not sure which perl plugin are you using so can't tell you
where is it exactly.
thank you for reply
my plugin for eclipse is epic www.epic-ide.org
if you know ide better than if to use with sphinx please tell me
and this is snapshot on my project properies
please tell my how to configure eclipse to include this module
thanks
In EPIC perl include path is configured in a project properties
http://www.epic-ide.org/guide/ch03s02.php
First , thank you for you reply
But I have additional Problem
I add ${resource_loc:/myperl/lib/SphinxTrain} to Include Path where myperl is
name of my database that I want to train
so the
use sphinxTrain:: Util work with no error
but the same error appear next to
use Pod::Usage;
how can I sove this problem ?
Turn on your brains and you will find a solution
the folder
digit/scripts_pl/lib/SphinxTrain/
contains Config.pm and Util.pm
I don't understand whey eclipse find the first and reduse the another , you
say it is in custom folder
I try to understand this but I fail ,I need a hint !
sorry
I don't understand whey eclipse find the first and refuse the another , you
say it is in custom folder
this error may be usefull to solve essue

It's not another. Pod::Usage module is usually located in system folder. You
can try to find it with the command
You need to add Pod folder to include path too
it's very strange error , I add the path and the error still exist

and this is output of the command
Not strange, you added the wrong folder. You need to add
/usr/share/perl/5.12.4/, not /usr/share/perl/5.12.4/Pod
all modules error solved ,and use Pod:Usage works well , unless this
please help me .. man
note there is no folder sphinxtrain/scripts_pl/lib/util in sphinxtrain but
there is file sphinxtrain/scripts_pl/lib/util.pm
Do you need more information ,
the error still exist and I don't know what is the problem ?
give me refrence to fix this error cos I want to complete my studying soon cos
I have project
problem solved ^__^
in line 55 of Util.pm I add #
die "Configuration (e.g. etc/sphinx_train.cfg) not defined\n" unless defined
($ST::CFG_DONE);
then the error disappear