Hi masami
If u're using the makefile build, u should download the .tgz files rather
than .zip as the scripts have windows line ending which screws up the bash
interpeter. Or run
dos2unix regenerate-makefiles.sh
I'll fix & check in the code soon.
Hieu Hoang
www.hoang.co.uk/hieu
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Masami R.
Sent: 26 September 2008 09:36
To: [email protected]
Subject: [Moses-support] regenerate-makefiles.sh
Hello!, I'm trying to install moses but I have the next message
$ sh regenerate-makefiles.sh
regenerate-makefiles.sh: line 2: $'\r': command not found
regenerate-makefiles.sh: line 5: $'\r': command not found
regenerate-makefiles.sh: line 12: $'\r': command not found
regenerate-makefiles.sh: line 13: syntax error near unexpected token
`$'{\r''
'egenerate-makefiles.sh: line 13: `function die () {
-------
I'm use cygwin, srilm and irstlm were install ..
--script--
#!/bin/bash
# NOTE:
# Versions 1.9 (or higher) of aclocal and automake are required.
# For Mac OSX users:
# Standard distribution usually includes versions 1.6.
# Get versions 1.9 or higher
# Set the following variable to the correct paths
#ACLOCAL="/path/to/aclocal-1.9"
#AUTOMAKE="/path/to/automake-1.9"
function die () {
echo "$@" >&2
exit 1
}
if [ -z "$ACLOCAL" ]
then
ACLOCAL=`which aclocal`
fi
if [ -z "$AUTOMAKE" ]
then
AUTOMAKE=`which automake`
fi
if [ -z "$AUTOCONF" ]
then
AUTOCONF=`which autoconf`
fi
echo "Calling $ACLOCAL..."
$ACLOCAL || die "aclocal failed"
echo "Calling $AUTOCONF..."
$AUTOCONF || die "autoconf failed"
echo "Calling $AUTOMAKE..."
$AUTOMAKE || die "automake failed"
echo
echo "You should now be able to configure and build:"
echo " ./configure --with-srilm=/path/to/srilm"
echo " make -j 4"
echo
Thank you,
M.R
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support