johnyjj2 has asked for the wisdom of the Perl Monks concerning the following question:

Hello :-)! I installed Ubuntu in order to install CMU Sphinx (http://www.speech.cs.cmu.edu/sphinx/tutorial.html). There is one problem with executing perl script and I think it is good place to ask for help. Script make_feats.pl is here http://www.linuxforums.org/forum/attachments/debian-linux-help/2267d1256986736-kde-startx-debian-make_feats.pl.txt . When I run "perl scripts_pl/make_feats.pl -ctl etc/an4_train.fileids" I see "Configuration (e.g. etc/sphinx_train.cfg) not defined. Compilation failed in require at make_feats.pl line 43. BEGIN failed--compilation aborted at make_feats.pl line 43". I found sphinx_train.cfg in two directories: /home/mainacc/tutorial/SphinxTrain/etc and /home/mainacc/tutorial/an4/etc. It looks like I simply need to define directory where sphinx_train.cfg is stored in the perl script. However I have never created any perl script, I guess it should be simple thing. How to define this directory in make_feats.pl? Greetings :-)!

Replies are listed 'Best First'.
Re: including cfg in perl script
by AnomalousMonk (Archbishop) on Oct 31, 2009 at 12:42 UTC
    Take a look at the lib pragma; see also  perldoc lib from the command line.

    (And yes, clarity matters!)

Re: including cfg in perl script
by biohisham (Priest) on Oct 31, 2009 at 12:11 UTC
    Welcome to the Monastery Johnyjj2, I bet you did not want your question to look so cluttered this way, you got many options to make sure your question looks as organized and clean as you intended for it to be. Your chances of getting immediate responses exponentially increase with the degree of your question clarity... Please take a look at these following links:
    1. Writeup Formatting Tips
    2. How do I post a question effectively
    3. Markup in the Monastery
    4. Perl Monks Approved HTML tags
    You can edit this post by hitting on Johnyjj2 and then on the line next to the header Writeups you can access your question, re-format it and hitting the update button afterwards...

    Welcome once again.


    Excellence is an Endeavor of Persistence. Chance Favors a Prepared Mind.