Menu

Can't get slave.pl to work

Help
Leo
2009-05-30
2012-09-22
  • Leo

    Leo - 2009-05-30

    Hello,

    When I try to run "perl scripts_pl/decode/slave.pl". I get the following error message ->
    Configuration (e.g. etc/sphinx_train.cfg) not defined
    Compilation failed in require at scripts_pl/decode/slave.pl line 45.
    BEGIN failed--compilation aborted at scripts_pl/decode/slave.pl line 45.

    My current directory is one above scripts_pl (i.e. /root/tutorial/rm1). And there exists a file /root/tutorial/rm1/etc/sphix_train.cfg

    So why can't it find it? I should say that I had followed all the steps of the tutorial up to the point of decoding. Then I logged off, and logged in the next day to try to run the decoding part. Are there some environment variables that need to be set? Do I need to re-run "perl scripts_pl/setup_tutorial.pl rm1" every time I login?

    Thank you for your help.

     
    • Leo

      Leo - 2009-05-30

      Never mind. Appearantly, things were setup to run in the an4 directory and not the rm1 directory. I tried to switch from an4 to rm1 during the tutorial. Thank you very much for your help.

       
    • Nickolay V. Shmyrev

      You forgot to run ./scripts/setup_tutorial.pl in the decoder and setup the decoder part as suggested by the tutorial.

       
    • Leo

      Leo - 2009-05-30

      Thank you for replying to my question. When I try to re-run ~tutorial/rm1/scripts_pl/setup_tutorial.pl, I get the following error ->

      pudding:~/tutorial/rm1# perl scripts_pl/setup_tutorial.pl rm1
      Building task rm1
      Current directory not empty.
      Will overwrite existing files.
      Making basic directory structure
      Couldn't find executables. Did you compile SphinxTrain?

      However, I did run /root/tutorial/SphinxTrain/scripts_pl/RunAll.pl. I even have the following executables after running RunAll.pl ->

      pudding:~/tutorial/s3flat/bin/linux# ls -al
      total 644
      drwxr-xr-x 2 root root 4096 2009-05-27 12:48 .
      drwxr-xr-x 3 root root 4096 2009-05-27 12:47 ..
      -rwxr-xr-x 1 root root 106306 2009-05-27 12:48 s3align
      -rwxr-xr-x 1 root root 91494 2009-05-27 12:48 s3allphone
      -rwxr-xr-x 1 root root 80225 2009-05-27 12:48 s3astar
      -rwxr-xr-x 1 root root 103676 2009-05-27 12:48 s3dag
      -rwxr-xr-x 1 root root 141563 2009-05-27 12:48 s3decode-anytopo
      -rwxr-xr-x 1 root root 92255 2009-05-27 12:48 s3nbestrescore

      Thank you for your help

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.