General Discussion

Nested
CMU language modeling toolkit installing in cygwin
User: abdul
Date: 6/19/2007 4:56 am
Views: 14845
Rating: 12

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) ---

Re: CMU language modeling toolkit installing in cygwin
User: Visitor
Date: 6/19/2007 5:46 am
Views: 257
Rating: 8
When you are reporting about problems please always include error message you get.

--- (Edited on 6/19/2007 5:46 am [GMT-0500] by Visitor) ---

Re: CMU language modeling toolkit installing in cygwin
User: Visitor
Date: 6/19/2007 5:47 am
Views: 273
Rating: 9
When you are reporting about problems please always include error message you get.

--- (Edited on 6/19/2007 5:47 am [GMT-0500] by Visitor) ---

Re: CMU language modeling toolkit installing in cygwin
User: Abdul
Date: 6/19/2007 7:05 am
Views: 283
Rating: 10

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) ---

Re: CMU language modeling toolkit installing in cygwin
User: kmaclean
Date: 6/19/2007 8:40 am
Views: 268
Rating: 9

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_BYTES
is changed to
BYTESWAP_FLAG  = -DSLM_SWAP_BYTES

Then the program can be installed as before.

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) ---

Re: CMU language modeling toolkit installing in cygwin
User: abdul
Date: 6/19/2007 8:53 am
Views: 230
Rating: 22

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) ---

Re: CMU language modeling toolkit installing in cygwin
User: nsh
Date: 6/19/2007 9:07 am
Views: 242
Rating: 16

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) ---

Re: CMU language modeling toolkit installing in cygwin
User: kmaclean
Date: 6/19/2007 9:41 am
Views: 268
Rating: 5

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) ---

Re: CMU language modeling toolkit installing in cygwin
User: abdul
Date: 6/21/2007 11:59 pm
Views: 255
Rating: 10

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) ---

Re: CMU language modeling toolkit installing in cygwin
User: nsh
Date: 6/22/2007 2:49 pm
Views: 415
Rating: 13
What's GIZA and where is full build log?

--- (Edited on 6/22/2007 2:49 pm [GMT-0500] by nsh) ---

PreviousNext