cpan vs. cpanplus
am 30.08.2010 11:45:32 von extern.Lars.Oeschey
Hi,
I need to recompile some scripts, unfortunately my machine is new installed (Win7 32bit), so I need to get all those modules I used into my current perl installation. One module I used is Logfile::Rotate, which doesn't show up in ppm, so I try to use cpan/cpanplus. When I run cpan, it seems to just fetch packages from the activestate ppm repository, so the module isn't found there (I guess it's the same repository that ppm uses). I tried cpanplus then, but it seems to not work with our proxy (I have set an environment variable http://user:password@proxy:port). Can I get cpanplus to work with our proxy, or can I set cpan to actually fetch stuff from cpan and not activestate?
Lars
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: cpan vs. cpanplus
am 30.08.2010 12:11:17 von extern.Lars.Oeschey
> I need to recompile some scripts, unfortunately my machine is new
> installed (Win7 32bit), so I need to get all those modules I used into my
> current perl installation. One module I used is Logfile::Rotate, which
> doesn't show up in ppm, so I try to use cpan/cpanplus. When I run cpan, it
> seems to just fetch packages from the activestate ppm repository, so the
> module isn't found there (I guess it's the same repository that ppm uses).
> I tried cpanplus then, but it seems to not work with our proxy (I have set
> an environment variable http://user:password@proxy:port). Can I get
> cpanplus to work with our proxy, or can I set cpan to actually fetch stuff
> from cpan and not activestate?
I managed to reconfigure the cpan module to use the http cpan mirrors. However, I get this error when trying to install:
cpan[33]> get /Logfile::Rotate/
Running get for module 'Logfile::Rotate'
Fetching with LWP:
http://cpan.cpantesters.org/authors/id/P/PA/PAULG/Logfile-Ro tate-1.04.tar.gz
Fetching with LWP:
http://cpan.cpantesters.org/authors/id/P/PA/PAULG/CHECKSUMS
Checksum for C:\Perl\cpan\sources\authors\id\P\PA\PAULG\Logfile-Rotate-1. 04.ta
gz ok
Scanning cache C:\Perl/cpan/build for sizes
DONE
Invalid header block at offset unknown at C:\Perl\lib/CPAN/Tarzip.pm line 358
Invalid header block at offset unknown at C:\Perl\lib/CPAN/Tarzip.pm line 358
Invalid header block at offset unknown at C:\Perl\lib/CPAN/Tarzip.pm line 358
Invalid header block at offset unknown at C:\Perl\lib/CPAN/Tarzip.pm line 358
Invalid header block at offset unknown at C:\Perl\lib/CPAN/Tarzip.pm line 358
Invalid header block at offset unknown at C:\Perl\lib/CPAN/Tarzip.pm line 358
Also, I think it would be better to get cpanplus to work since it automatically set up a c-compiler environment...
Lars
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: cpan vs. cpanplus
am 30.08.2010 19:02:24 von Serguei Trouchelle
Oeschey, Lars (I/ET-83, extern) wrote:
> I need to recompile some scripts, unfortunately my machine is new installed (Win7 32bit), so I need to get all those modules I used into my current perl installation. One module I used is Logfile::Rotate, which doesn't show up in ppm
You don't need to compile anything.
Just copy http://cpansearch.perl.org/src/PAULG/Logfile-Rotate-1.04/Rot ate.pm to c:/perl/site/lib/Logfile, that would do.
For compiling XS-modules, try running "ppm install MinGW" and then use cpan, it should work just fine.
--
Serguei Trouchelle
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: cpan vs. cpanplus
am 31.08.2010 14:52:07 von Michael.Ludwig
> -----Original Message-----
> On Behalf Of Serguei Trouchelle
> You don't need to compile anything.
> Just copy
> http://cpansearch.perl.org/src/PAULG/Logfile-Rotate-1.04/Rot at
> e.pm to c:/perl/site/lib/Logfile, that would do.
>
> For compiling XS-modules, try running "ppm install MinGW" and
> then use cpan, it should work just fine.
I'm feeling a bit foolish as I didn't know that crucial piece of information. Must have been missing something!
So I installed that package, and it's there. To test, I tried to install XML::LibXSLT. Yes, that's diverting the thread, so I'm going to start a new one detailing the difficulties I'm having in getting LibXSLT to compile.
--
Michael Ludwig
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs