Click here to register.

Comments

Flat
error
User: hamid
Date: 9/4/2008 10:38 pm
Views: 780
Rating: 3    Rate [
]

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.

Reply
Re: error
User: kmaclean
Date: 9/5/2008 7:49 am
Views: 42
Rating: 12    Rate [
]

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

Reply
Re: error
User: RedCisc
Date: 6/26/2009 5:43 pm
Views: 14
Rating: 1    Rate [
]

Hamid,

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

Reply
Re: error
User: kmaclean
Date: 6/26/2009 6:45 pm
Views: 7
Rating: 1    Rate [
]

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

Reply
Re: error
User: RedCisc
Date: 6/27/2009 8:44 am
Views: 14
Rating: 1    Rate [
]

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.

Reply
Re: error
User: kmaclean
Date: 6/27/2009 10:58 am
Views: 6
Rating: 1    Rate [
]

> 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

Reply
Re: error
User: RedCisc
Date: 6/28/2009 11:51 am
Views: 9
Rating: 1    Rate [
]

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!

Reply
PreviousNextAdd