Have you double checked the ownerships/chmodding on the files?
The error can be a result of the wrong perl path, the wrong ownership user/group, incorrect chmodding, carriage returns within the script caused by uploading in binary (although that should be irrelevant due to the installer).
The error can be a result of the wrong perl path, the wrong ownership user/group, incorrect chmodding, carriage returns within the script caused by uploading in binary (although that should be irrelevant due to the installer).