Schrift
[thread]8155[/thread]

Executables aus Perlscript bauen



<< >> 4 Einträge, 1 Seite
roli
 2006-07-10 20:57
#68030 #68030
User since
2004-12-31
424 Artikel
BenutzerIn
[default_avatar]
Hi Leute,

ich wuerde gerne aus einem Perlscript ein Executable bauen, auf Windows. Ich habe jedoch weder mit perlcc nor mit par Erfolg.
Bei par erhalte ich folgendes:
Code: (dl )
1
2
3
4
5
6
D:\daten\prog\perl\>pp --output=myscript.exe myscript.pl

D:\daten\prog\perl\>myscript.exe
"looks_like_number" is not exported by the Scalar::Util module
Can't continue after import errors at script/myscript.pl line 41
BEGIN failed--compilation aborted at script/myscript.pl line 41.
Die Datei myscript.exe wird erzeugt und ist ca. 1,9 MB gross, aber leider nicht willig zu arbeiten,

Wenn ich perlcc verwende erhalte ich folgendes:
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
D:\daten\prog\perl\>perlcc -o myscript.exe myscript.pl
Note (probably harmless): No library found for oldnames.lib
Note (probably harmless): No library found for kernel32.lib
Note (probably harmless): No library found for user32.lib
Note (probably harmless): No library found for gdi32.lib
Note (probably harmless): No library found for winspool.lib
Note (probably harmless): No library found for comdlg32.lib
Note (probably harmless): No library found for advapi32.lib
Note (probably harmless): No library found for shell32.lib
Note (probably harmless): No library found for ole32.lib
Note (probably harmless): No library found for oleaut32.lib
Note (probably harmless): No library found for netapi32.lib
Note (probably harmless): No library found for uuid.lib
Note (probably harmless): No library found for ws2_32.lib
Note (probably harmless): No library found for mpr.lib
Note (probably harmless): No library found for winmm.lib
Note (probably harmless): No library found for version.lib
Note (probably harmless): No library found for odbc32.lib
Note (probably harmless): No library found for odbccp32.lib
Note (probably harmless): No library found for msvcrt.lib
Der Befehl "cl" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Der Befehl "link" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

Als Perlscript selber habe ich diese Probleme nicht.
Roland
--
"Steh vorn, während du fragst;
sitzen soll, wer antwortet."
Aus "Die Edda des Snorri Sturluson" "Gylfis Täuschung" Strophe 2
lichtkind
 2006-07-10 21:03
#68031 #68031
User since
2004-03-22
5679 Artikel
ModeratorIn + EditorIn
[Homepage]
user image
natürlich nicht weil du dafür die werkzeuge nicht brauchst, dafür brauchst schon compiler, also netweder die sachen mein msft laden , mingw(cygwin), oder jetzt ganz neu vanilla perl\n\n

<!--EDIT|lichtkind|1152551207-->
Wiki:Tutorien in der Wiki, mein zeug:
kephra, baumhaus, garten, gezwitscher

Es beginnt immer mit einer Entscheidung.
pq
 2006-07-11 14:50
#68032 #68032
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
für pp braucht man einen compiler? wär mir neu.

edit: hab mich verlesen, aber das ist bei lichtkinds beiträgen ja keine schande.\n\n

<!--EDIT|pq|1152615096-->
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem
roli
 2006-07-12 11:41
#68033 #68033
User since
2004-12-31
424 Artikel
BenutzerIn
[default_avatar]
Hi,

was heisst da jetzt fuer mich?
Ich nutze:
'PAR-Dist' version 0.10 in ActivePerl 5.8.7.813.
'PAR' version 0.90 in ActivePerl 5.8.7.813.
Roland
--
"Steh vorn, während du fragst;
sitzen soll, wer antwortet."
Aus "Die Edda des Snorri Sturluson" "Gylfis Täuschung" Strophe 2
<< >> 4 Einträge, 1 Seite



View all threads created 2006-07-10 20:57.