Page 1 of 1

Perl interpreter

PostPosted: 15. February 2008 00:16
by wanttoshop
I am using xampp-win32-1.6.6 with xampp-win32-perl-addon-5.8.8-2.2.8 on c drive.

Each time I try to install awstats-6.7.exe I get the following error:

The installer did not find any Perl interpreter in your PATH. AWStats can't work without perl. You must install one to use AWStats.

Any help on this will be greatly appreciated and apologies if this is the wrong place to ask.

George

Re: Perl interpreter

PostPosted: 15. February 2008 03:50
by Izzy
wanttoshop wrote:... Any help on this will be greatly appreciated and apologies if this is the wrong place to ask...

The last time you asked for help here you fixed it yourself and quite selfishly failed to provide your solution so others might have benefited from your knowledge.
http://community.apachefriends.org/f/viewtopi ... 879#114879

BTW the error message tells you what is wrong and the answer to this will be in the installation instructions in the readme-addon-perl.txt file, which you either failed to read or failed to implement correctly or both - the installation instructions could not be simpler...

Also make sure the first line in the perl script (The Shebang) has the path to the perl interpreter, usually:
#!C:/xampp/perl/bin/perl
Your path may be different.

In future please try and help others if you find a solution all by yourself, as this is a community forum that relies on other members helping each other out - BTW, it's not too late to add the solution you found to fix your issue to your previous post - thanks.

PostPosted: 15. February 2008 15:40
by wanttoshop
Thank you for your kind reply.

George even though you may feel you don’t know much about all this perhaps you could post your answer in your previous request for help http://community.apachefriends.org/f/viewtopic.php?p=114879#114879that you solved as it may help others.

(A.) Sure, be glad to do that.

Did you follow the installation instructions in the readme-addon-perl.txt file?

(A.) Yes I did.

Also make sure the first line in the perl script (The Shebang) has the path to the perl interpreter, usually:
#!C:/xampp/perl/bin/perl
Your path may be different.

(A.) Might be lost here. #!C:/xampp/perl/bin/perl is in the httpd.config and I did uncomment it (# removed). Is that what you mean?

Code: Select all
<Directory "C:/xampp/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# Apache parses all CGI scripts for the shebang line by default.
# This comment line, the first line of the script, consists of the symbols
# pound (#) and exclamation (!) followed by the path of the program that
# can execute this specific script.  For a perl script, with perl.exe in
# the C:\Program Files\Perl directory, the shebang line should be:

!C:/xampp/perl/bin/perl

# Note you _must_not_ indent the actual shebang line, and it must be the
# first line of the file.  Of course, CGI processing must be enabled by
# the appropriate ScriptAlias or Options ExecCGI directives for the files
# or directory in question.


George[/code]

PostPosted: 15. February 2008 16:46
by Scory
>Is that what you mean?

No, Izzy meant the very first line in EVERY SINGLE cgi-Script. All scripts MUST include that line (it is called "shebang line" - google for it!).

Regards
Scory

P.S.: By the way, exactly what is told in httpd.conf
But you MUST COMMENT OUT AGAIN that line in httpd.conf, as it will cause Apache startup error.

PostPosted: 19. February 2008 23:13
by wanttoshop
Thanks for the replies. I found this post and it solved my problem after reading this whole forum. now I know how to check and add a path.

http://community.apachefriends.org/f/viewtopic.php?t=15222

Post was by alucard01 04. February 2006 18:47 and 2nd from the bottem.

George