use von .pm im aktuellen Verzeichnis -> Can't locate ...

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

use von .pm im aktuellen Verzeichnis -> Can't locate ...

Postby jre00 » 18. February 2007 11:38

Hallo zusammen,
Ich habe ein modul mit dem Namen "common.pm" das im gleichen verzeichnis liegt wie das ausführbahre script Test.pl"

Eingebunden in Test.pl mit
Code: Select all
#!/usr/bin/perl -w

use strict;
use common;
use CGI;
my $q = CGI->new;
use CGI::Carp qw(fatalsToBrowser); 


der Apache meldet
Can't locate common.pm in @INC (@INC contains: C:/Programme/xampp/perl/site/lib/ C:/Programme/xampp/perl/lib C:/Programme/xampp/perl/site/lib . C:/Programme/xampp/apache) at C:/Programme/xampp/cgi-bin/test.pl line 8. BEGIN failed--compilation aborted at C:/Programme/xampp/cgi-bin/test.pl line 8. ,


das hat bis dato immer gefunzt!
hat sich was geeändert?

Vieleicht liegt es an einer *.Conf oder an einem Versionsunterschied ?
konnte bis jetzt nichts finden.

ENV Aktuelle XAMPP 1.5.5 mit MOD_PERL 2.0.2 und PERL 5.8.7
jre00
 
Posts: 3
Joined: 18. February 2007 09:16

Postby Wiedmann » 18. February 2007 12:02

das hat bis dato immer gefunzt!

Aber funktioniert(!) hat das nicht, wenn mod_perl aktiviert ist.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby jre00 » 18. February 2007 12:13

Wiedmann wrote:
das hat bis dato immer gefunzt!

Aber funktioniert(!) hat das nicht, wenn mod_perl aktiviert ist.


da habe ich nicht darauf geachtet.
Gibt es einen Unterschied?
jre00
 
Posts: 3
Joined: 18. February 2007 09:16

Postby Wiedmann » 18. February 2007 12:16

Gibt es einen Unterschied?

Yup, das Scriptverzeichnis ist nicht das current workdir.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby jre00 » 18. February 2007 12:27

Wiedmann wrote:Yup, das Scriptverzeichnis ist nicht das current workdir.


das heist ja wohl nicht das ich das mit
Code: Select all
use lib 'C:/_Projekte/Internet/jre00/doms/goodwill-verlag.de/cgi';

hartverdraten bzw. einbinden soll?

Bis jetzt bin ich davon ausgegangen @INC . ist das Auktuelle verzeichnis

aber ich begebe mich mal ein bisschen auf die suche.
jre00
 
Posts: 3
Joined: 18. February 2007 09:16


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 21 guests