Schrift
[thread]7025[/thread]

XML::Simple und &nbsp;: Windows <-> Mac (Seite 4)

Tags: Ähnliche Threads

Leser: 1


<< |< 1 2 3 4 >| >> 36 Einträge, 4 Seiten
Crian
 2005-06-03 19:21
#55227 #55227
User since
2003-08-04
5866 Artikel
ModeratorIn
[Homepage]
user image
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
Removing previously used /Users/crian/.cpan/build/XML-Parser-2.34

CPAN.pm: Going to build M/MS/MSERGEANT/XML-Parser-2.34.tar.gz

Note (probably harmless): No library found for -lexpat

Expat must be installed prior to building XML::Parser and I can't find
it in the standard library directories. You can download expat from:

http://sourceforge.net/projects/expat/

If expat is installed, but in a non-standard directory, then use the
following options to Makefile.PL:

EXPATLIBPATH=... To set the directory in which to find libexpat

EXPATINCPATH=... To set the directory in which to find expat.h

For example:

perl Makefile.PL EXPATLIBPATH=/home/me/lib EXPATINCPATH=/home/me/include

Note that if you build against a shareable library in a non-standard location
you may (on some platforms) also have to set your LD_LIBRARY_PATH environment
variable at run time for perl to find the library.

Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install
Schneeflocke:~ crian$ locate expat
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-dynload/pyexpat.so
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/test/output/test_pyexpat
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/test/test_pyexpat.py
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/test/test_pyexpat.pyc
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/test/test_pyexpat.pyo
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/dom/expatbuilder.py
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/dom/expatbuilder.pyc
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/dom/expatbuilder.pyo
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/parsers/expat.py
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/parsers/expat.pyc
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/parsers/expat.pyo
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/sax/expatreader.py
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/sax/expatreader.pyc
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/sax/expatreader.pyo
/usr/include/php/ext/xml/expat
/usr/include/php/ext/xml/expat/ascii.h
/usr/include/php/ext/xml/expat/asciitab.h
/usr/include/php/ext/xml/expat/expat.h
/usr/include/php/ext/xml/expat/iasciitab.h
/usr/include/php/ext/xml/expat/latin1tab.h
/usr/include/php/ext/xml/expat/nametab.h
/usr/include/php/ext/xml/expat/utf8tab.h
/usr/include/php/ext/xml/expat/winconfig.h
/usr/include/php/ext/xml/expat/xmlrole.h
/usr/include/php/ext/xml/expat/xmltok.h
/usr/include/php/ext/xml/expat/xmltok_impl.h
/usr/share/doc/libxml2-2.6.7/html/tutorial/includexpath.c
/usr/X11R6/lib/libexpat.1.0.dylib
/usr/X11R6/lib/libexpat.1.dylib
/usr/X11R6/lib/libexpat.dylib
Schneeflocke:~ crian$
s--Pevna-;s.([a-z]).chr((ord($1)-84)%26+97).gee; s^([A-Z])^chr((ord($1)-52)%26+65)^gee;print;

use strict; use warnings; Link zu meiner Perlseite
ptk
 2005-06-03 21:07
#55228 #55228
User since
2003-11-28
3645 Artikel
ModeratorIn
[default_avatar]
EXPATLIBPATH setzen, die Lib scheint sich in /usr/X11R6/lib zu befinden.

Das steht aber auch alles in der Fehlermeldung!
Crian
 2005-06-04 04:49
#55229 #55229
User since
2003-08-04
5866 Artikel
ModeratorIn
[Homepage]
user image
Ja, aber in der Fehlermeldung stand, man solle dies in Makefile.PL tun. Das kann ich bei der Installationsart über perl -MCPAN -e 'install XML::Parser' nicht machen. Oder meinst Du, man kann auch einfach eine normale Umgebungsvariable setzen?

Das probier ich gleich mal aus.

Edit: Das Setzen der Variablen vorher machte auch keinen Unterschied.\n\n

<!--EDIT|Crian|1117846983-->
s--Pevna-;s.([a-z]).chr((ord($1)-84)%26+97).gee; s^([A-Z])^chr((ord($1)-52)%26+65)^gee;print;

use strict; use warnings; Link zu meiner Perlseite
ptk
 2005-06-04 17:42
#55230 #55230
User since
2003-11-28
3645 Artikel
ModeratorIn
[default_avatar]
Theoretisch kann man CPAN.pm per Konfiguration beibringen, dass immer bestimmte Makefile.PL-Parameter gesetzt werden. Ich haette aber kein gutes Gefuehl dabei, weil diese Parameter fuer alle Module verwendet werden wuerden.

Stattdessen wuerde ich CPAN.pm nur fuer den Download nehmen und dann haendisch weitermachen:
Code: (dl )
1
2
3
4
5
cpan
look XML::Parser
# jetzt befindet man sich im ausgepackten XML-Parser-Verzeichnis in der Shell
perl Makefile.PL KEY=VAL ...
make all test && sudo make install
Crian
 2005-06-04 22:15
#55231 #55231
User since
2003-08-04
5866 Artikel
ModeratorIn
[Homepage]
user image
Hey super!
Damit komme ich etwas weiter, allerdings hab ich noch ein Problem bei make all:

[tt]Schneeflocke:~/.cpan/build/XML-Parser-2.34 crian$ make all    
cc -c   -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os   -DVERSION=\"2.34\" -DXS_VERSION=\"2.34\"  "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE"   Expat.c
Expat.xs:12:19: error: expat.h: No such file or directory
Expat.xs:60: error: parse error before "XML_Parser"


und danach folgen noch viele weitere Fehler, die offensichtlich auf die fehlende Header Datei zurückzuführen sind. Vielleicht war der Pfad doch falsch? Oder mir fehlt noch irgendwas anderes?

[font=courier]Schneeflocke:~/.cpan/build/XML-Parser-2.34 crian$ locate expat.h
/usr/include/php/ext/xml/expat/expat.h[/tt]

Vielen Dank für Deine Hilfe.

Aus oben von mir zitierter Hilfe:

EXPATINCPATH=...  To set the directory in which to find expat.h

Aha... also setze ich den mal auf /usr/include/php/ext/xml/expat/[/font]

Mein Vorgehen bisher war nun also:

Code: (dl )
1
2
3
4
cpan
look XML::Parser
perl Makefile.PL EXPATLIBPATH=/usr/X11R6/lib EXPATINCPATH=/usr/include/php/ext/xml/expat/
make all


Dabei kommt es dann zum Fehler

Code: (dl )
1
2
3
4
5
Schneeflocke:~/.cpan/build/XML-Parser-2.34 crian$ make allcc -c  -I/usr/include/php/ext/xml/expat/ -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os   -DVERSION=\"2.34\" -DXS_VERSION=\"2.34\"  "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE"   Expat.c
In file included from Expat.xs:12:
/usr/include/php/ext/xml/expat/expat.h:18:24: error: php_compat.h: No such file or directory
make[1]: *** [Expat.o] Error 1
make: *** [subdirs] Error 2


hmmm

Code: (dl )
1
2
Schneeflocke:~/.cpan/build/XML-Parser-2.34 crian$ locate php_compat.h
/usr/include/php/main/php_compat.h


Gibts da noch eine Möglichkeit, auch diesen Pfad mitzugeben?
s--Pevna-;s.([a-z]).chr((ord($1)-84)%26+97).gee; s^([A-Z])^chr((ord($1)-52)%26+65)^gee;print;

use strict; use warnings; Link zu meiner Perlseite
Crian
 2005-06-07 17:03
#55232 #55232
User since
2003-08-04
5866 Artikel
ModeratorIn
[Homepage]
user image
Das Problem besteht immer noch. Hat einer der Macuser hier es geschafft, XML::Parser zu installieren?
Oder Perl/Tk?\n\n

<!--EDIT|Crian|1118149406-->
s--Pevna-;s.([a-z]).chr((ord($1)-84)%26+97).gee; s^([A-Z])^chr((ord($1)-52)%26+65)^gee;print;

use strict; use warnings; Link zu meiner Perlseite
<< |< 1 2 3 4 >| >> 36 Einträge, 4 Seiten



View all threads created 2005-05-31 19:34.