stigala
July 12th, 2007, 04:33 AM
Hi,
I'm trying to run a script on ubuntu 7.04;
stig@stig-laptop:~/mosesdecoder$ ./regenerate-makefiles.sh
./regenerate-makefiles.sh: 13: Syntax error: "(" unexpected
but then I get the syntax error. Below is the first lines in the script, line 13 in red.
#!/bin/sh
# 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
}
...
I already have automake (GNU automake 1.9.6) and aclocal (GNU automake 1.9.6). Setting the paths is only for Mac OSX users, so I didn't try to set any of those paths.
Anyone can explain this? Thanks for any help,
Stig
I'm trying to run a script on ubuntu 7.04;
stig@stig-laptop:~/mosesdecoder$ ./regenerate-makefiles.sh
./regenerate-makefiles.sh: 13: Syntax error: "(" unexpected
but then I get the syntax error. Below is the first lines in the script, line 13 in red.
#!/bin/sh
# 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
}
...
I already have automake (GNU automake 1.9.6) and aclocal (GNU automake 1.9.6). Setting the paths is only for Mac OSX users, so I didn't try to set any of those paths.
Anyone can explain this? Thanks for any help,
Stig