These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for syntax error installing on centos 7 on the new forum.
./install.sh: line 20: syntax error near unexpected token then'
./install.sh: line 20:
echo Checking for Perl perl=which perl 2>/dev/null
if [ "$perl" = "" ]; then'
Here is a cut and paste
echo Checking for Perl
perl=which perl 2>/dev/null
if [ "$perl" = "" ]; then
if [ -x /usr/bin/perl ]; then
perl=/usr/bin/perl
elif [ -x /usr/local/bin/perl ]; then
perl=/usr/local/bin/perl
elif [ -x /opt/csw/bin/perl ]; then
perl=/opt/csw/bin/perl
fi
Using wget it worked without syntax error.
I had downloaded the file from webmin and that was the bugger with the problem.