major / MySQLTuner-perl

MySQLTuner is a script written in Perl that will assist you with your MySQL configuration and make recommendations for increased performance and stability.
GNU General Public License v3.0
8.99k stars 1.29k forks source link

Strange errors when trying to load script #751

Closed qcybb closed 9 months ago

qcybb commented 9 months ago

Are we required to do something new in order to get the latest version to work?

I've not had any issues with any of the previous versions.

$ ./mysqltuner.pl 
./mysqltuner.pl: line 39: package: command not found
./mysqltuner.pl: line 41: use: command not found
./mysqltuner.pl: line 42: use: command not found
./mysqltuner.pl: line 43: use: command not found
./mysqltuner.pl: line 45: use: command not found
./mysqltuner.pl: line 46: use: command not found
./mysqltuner.pl: line 47: use: command not found
./mysqltuner.pl: line 48: use: command not found
./mysqltuner.pl: line 49: use: command not found
./mysqltuner.pl: line 50: use: command not found
./mysqltuner.pl: line 59: my: command not found
./mysqltuner.pl: line 60: syntax error near unexpected token `@adjvars,'
./mysqltuner.pl: line 60: `my ( @adjvars, @generalrec );'
jmrenouard commented 9 months ago

Last merge request fixed this issue adding

!/bin/env perl as first line