Schrift
[thread]11405[/thread]

CPAN Modul installieren (Seite 2)

Leser: 5


<< |< 1 2 >| >> 17 Einträge, 2 Seiten
havi
 2008-03-04 14:20
#106624 #106624
User since
2003-08-04
2036 Artikel
BenutzerIn
[Homepage]
user image
Bekomme ich folgendes:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
C:\Lokale_Daten\test>ppm install XML-Edifact.ppd
rror: can't parse  &#9632;< ? x m l v e r s i o n = " 1 . 0 " e n c o d i n g = " U T F - 8 " ? >
< S O F T P K G N A M E = " X M L - E d i f a c t " V E R S I O N = " 0 , 4 7 , 0 , 0 " >
< T I T L E > X M L - E d i f a c t < / T I T L E >
< A B S T R A C T > a n a p r o a c h t o w a r d s X M L / E D I a s a p r o t o t y p e i
n p e r l < / A B S T R A C T >
< A U T H O R > k r a e h e @ c o p y l e f t . d e < / A U T H O R >
< I M P L E M E N T A T I O N >
< O S N A M E = " M S W i n 3 2 " / >
< A R C H I T E C T U R E N A M E = " M S W i n 3 2 - x 8 6 - m u l t i - t h r e a d - 5 . 8 " /
>
< C O D E B A S E H R E F = " X M L - E d i f a c t - 0 . 4 7 . z i p " / >
< P R O V I D E N A M E = " X M L : : E d i f a c t " V E R S I O N = " 0 . 4 7 " / >
< / I M P L E M E N T A T I O N >
< / S O F T P K G >
:
encoding specified in XML declaration is incorrect at line 1, column 31, byte 62 at //AZ-Guinan/Applications/P
erl/site/lib/XML/Parser.pm line 187
Gast Gast
 2008-03-04 14:25
#106625 #106625
In welchem Format hast du denn die PPD gespeichert? Als UTF8 oder 7bit-ASCII?
havi
 2008-03-04 14:28
#106626 #106626
User since
2003-08-04
2036 Artikel
BenutzerIn
[Homepage]
user image
Gast+2008-03-04 13:25:05--
In welchem Format hast du denn die PPD gespeichert? Als UTF8 oder 7bit-ASCII?


Natuerlich nicht UTF-8 - jetzt passt es!

DANKE @renee & @Gast...
havi
 2008-03-04 14:56
#106627 #106627
User since
2003-08-04
2036 Artikel
BenutzerIn
[Homepage]
user image
Jetzt bekomme ich folgende Fehlermeldung beim ausfuehren des Skriptes:
Code: (dl )
1
2
can not tie segment.dat:No such file or directory at //az-guinan/applications/Pe
rl/site/lib/XML/Edifact.pm line 77.


Skript:
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
#!/usr/bin/perl

use warnings;
use strict;
use XML::Edifact;
use IO::File;

# open the database
XML::Edifact::open_dbm();

# read edi message
XML::Edifact::read_edi_message("test.edi");

# print xml to standout
print &XML::Edifact::make_xml_message();

# print xml to somefile
my $xml=new IO::File(">some.xml");
XML::Edifact::make_xml_message($xml);
$xml->close();

# close database
XML::Edifact::close_dbm();


Codeabschnitt aus Edifact.pm
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
sub open_dbm {
my ($directory,$fcntl) = @_;

$directory = $XML::Edifact::Config::DAT unless $directory;
$fcntl = O_RDONLY unless $fcntl;

# HIER DER FEHLER...
tie(%SEGMT, 'SDBM_File', $directory.'/segment.dat', $fcntl, 0644) || die "can not tie segment.dat:".$!;
tie(%SEGMR, 'SDBM_File', $directory.'/segment.rev', $fcntl, 0644) || die "can not tie segment.dat:".$!;
tie(%COMPT, 'SDBM_File', $directory.'/composite.dat', $fcntl, 0644) || die "can not tie composite.dat:".$!;
tie(%ELEMT, 'SDBM_File', $directory.'/element.dat', $fcntl, 0644) || die "can not tie element.dat:".$!;
tie(%CODET, 'SDBM_File', $directory.'/codes.dat', $fcntl, 0644) || die "can not tie codes.dat:".$!;

$indent_join='';
$indent_tab='';
eval_xml_edifact_headers();
}

sub close_dbm {
untie(%SEGMT);
untie(%SEGMR);
untie(%COMPT);
untie(%ELEMT);
untie(%CODET);
}
Linuxer
 2008-03-04 19:24
#106645 #106645
User since
2006-01-27
3891 Artikel
HausmeisterIn

user image
übrigens:

Code: (dl )
1
2
3
4
...
tie(%SEGMT, 'SDBM_File', $directory.'/segment.dat', $fcntl, 0644) || die "can not tie segment.dat:".$!;
tie(%SEGMR, 'SDBM_File', $directory.'/segment.rev', $fcntl, 0644) || die "can not tie segment.dat:".$!;
...


Ist das Absicht, dass in der Fehlermeldung von segment.dat die Rede ist, auch wenn eine segment.rev benutzt werden soll?
meine Beiträge: I.d.R. alle Angaben ohne Gewähr und auf Linux abgestimmt!
Die Sprache heisst Perl, nicht PERL. - Bitte Crossposts als solche kenntlich machen!
Gast Gast
 2008-03-04 15:20
#106650 #106650
Dann schreib doch mal bei open_dbm() ein Verzeichnis rein, das rw ist. ;)

Existiert irgendwo eine Datei XML/Edifact/Config.pm? Da sollten nämlich die Konfigurationsdaten drin stehen.
Siehe auch http://search.cpan.org/src/KRAEHE/XML-Edifact-0.47...
havi
 2008-03-04 15:32
#106652 #106652
User since
2003-08-04
2036 Artikel
BenutzerIn
[Homepage]
user image
Ja, diese Datei gibt es und hab ich auch angepasst.
Das Skript laeuft jetzt, aber das Ergebnis, sprich die XML-Datei ist nicht korrekt.
<< |< 1 2 >| >> 17 Einträge, 2 Seiten



View all threads created 2008-03-04 13:15.