-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on CentOS 7. syntax error near unexpected token #24
Comments
To start, CentOS 7.3 is over a year out of date. In any case, the errors look like it is being parsed as a shell script, not as Perl... Try: "perl ./postgresqltuner.pl" See if the helps. |
perl postgresqltuner.pl is work. |
I was able to reproduce and I think you were missing shebang at the beginning of the file.
With correct shebang:
So there is no need to add perl reference to readme. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
./postgresqltuner.pl
./postgresqltuner.pl: line 25: use: command not found
./postgresqltuner.pl: line 26: use: command not found
./postgresqltuner.pl: line 30: my: command not found
./postgresqltuner.pl: line 31: syntax error near unexpected token
"Getopt::Long",{}' ./postgresqltuner.pl: line 31:
$nmmc+=try_load("Getopt::Long",{});'cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
yum install perl-DBD-Pg
Package perl-DBD-Pg-2.19.3-4.el7.x86_64 already installed and latest version
Nothing to do
perl -V
Summary of my perl5 (revision 5 version 16 subversion 3) configuration:
The text was updated successfully, but these errors were encountered: