VoxForge
Hi,
I tried to install CMU language modeling toolkit in cygwin, but everytime I got error message. Does anyone know how to install it in cygwin?
Best regards,
Abdul.
--- (Edited on 6/19/2007 4:56 am [GMT-0500] by abdul) ---
--- (Edited on 6/19/2007 5:46 am [GMT-0500] by Visitor) ---
--- (Edited on 6/19/2007 5:47 am [GMT-0500] by Visitor) ---
Thank you for your comment. When I tried to install it by "make install", I got error massage "install-sh: syntax error near unexpected token 'in
case $1 in". Could anyone help me to solve this problem?
--- (Edited on 6/19/2007 7:05 am [GMT-0500] by Visitor) ---
Hi Abdul,
Did you have the proper "endianess" set up in your MakeFile?
From the CMU SML toolkit install docs:
For "little-endian" machines (eg those running Ultrix, Linux) the variable BYTESWAP_FLAG will need to be set in the Makefile. This can be done by editing src/Makefile directly, so that the line
#BYTESWAP_FLAG = -DSLM_SWAP_BYTESis changed toBYTESWAP_FLAG = -DSLM_SWAP_BYTES
Intel or AMD based PCs are usually "little-endian", so you would likely need to set your BYTESWAP_FLAG.
Ken
--- (Edited on 6/19/2007 9:40 am [GMT-0400] by kmaclean) ---
Hi, Ken.
Yes, I changed
#BYTESWAP_FLAG = -DSLM_SWAP_BYTES
to
BYTESWAP_FLAG = -DSLM_SWAP_BYTES
but I still have same problem.
Abdul.
--- (Edited on 6/19/2007 8:53 am [GMT-0500] by abdul) ---
Well, cygwin can have problems or incompatibilities with shell scripts. I suppose there are several ways to solve this problem:
1. Install files by hand. You just need to copy compiled binaries to bin directory.
2. Use install-sh from automake cygwin package. It should be in /usr/share/automake-1.../
If you are really interested what's going on there, please add a line
set -x
to the beginning of install-sh and provide full build log (not just an error message)
--- (Edited on 6/19/2007 9:07 am [GMT-0500] by nsh) ---
Actually, now that I think about it, endianess is irrelevant if you are having problems at the "make install" stage. It would only be an issue when you are compiling everything at the "make" stage ...
nsh is giving you better advice!
Ken
--- (Edited on 6/19/2007 10:41 am [GMT-0400] by kmaclean) ---
Thanks to everyone.
I compiled by copying all the executables by hand to bin directory. It was good experience for me. But now I have another problem: I could not compile GIZA in Cygwin. I have GNU-3.4.4 compiler. Everytime I compile it, there is error message saying that there is "no dependencies files" or "obj directory". Did anyone have same problem?
Abdul.
--- (Edited on 6/21/2007 11:59 pm [GMT-0500] by Visitor) ---
--- (Edited on 6/22/2007 2:49 pm [GMT-0500] by nsh) ---