VoxForge
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.
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
A quick Google for the phrase: "bash: $'\r': comand not found" gave me this link: Bash and Windows. From the website:
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
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.
> 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:
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 |
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
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!
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?