Thread XML::Simple und &nbsp;: Windows <-> Mac (35 answers)
Opened by Crian at 2005-05-31 19:34

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

View full thread XML::Simple und &nbsp;: Windows <-> Mac