PERL

Problems with the Windows version of XAMPP, questions, comments, and anything related.

PERL

Postby grd » 30. January 2009 21:56

Hi,

I've installed the mod_perl package on my server. If i try to open the modperl.pl example page, i get this error:

Code: Select all
Attempt to reload DBI.pm aborted. Compilation failed in require at (eval 57) line 19,  line 48775. BEGIN failed--compilation aborted at (eval 57) line 19,  line 48775.


Any help?

And, a question: what dinstribution of per is it? Is it ActivePerl or Strawberry Perl?

Thanks

GRD
grd
 
Posts: 8
Joined: 30. January 2009 21:54

Re: PERL

Postby Izzy » 31. January 2009 01:42

Can you tell me in detail how you installed the perl addon please?

The version can be found by right clicking on perl.exe>Properties...>Version>Other version information.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: PERL

Postby grd » 31. January 2009 14:01

Hi,

just downloaded and installed the package. Anything else.

In the Properties menu i can't find any Version item.

(How can i make possible tat .cgi are executed with perl.exe qoth a double click?)
grd
 
Posts: 8
Joined: 30. January 2009 21:54

Re: PERL

Postby Izzy » 31. January 2009 14:11

What package did you download?

Did you install the xampp perl addon?

If you installed the perl addon did you follow the installation instructions in the xampp\readme-addon-perl.txt file, in particularly the part that tells you to run the setup_xampp.bat file 2 times to select to use the mod_perl feature?

If you don't follow the simplest of instructions then you will always be visiting this forum for help.
(How can i make possible tat .cgi are executed with perl.exe qoth a double click?)
Hard to understand all that but if I follow you this is not possible you have to type the address in the browser.

Please relay all the details asked for as I have no way of seeing what you see on your PC and no way of knowing what you tried to do as my crystal ball is in for repair after over heating with all the over use it gets in this forum.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: PERL

Postby grd » 31. January 2009 14:20

Downloaded this:

http://www.apachefriends.org/download.p ... taller.exe

Installed it, that i've launched the setup_xampp.bat.

Not possible you have to use the browser.


Now i can launch .cgi scripts from command line using this:

Code: Select all
"C:\Program Files\Xampp\perl\bin\perl.exe" "C:\Radio\Scripts\RA\play.cgi"


Can i make possible that simply opening the file play.cgi it's handlerd by perl?
grd
 
Posts: 8
Joined: 30. January 2009 21:54

Re: PERL

Postby grd » 31. January 2009 14:30

Sorry, i've noticed that i haven't pasted the entire error.

Here is it:

Code: Select all
DBI object version 1.607 does not match $DBI::VERSION 1.604 at C:/Program Files/Xampp/perl/lib/DynaLoader.pm line 226. BEGIN failed--compilation aborted at C:/Program Files/Xampp/perl/lib/DBI.pm line 263. Compilation failed in require at (eval 47) line 19. BEGIN failed--compilation aborted at (eval 47) line 19. ,
grd
 
Posts: 8
Joined: 30. January 2009 21:54

Re: PERL

Postby Izzy » 31. January 2009 14:33

grd wrote:Downloaded this:

http://www.apachefriends.org/download.p ... taller.exe

Installed it, that i've launched the setup_xampp.bat.
Did you run the bat file 2 times like I asked you to tell me?

As I said you can't double click on a cgi file and have it run the script.

grd wrote:Now i can launch .cgi scripts from command line using this:

Code: Select all
"C:\Program Files\Xampp\perl\bin\perl.exe" "C:\Radio\Scripts\RA\play.cgi"


Can i make possible that simply opening the file play.cgi it's handlerd by perl?
I don't know, can you do this as I can't see from here.

grd wrote:Sorry, i've noticed that i haven't pasted the entire error.

Check in xampp\apache\conf\extra folder that you have a perl.conf file and if it called perl.conf.new then rename it to perl.conf.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: PERL

Postby grd » 31. January 2009 14:44

Did you run the bat file 2 times like I asked you to tell me?


Yes, as is written in the readme. All the two times is ran it i selected the "1" option
As I said you can't double click on a cgi file and have it run the script.

I don't know, can you do this as I can't see from here.


I only needed to edit the file type. Now if i click or if i launch it from dos it is executed.

EDIT:

Add-on (MOD) Perl 5.10.0 Apache 2.2.11 WITHOUT ActivePerl


And it doesn't seem Strwaberry Perl. Is there any other Win32 PErl Dist that i don't know?
grd
 
Posts: 8
Joined: 30. January 2009 21:54

Re: PERL

Postby Izzy » 31. January 2009 14:52

grd wrote:I only needed to edit the file type. Now if i click or if i launch it from dos it is executed.
You mean you associated perl.exe with a .cgi extension file, which is normal Windows practice if you want to click on a file and have the associated exe file run it but until you do that you can't simply click on a file and have it run like you asked.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: PERL

Postby grd » 31. January 2009 14:53

Oh, so i'm sorry, i was exactly asking it. I didn't remeber where was the menu, but i knew what i had to do.

Thankyou. Any idea about the error and the distribution (that is only my curiosity...)
grd
 
Posts: 8
Joined: 30. January 2009 21:54

Re: PERL

Postby Izzy » 31. January 2009 15:00

grd wrote:Any idea about the error and the distribution (that is only my curiosity...)
For the error, a forum search may give you the answer as I have seen this asked before.

I answered how to locate the distribution above, if you can't find it then I know not what else I can tell you as when I right click on xampp\perl\bin\perl.exe, the folder that I installed the XAMPP perl addon into, I see lots of information in the version tab.

Any more perl related questions should be asked on the ActivePerl community forums.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: PERL

Postby grd » 31. January 2009 15:50

I've re-tried, and i can't find the version tab.

I'm using Win2k3. Can youplease give me a screenshot of your properties windows?

Thanks
grd
 
Posts: 8
Joined: 30. January 2009 21:54

Re: PERL

Postby Izzy » 31. January 2009 15:56

grd wrote:I've re-tried, and i can't find the version tab.

I'm using Win2k3. Can youplease give me a screenshot of your properties windows?

Thanks
Sorry, no.
I have XP Pro and there is a Version tab, perhaps ask Microsoft why there is no Version tab in your OS.

Open a command prompt in perl\bin folder.
Type perl -v
and perl -h
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: PERL

Postby grd » 31. January 2009 16:19

-h doesn't seem a valid option.

perl -v:
Code: Select all
This is perl, v5.10.0 built for MSWin32-x86-multi-thread

Copyright 1987-2007, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.


Anyway, the readme says that ActivePErl isn't present, so it seems a custom perl build...
grd
 
Posts: 8
Joined: 30. January 2009 21:54


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 41 guests