Thread Das Modul Imager über einen http proxy per CPAN/wget installieren (6 answers)
Opened by sektor at 2008-08-28 11:05

sektor
 2008-08-28 11:05
#114044 #114044
User since
2008-08-26
6 Artikel
BenutzerIn
[default_avatar]
Hallo Forum,
ich habe ein perl 5.8.8 auf windows mit MinGW kompiliert. Es scheint auch komplett zu funktionieren, außer einem feature, dass ich aber gerne nutzen würde. Und das ist das installieren von Modulen über CPAN.

Konkret möchte ich das Modul "Imager" installieren. Wenn ich dieses Perl auf einem Rechner baue und laufen lasse, der direkt am Internet hängt (keine Proxies) dann funktioniert das auch völlig problemlos per 'perl -MCPAN -e "install Imager". Einfach traumhaft.
Wenn ich das Perl aber in der Firma einsetzten will, in der ich einen Proxy nutzen muss, funktioniert das ganze nicht. Das Problem scheint zwar am gzip zu liegen, ist meiner Meinung nach aber unwahrscheinlich, da es mit dem selben gzip funktioniert, wenn ich keinen proxy nutzen muss.
Auffällig ist, dass versucht wird gzip auf eine nicht gz Datei anzuwenden.

Hat jemand eine Idee wie ich dieses Problem lösen kann?

Grüße,
sektor

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
C:\data>perl -MCPAN -e "install Imager"
CPAN: Storable loaded ok
LWP not available

Trying with "C:\data\UnxUtils\usr\local\wbin\wget.EXE -O -" to get
http://ftp.gwdg.de/pub/languages/perl/CPAN/authors/01mailrc.txt.gz
--08:49:32-- http://ftp.gwdg.de/pub/languages/perl/CPAN/authors/01mailrc.txt.gz
=> `-'
Resolving www-proxy.de... done.
Connecting to www-proxy.de[x.x.x.x]:80... connected.
Proxy request sent, awaiting response... 200 OK
Length: 146,409 [application/x-gzip]

100%[====================================>] 146,409 315.62K/s ETA 00:00

08:49:33 (315.62 KB/s) - `-' saved [146409/146409]


gzip: C:\data\perl\CPANcache\sources\authors\01mailrc.txt: invalid compressed data--format violated
Going to read C:\data\perl\CPANcache\sources\authors\01mailrc.txt.gz

Trying with "C:\data\UnxUtils\usr\local\wbin\wget.EXE -O -" to get
http://ftp.gwdg.de/pub/languages/perl/CPAN/modules/02packages.details.txt.gz
--08:49:33-- http://ftp.gwdg.de/pub/languages/perl/CPAN/modules/02packages.details.txt.gz
=> `-'
Resolving www-proxy.de... done.
Connecting to www-proxy.de[x.x.x.x]:80... connected.
Proxy request sent, awaiting response... 200 OK
Length: 688,179 [application/x-gzip]

100%[====================================>] 688,179 330.73K/s ETA 00:00

08:49:35 (330.73 KB/s) - `-' saved [688179/688179]


gzip: C:\data\perl\CPANcache\sources\modules\02packages.details.txt: invalid compressed data--format violated
Going to read C:\data\perl\CPANcache\sources\modules\02packages.details.txt.gz
Warning: Your C:\data\perl\CPANcache\sources\modules\02packages.details.txt.gz does not contain a Line-Count header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Warning: Your C:\data\perl\CPANcache\sources\modules\02packages.details.txt.gz does not contain a Last-Updated header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.

Trying with "C:\data\UnxUtils\usr\local\wbin\wget.EXE -O -" to get
http://ftp.gwdg.de/pub/languages/perl/CPAN/modules/03modlist.data.gz
--08:49:46-- http://ftp.gwdg.de/pub/languages/perl/CPAN/modules/03modlist.data.gz
=> `-'
Resolving www-proxy.de... done.
Connecting to www-proxy.de[x.x.x.x]:80... connected.
Proxy request sent, awaiting response... 200 OK
Length: 151,975 [application/x-gzip]

100%[====================================>] 151,975 317.12K/s ETA 00:00

08:49:47 (317.12 KB/s) - `-' saved [151975/151975]


gzip: C:\data\perl\CPANcache\sources\modules\03modlist.data: invalid compressed data--format violated
Going to read C:\data\perl\CPANcache\sources\modules\03modlist.data.gz
'quoted execution (``, qx)' trapped by operation mask at (eval 11) line 3.
at C:/data/perl/lib/CPAN.pm line 3405
CPAN::Index::rd_modlist('CPAN::Index', 'C:\data\perl\CPANcache\sources\modules\03modlist.data.gz') called at C:/data/perl/lib/CPAN.pm line 3128
CPAN::Index::reload('CPAN::Index') called at C:/data/perl/lib/CPAN.pm line 675
CPAN::exists('CPAN=HASH(0x1182bcc)', 'CPAN::Module', 'Imager') called at C:/data/perl/lib/CPAN.pm line 1841
CPAN::Shell::expandany('CPAN::Shell', 'Imager') called at C:/data/perl/lib/CPAN.pm line 2077
CPAN::Shell::rematein('CPAN::Shell', 'install', 'Imager') called at C:/data/perl/lib/CPAN.pm line 2164
CPAN::Shell::install('CPAN::Shell', 'Imager') called at C:/data/perl/lib/CPAN.pm line 79
CPAN::AUTOLOAD('Imager') called at -e line 1

C:\data>

View full thread Das Modul Imager über einen http proxy per CPAN/wget installieren