in reply to Another CPAN Module problem

After first installing the expat C library, into /usr/local say, install XML::Parser with:

perl Makefile.PL EXPATLIBPATH=/usr/local/lib EXPATINCPATH=/usr/local/i +nclude make make test make install
I did this a while ago, as discussed in Building XML::Parser and expat standalone.

Replies are listed 'Best First'.
Re^2: Another CPAN Module problem
by lensman (Novice) on Oct 13, 2005 at 14:55 UTC
    make is failing:

    gcc -c -I/usr/local/include -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_ HPUX_SOURCE -fPIC -mpa-risc-1-1 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE _OFFSET_BITS=64 -O -DVERSION=\"2.34\" -DXS_VERSION=\"2.34\" -fPIC "-I/opt/pe rl/lib/5.8.0/PA-RISC1.1-thread-multi/CORE" Expat.c
    In file included from Expat.xs:12:
    /usr/local/include/expat.h:18:28: error: expat_external.h: No such file or directory

    followed by a ton of syntax errors.

    where is expat_external.h supposed to come from/to be?
      I remember having that problem too.

      Googling "expat_external.h" gave me this link about expat_external.h not being copied to the right directory. I remember putting it in the right directory and everything worked, but I don't remember where I got it from... I think it gets installed, but just not copied to right directory. If you poke around, you should be able to find it and copy it over to the correct directory.

      Cheers,

      Brent

      -- Yeah, I'm a Delt.

        I remember putting it in the right directory and everything worked, but I don't remember where I got it from
        Yes, I remember having that problem too. When you unpack libexpat's source tarball, you will notice the file expat_external.h in one of the sub directories; manually copy it from there to /usr/local/include and all will be well.