Virtualmin installation error

I was trying to install virtualmin but it was unsuccessful below is error i found

[root@server ~]# /bin/sh install.sh
Checking for Perl
found Perl at /usr/bin/perl

Welcome to the Virtualmin GPL installer, version 1.1.2

WARNING:

The installation is quite stable and functional when run on a freshly
installed supported Operating System.

If you have existing websites, email users, or if you manually installed
Virtualmin via a Webmin ‘wbm’ module, you are likely to run into problems.
Please read the Virtualmin Administrators Guide before proceeding if
your system is not a freshly installed and supported OS.

This script is not intended to update your system! It should only be
used to perform your initial Virtualmin installation. If you have previously
run the Virtualmin installer, you can perform upgrades and updates from within
Virtualmin itself, or using your system’s package manager. Once Virtualmin is
installed, you never need to run this script again.

The systems currently supported by install.sh are:
CentOS/RHEL/Scientific Linux 7 on x86_64
CentOS and RHEL 5-6 on i386 and x86_64
Scientific Linux 6 on i386 and x86_64
Debian 6, 7, and 8 on i386 and amd64
Ubuntu 10.04 LTS, 12.04 LTS, and 14.04 LTS on i386 and amd64
Amazon Linux 2012.03 on i386 and x86_64
FreeBSD 7.0 and 8 on i386 and amd64

If your OS is not listed above, this script will fail. More details
about the systems supported by the script can be found here:

http://www.virtualmin.com/os-support.html

Continue? (y/n) y
Checking for HTTP client…found /usr/bin/curl -s -O
Checking for perl…found /usr/bin/perl
Loading log4sh logging library…
./log4sh: line 1: syntax error near unexpected token newline' ./log4sh: line 1:
./log4sh: line 1: warning: syntax errors in . or eval will cause future versions of the shell to abort as Posix requires
install.sh: line 531: logger_setLevel: command not found
install.sh: line 533: logger_addAppender: command not found
install.sh: line 534: appender_setAppenderType: command not found
install.sh: line 535: appender_setAppenderFile: command not found
install.sh: line 536: appender_setLevel: command not found
install.sh: line 537: appender_setLayout: command not found
install.sh: line 538: appender_setPattern: command not found
install.sh: line 540: logger_info: command not found
install.sh: line 543: logger_debug: command not found
install.sh: line 544: logger_debug: command not found
install.sh: line 545: logger_debug: command not found
install.sh: line 546: logger_debug: command not found
install.sh: line 549: logger_info: command not found
install.sh: line 301: logger_info: command not found
install.sh: line 556: logger_info: command not found
install.sh: line 563: logger_info: command not found
install.sh: line 310: logger_info: command not found
install.sh: line 565: logger_info: command not found
install.sh: line 310: logger_info: command not found
Bareword found where operator expected at /tmp/.virtualmin-948/files/oschooser.pl line 3, near “500 Internal”
(Missing operator before Internal?)
Bareword found where operator expected at /tmp/.virtualmin-948/files/oschooser.pl line 9, near “

Please”
(Might be a runaway multi-line // string starting on line 5)
(Missing operator before Please?)
Array found where operator expected at /tmp/.virtualmin-948/files/oschooser.pl line 10, at end of line
(Missing operator before ?)
Bareword found where operator expected at /tmp/.virtualmin-948/files/oschooser.pl line 10, near “@localhost to”
(Missing operator before to?)
Bareword found where operator expected at /tmp/.virtualmin-948/files/oschooser.pl line 10, near “time this”
(Do you need to predeclare time?)
Bareword found where operator expected at /tmp/.virtualmin-948/files/oschooser.pl line 12, near “

More”
(Missing operator before More?)
Warning: Use of “log” without parentheses is ambiguous at /tmp/.virtualmin-948/files/oschooser.pl line 13.
syntax error at /tmp/.virtualmin-948/files/oschooser.pl line 2, near “html>”
Execution of /tmp/.virtualmin-948/files/oschooser.pl aborted due to compilation errors.

=====================================================================================================

Please help