problem installing perl modules
Hello list, I try to run a script that outputs always the following error: Can't locate Net/Server/PreForkSimple.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i586-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i586-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at ./grinch.pl line 99. BEGIN failed--compilation aborted at ./grinch.pl line 99. I tried to install the Net::Server::PreForkSimple module from cpan and also I tried to install the RPM perl-Net-Server-0.84-30.i586.rpm. It doesn't work! The bloody script never finds PreForkSimple.pm. May be something wrong with include paths? In another SuSE box, I could run once this script by installing the required modules from CPAN. Too bad, the next day it didn't work anymore (the same error). I gues SuSEconfig is doing something with the PERL config behind the matrix :-) How are we suposed to load new perl modules into SuSE? Any doc or reference about that please? Cheers Pep Serrano
Op vrijdag 10 oktober 2003 11:51, schreef Pep Serrano:
Hello list,
I try to run a script that outputs always the following error: Can't locate Net/Server/PreForkSimple.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i586-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i586-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at ./grinch.pl line 99. BEGIN failed--compilation aborted at ./grinch.pl line 99.
I tried to install the Net::Server::PreForkSimple module from cpan and also I tried to install the RPM perl-Net-Server-0.84-30.i586.rpm. It doesn't work! The bloody script never finds PreForkSimple.pm. May be something wrong with include paths?
In another SuSE box, I could run once this script by installing the required modules from CPAN. Too bad, the next day it didn't work anymore (the same error). I gues SuSEconfig is doing something with the PERL config behind the matrix :-)
How are we suposed to load new perl modules into SuSE? Any doc or reference about that please?
Cheers Pep Serrano
Are you running suse-8.1, guessed from the perl includes? Did you get the rpm from suse 8.2? The rpm installs perl modules in /usr/lib/perl5/site_perl/5.8.0 which does not match your path above. You could alter the script and it maybe helps to add the "-I /usr/lib/perl5/site_perl/5.8.0" argument behind the "#!/usr/bin/perl" line. -- Richard Bos Without a home the journey is endless
Hi Richard, You guessed rigth. Well... very closed. I am running 8.0 on this box. And the RPM is for 8.2... But still installing manually the module from the perl cpan shell should work. Am I wrong? On Friday 10 October 2003 13:16, Richard Bos wrote:
Are you running suse-8.1, guessed from the perl includes?
Did you get the rpm from suse 8.2?
The rpm installs perl modules in /usr/lib/perl5/site_perl/5.8.0 which does not match your path above. You could alter the script and it maybe helps to add the "-I /usr/lib/perl5/site_perl/5.8.0" argument behind the "#!/usr/bin/perl" line.
Cheers Pep.
Op vrijdag 10 oktober 2003 13:31, schreef Pep Serrano:
Hi Richard,
You guessed rigth. Well... very closed. I am running 8.0 on this box. And the RPM is for 8.2... But still installing manually the module from the perl cpan shell should work. Am I wrong?
That should work indeed. -- Richard Bos Without a home the journey is endless
participants (2)
-
Pep Serrano
-
Richard Bos