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.88k stars 1.28k forks source link

Defective interpreter (/bin/env) starting 2.5.2 update #761

Closed bcutter closed 8 months ago

bcutter commented 8 months ago

Once updated from 2.2.12 to https://github.com/major/MySQLTuner-perl/releases/tag/v2.5.2, when running

./mysqltuner.pl --host localhost --forcemem 3950 --forceswap 3950

I get

bash: ./mysqltuner.pl: /bin/env: Defekter Interpreter: Datei oder Verzeichnis nicht gefunden

(translating bash: ./mysqltuner.pl: /bin/env: Defective interpreter: File or directory not found

Please assist on which details to provide or on how to fix this.

C0RD commented 8 months ago

replace the first line in mysqltuner.pl with #!/usr/bin/perl

jmrenouard commented 8 months ago

Hi @C0RD

using #!env perl this seems to be a good alternative for specific perl path installation correct handling solution

jmrenouard commented 8 months ago

Shebang is fixed since last commit

C0RD commented 8 months ago

Thats fine.

As a side node, on Debian Policy it is

In the case of Perl scripts this should be #!/usr/bin/perl.

(https://www.debian.org/doc/debian-policy/ch-files.html#scripts)

But this will be replaced during package build.