syntax error installing on centos 7

2 posts / 0 new
Last post
#1 Tue, 06/21/2016 - 12:27
pixelpadre

syntax error installing on centos 7

./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

Tue, 06/21/2016 - 12:55
pixelpadre

Using wget it worked without syntax error.

I had downloaded the file from webmin and that was the bugger with the problem.

Topic locked