Thread Probleme beim Installieren des DateTime-Moduls (31 answers)
Opened by Speedriff at 2013-12-09 15:42

Speedriff
 2013-12-09 15:42
#172501 #172501
User since
2013-11-25
39 Artikel
BenutzerIn
[default_avatar]
Hallo Community!
Die Probleme reißen nicht ab ;-)

Nachdem auf dem Test-Linux-Rechner das Skript für die Winter- und Sommerzeit-Umrechung wunderbar geklappt hat, gehts nun darum, das Skript auf dem eigentlichen Server zu implementieren.

Natürlich findet Perl auf dem Server erstmal nicht das "DateTime"-Modul...
Zum installieren habe ich foldendes eingegeben:

Code: (dl )
sudo perl -MCPAN -e shell
anschließend
Code: (dl )
install DateTime


Er fragt dann ob er die Internetverbindung nurtzen darf => yes

dann läd er sich diverse Sachen herunter und versucht, das Modul zu installieren...
Hat nicht recht geklappt. Leider weiß ich nicht wie man in diesem Fall eine Log-Datei mitschreibt.
Da die Meldungen recht lange sind und ihr sicherlich wissen wollt, was genau er für Fehlermeldungen bringt, erstmal die Frage:

Wie kann ich zum "install" eine Logdatei erzeugen? ;-)

Habe es mit

Code: (dl )
install DateTime 2> error.txt


versucht, aber das scheint nicht zu funktionieren...

Hoffentlich habt ihr nochmals ein wenig Hilfestellung für mich! :-)

Gruß,
Speedriff

ps. das hier ist die Perl-Version die auf dem Server läuft:

Code: (dl )
This is perl, v5.10.0 built for x86_64-linux-thread-multi



ach, ich bin ja auch blöd, bin ja mit PuTTy unterwegs und kann das ja alles rauskopieren... *g*
Dann hier mal alles was er so macht:


cpan (10.2kb):
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
cpan[1]> install DateTime
CPAN: Storable loaded ok (v2.18)
Going to read /root/.cpan/Metadata
Database was generated on Tue, 05 Nov 2013 08:53:02 GMT
CPAN: LWP::UserAgent loaded ok (v5.829)
CPAN: Time::HiRes loaded ok (v1.9711)

I would like to connect to one of the following sites to get 'authors/01mailrc.t xt.gz':

http://www.perl.org/CPAN/
ftp://ftp.perl.org/pub/CPAN/

Is it OK to try to connect to the Internet? [yes] y
Fetching with LWP:
http://www.perl.org/CPAN/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
............................................................................DONE
Fetching with LWP:
http://www.perl.org/CPAN/modules/02packages.details.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Mon, 09 Dec 2013 12:41:03 GMT
..............
New CPAN.pm version (v2.00) available.
[Currently running version is v1.9205]
You might want to try
install CPAN
reload cpan
to both upgrade CPAN.pm and run the new version without leaving
the current session.


..............................................................DONE
Fetching with LWP:
http://www.perl.org/CPAN/modules/03modlist.data.gz
Going to read /root/.cpan/sources/modules/03modlist.data.gz
............................................................................DONE
Going to write /root/.cpan/Metadata
Running install for module 'DateTime'
CPAN: Data::Dumper loaded ok (v2.121_14)
'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/
root/.cpan/prefs'
Running make for D/DR/DROLSKY/DateTime-1.04.tar.gz
Fetching with LWP:
http://www.perl.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-1.04.tar.gz
CPAN: Digest::SHA loaded ok (v5.45)
Fetching with LWP:
http://www.perl.org/CPAN/authors/id/D/DR/DROLSKY/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/D/DR/DROLSKY/DateTime-1.04.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
DateTime-1.04/
DateTime-1.04/dist.ini
DateTime-1.04/README
DateTime-1.04/Build.PL
DateTime-1.04/t/
DateTime-1.04/t/release-pp-32leap-second2.t
DateTime-1.04/t/release-pp-09greg.t
DateTime-1.04/t/16truncate.t
DateTime-1.04/t/release-pp-29overload.t
DateTime-1.04/t/release-pp-13strftime.t
DateTime-1.04/t/14locale.t
DateTime-1.04/t/31formatter.t
DateTime-1.04/t/21bad-params.t
DateTime-1.04/t/25add-subtract.t
DateTime-1.04/t/release-pp-36invalid-local.t
DateTime-1.04/t/release-pp-00load.t
DateTime-1.04/t/release-pp-31formatter.t
DateTime-1.04/t/release-pp-24from-object.t
DateTime-1.04/t/release-pod-spell.t
DateTime-1.04/t/29overload.t
DateTime-1.04/t/33seconds-offset.t
DateTime-1.04/t/release-pod-syntax.t
DateTime-1.04/t/43new-params.t
DateTime-1.04/t/release-pp-30future-tz.t
DateTime-1.04/t/32leap-second2.t
DateTime-1.04/t/release-pod-coverage.t
DateTime-1.04/t/release-load-is-xs.t
DateTime-1.04/t/release-pp-25add-subtract.t
DateTime-1.04/t/release-pp-35rd-values.t
DateTime-1.04/t/01sanity.t
DateTime-1.04/t/44set-formatter.t
DateTime-1.04/t/22from-doy.t
DateTime-1.04/t/24from-object.t
DateTime-1.04/t/26dt-leapsecond-pm.t
DateTime-1.04/t/02last-day.t
DateTime-1.04/t/30future-tz.t
DateTime-1.04/t/release-pp-27delta.t
DateTime-1.04/t/release-pp-15jd.t
DateTime-1.04/t/release-pp-16truncate.t
DateTime-1.04/t/12week.t
DateTime-1.04/t/release-pp-34set-tz.t
DateTime-1.04/t/37local-add.t
DateTime-1.04/t/release-pp-06add.t
DateTime-1.04/t/20infinite.t
DateTime-1.04/t/15jd.t
DateTime-1.04/t/release-no-tabs.t
DateTime-1.04/t/release-pp-41cldr-format.t
DateTime-1.04/t/release-pp-28dow.t
DateTime-1.04/t/release-pod-linkcheck.t
DateTime-1.04/t/38local-subtract.t
DateTime-1.04/t/42duration-class.t
DateTime-1.04/t/release-pp-11duration.t
DateTime-1.04/t/release-pp-05set.t
DateTime-1.04/t/23storable.t
DateTime-1.04/t/36invalid-local.t
DateTime-1.04/t/release-pp-18today.t
DateTime-1.04/t/release-cpan-changes.t
DateTime-1.04/t/release-pp-02last-day.t
DateTime-1.04/t/release-pp-38local-subtract.t
DateTime-1.04/t/release-pp-07compare.t
DateTime-1.04/t/19leap-second.t
DateTime-1.04/t/27delta.t
DateTime-1.04/t/04epoch.t
DateTime-1.04/t/release-pp-43new-params.t
DateTime-1.04/t/35rd-values.t
DateTime-1.04/t/release-pp-12week.t
DateTime-1.04/t/release-pp-37local-add.t
DateTime-1.04/t/release-pp-01sanity.t
DateTime-1.04/t/07compare.t
DateTime-1.04/t/10subtract.t
DateTime-1.04/t/11duration.t
DateTime-1.04/t/release-pp-22from-doy.t
DateTime-1.04/t/release-pp-10subtract.t
DateTime-1.04/t/09greg.t
DateTime-1.04/t/release-pp-04epoch.t
DateTime-1.04/t/release-pp-44set-formatter.t
DateTime-1.04/t/release-pp-33seconds-offset.t
DateTime-1.04/t/17set-return.t
DateTime-1.04/t/release-pp-17set-return.t
DateTime-1.04/t/release-pp-21bad-params.t
DateTime-1.04/t/release-pp-42duration-class.t
DateTime-1.04/t/28dow.t
DateTime-1.04/t/40leap-years.t
DateTime-1.04/t/release-eol.t
DateTime-1.04/t/release-pp-20infinite.t
DateTime-1.04/t/release-pp-19leap-second.t
DateTime-1.04/t/03components.t
DateTime-1.04/t/18today.t
DateTime-1.04/t/release-pp-03components.t
DateTime-1.04/t/13strftime.t
DateTime-1.04/t/39no-so.t
DateTime-1.04/t/author-test-all-my-deps.t
DateTime-1.04/t/release-pp-23storable.t
DateTime-1.04/t/release-pp-40leap-years.t
DateTime-1.04/t/00load.t
DateTime-1.04/t/release-pp-14locale.t
DateTime-1.04/t/06add.t
DateTime-1.04/t/05set.t
DateTime-1.04/t/41cldr-format.t
DateTime-1.04/t/34set-tz.t
DateTime-1.04/c/
DateTime-1.04/c/leap_seconds.h
DateTime-1.04/c/ppport.h
DateTime-1.04/META.yml
DateTime-1.04/LICENSE
DateTime-1.04/CREDITS
DateTime-1.04/TODO
DateTime-1.04/inc/
DateTime-1.04/inc/MyModuleBuild.pm
DateTime-1.04/lib/
DateTime-1.04/lib/DateTimePP.pm
DateTime-1.04/lib/DateTime/
DateTime-1.04/lib/DateTime/Duration.pm
DateTime-1.04/lib/DateTime/LeapSecond.pm
DateTime-1.04/lib/DateTime/Infinite.pm
DateTime-1.04/lib/DateTime/Helpers.pm
DateTime-1.04/lib/DateTimePPExtra.pm
DateTime-1.04/lib/DateTime.pm
DateTime-1.04/lib/DateTime.xs
DateTime-1.04/META.json
DateTime-1.04/Changes
DateTime-1.04/tools/
DateTime-1.04/tools/leap_seconds_header.pl
DateTime-1.04/_build/
DateTime-1.04/_build/runtime_params
DateTime-1.04/_build/cleanup
DateTime-1.04/_build/notes
DateTime-1.04/_build/build_params
DateTime-1.04/_build/config_data
DateTime-1.04/_build/features
DateTime-1.04/_build/magicnum
DateTime-1.04/_build/auto_features
DateTime-1.04/_build/prereqs
DateTime-1.04/MANIFEST
DateTime-1.04/INSTALL
DateTime-1.04/leaptab.txt
CPAN: File::Temp loaded ok (v0.18)
Warning (usually harmless): 'YAML' not installed, will not store persistent state

CPAN.pm: Going to build D/DR/DROLSKY/DateTime-1.04.tar.gz

Module::Build version 0.3601 required--this is only version 0.280801 at Build.PL line 5.
BEGIN failed--compilation aborted at Build.PL line 5.
Warning: No success on command[/usr/bin/perl Build.PL ]
Warning (usually harmless): 'YAML' not installed, will not store persistent stat e
DROLSKY/DateTime-1.04.tar.gz
/usr/bin/perl Build.PL -- NOT OK
Running Build test
Make had some problems, won't test
Running Build install
Make had some problems, won't install
Could not read '/root/.cpan/build/DateTime-1.04-vc4Ehr/META.yml'. Falling back t o other methods to determine prerequisites
CPAN: Module::Build loaded ok (v0.280801)
Failed during this command:
DROLSKY/DateTime-1.04.tar.gz : writemakefile NO '/usr/bin/perl Build.PL ' returned status 2304

cpan[2]>


Hmm, das mit den Zeilenumbrüchen passt nicht recht beim rauskopieren, aber vielleicht reichts ja schon?

modedit Editiert von pq: more-tags hinzugefügt
Last edited: 2013-12-09 16:22:32 +0100 (CET)

View full thread Probleme beim Installieren des DateTime-Moduls