Comments

Flat
error
User: hamid
Date: 9/4/2008 10:38 pm
Views: 7435
Rating: 12

Hi,

when I want update my path environment variable it gives me error and testing HTK/julius dosen't gives me the expected results.
when I open Cygwin it gives me this:

  bash: $'\r': comand not found
  bash: $'\r': comand not found
  ': not a valid identifier
  bash: $'\r': comand not found


what should I do?

best regards,
Hamid.

Re: error
User: kmaclean
Date: 9/5/2008 7:49 am
Views: 191
Rating: 23

HI Hamid,

>bash: $'\r': comand not found 

This says that bash script processing engine is looking for a command called " $'lr' ".  

I think your PATH environment variable has a mistake in it.  Look in the '.bash_profile' file in your home directory.  I think you've somehow managed to overwrite the path of an entry for another program... you need to figure out which program that was, or just delete the " $'lr' " entry in your PATH command in your bash_profile.

Ken

Re: error
User: RedCisc
Date: 6/26/2009 5:43 pm
Views: 79
Rating: 8

Hamid,

Were you able to identify the cause of this problem? I'm having the same issue and the same error.

Re: error
User: kmaclean
Date: 6/26/2009 6:45 pm
Views: 81
Rating: 11

A quick Google for the phrase: "bash: $'\r': comand not found" gave me this link: Bash and Windows.  From the website:

Bash: $'\r': command not found

When starting Cygwin, you might get many errors:

bash: $'\r': command not found

Solution

If you've edited a bash startup file like .bashrc or /etc/profile with a DOS-editor, the line endings might have changed to CR/LF instead of a single LF. This may cause the errors above. To fix these errors: edit the file with vim , give the command :set ff=unix and save the file.

Ken

Re: error
User: RedCisc
Date: 6/27/2009 8:44 am
Views: 122
Rating: 11

Hi Ken,

Thanks for your quick reply. Your reply led me to find that there was a .bashrc in both my /etc/ folder as well as in my /home folder. I was able to determine that the one in my /etc/ folder was actually the one being executed. I renamed that and restarted the cygwin console. The $'\r': command not found message has now gone away but the HVite command no longer starts and julian still does not run. Any more ideas?

P.S., I'm a Windows guy. I have very little Unix knowledge.

Re: error
User: kmaclean
Date: 6/27/2009 10:58 am
Views: 106
Rating: 10

> HVite command no longer starts and julian still does not run

This is likely a path issue... the .bashrc file in your /etc folder has HVite and Julian path settings that were lost.

It looks like there might be error in the Download page of the VoxForge tutorial:

Update Cygwin Path

Step 1 - Update your path environment variable to include HTK and Julius

1. from Windows Explorer, use your favourite editor to edit:

c:/cygwin/etc/bash.bashrc

and add the following lines:  

PATH=/Julius/bin:/HTK/htk-3.3-windows-binary/htk:$PATH
export PATH

2. close any open Cygwin consoles for the change to take effect

It says "use your favourite editor" when it should be an editor that does not put in Windows line endings.  Notepad might be OK (I think that is what I used when I created this tutorial) or use Cygwin vim (or vi) editors to make sure you save you .bashrc file with the proper Unix line endings.

Ken

Re: error
User: RedCisc
Date: 6/28/2009 11:51 am
Views: 84
Rating: 8

Hi Ken,

Ok. I went back and used Notepad to edit the .bash_rc and the bash.bashrc files. I took all the EOL possibilties out. There also seem to be files in the Cygwin bin folder and the Julius bin folder. I moved them all in to the Julius bin folder. THat made the HVite command and the julian command both work.

Thanks,

On to compliling!

Re: error
User: Visitor
Date: 7/3/2010 9:04 am
Views: 111
Rating: 9

 

 I tried moving the bin files into the htk folder but it didn't work

 I moved the htk binary files in the cygwin folder and it worked well..

Re: error
User: kmaclean
Date: 7/5/2010 11:13 am
Views: 89
Rating: 11

> I moved the htk binary files in the cygwin folder and it worked well..

thanks for letting us know!

Re: error
User: iram
Date: 2/26/2013 12:44 am
Views: 295
Rating: 5

hi,

i am trying to install julius... htk is working properly... but julian command does'nt work...

its gives an error "command not found"

i tried the sloutions given here but its still not working... i have moved the files from cygwin/bin to julius/ bin as told in hamid's post.. but no result

what should i do now?

PreviousNext