Can not Install XML::Parser

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default Can not Install XML::Parser

    Note: this message was submitted to 'cpan-discuss@perl.org' but I have
    received no replies.
    --
    Solaris 9 - SPARCstation 20
    perl, v5.6.1 built for sun4-solaris-64int

    I am unable to install XML::Parser. The build fails after not being
    able to locate xpat. This does exist, and I have followed the
    instructions on setting EXPATLIBPATH, EXPATINCPATH, and LD_LIBRARY_PATH.
    Below is a transcript of what I have done, but there is obviously
    something else necessary.

    Thanks,
    Barry

    -----

    cpan> install XML::Parser
    ..
    ..
    Running install for module XML::Parser
    Running make for 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:

    [url]http://sourceforge.net/projects/expat/[/url]

    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

    cpan> exit
    No history written (no histfile specified).
    Lockfile removed.

    # locate expat
    /usr/local/include/expat.h
    /usr/local/lib/libexpat.a
    /usr/local/lib/libexpat.la
    /usr/local/lib/libexpat.so
    /usr/local/lib/libexpat.so.0
    /usr/local/lib/libexpat.so.0.4.0

    # cd /home/skidmore/.cpan/build/XML-Parser-2.34
    # perl Makefile.PL EXPATLIBPATH=/usr/local/lib EXPATINCPATH=/usr/local/include
    Checking if your kit is complete...
    Looks good
    Writing Makefile for XML::Parser::Expat
    Writing Makefile for XML::Parser
    # export LD_LIBRARY_PATH=/usr/lib:/usr/sfw:/usr/local/lib
    # echo $LD_LIBRARY_PATH
    /usr/lib:/usr/sfw:/usr/local/lib
    # perl -MCPAN -e 'shell'

    cpan> install XML::Parser

    Running install for module XML::Parser
    Running make for M/MS/MSERGEANT/XML-Parser-2.34.tar.gz

    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:

    [url]http://sourceforge.net/projects/expat/[/url]

    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

    cpan>


    Barry Skidmore Guest

  2. Similar Questions and Discussions

    1. Need Help with XML::Parser
      Running Perl 5.6.0 on AIX 5.1, Have installed Expat and XML::Parser modules and run make test successfully, still get the following error whenever...
    2. XML::Parser::Expat install problem
      Hi I am trying to install this module. I have installed XML-Parser-2.34 and this seems to be ok. It is supposed to install XML::Expat with it. ...
    3. XML::Parser CPAN install error with Expat.o
      I'm building a Debian Linux 'woody' system with linux kernel 2.2.20 and perl 5.6.1. I need to install XML::Parser and am encountering a problem...
    4. HTML-Parser / SGML-Parser
      Ok, silly question. I am writing a script to determine my router's WAN ip address and then to email me once an hour in case it changes. Currently...
    5. Parser XML
      Hi, someone knows a tool that can parse an SWF file into XML format ?? Thanks
  3. #2

    Default Re: Can not Install XML::Parser

    Barry Skidmore wrote:
    > Below is a transcript of what I have done, but there is obviously
    > something else necessary.
    > # cd /home/skidmore/.cpan/build/XML-Parser-2.34
    > # perl Makefile.PL EXPATLIBPATH=/usr/local/lib EXPATINCPATH=/usr/local/include
    > Checking if your kit is complete...
    > Looks good
    So far, so good... but then:
    > # perl -MCPAN -e 'shell'
    >
    > cpan> install XML::Parser
    >
    > Running install for module XML::Parser
    > Running make for M/MS/MSERGEANT/XML-Parser-2.34.tar.gz
    >
    > CPAN.pm: Going to build M/MS/MSERGEANT/XML-Parser-2.34.tar.gz
    The build directory was modified before the current CPAN session, so the
    CPAN shell is unzipping a new, clean build directory for you, and then
    running 'perl Makefile.PL' without the necessary options.

    If you need to pass options to Makefile.PL, and still want to use the
    CPAN shell, use the CPAN shell's "look" command:

    cpan> look XML::Parser

    This will cause the CPAN shell to download and unzip the XML::Parser
    tarball, and open up a subshell (bash, csh, whatever...) in the build
    directory. So you can run 'perl Makefile.PL blah blah', and then exit
    from the subshell back up to the CPAN shell.

    When you run 'Makefile.PL' from a subshell, the CPAN shell can tell when
    you run 'install XML::Parser' that the module was already unzipped and
    configured in the current session, so it doesn't try to do that again.
    It skips that step and goes on to the 'make', 'make test', and 'make
    install' steps.

    sherm--

    --
    Cocoa programming in Perl: [url]http://camelbones.sourceforge.net[/url]
    Hire me! My resume: [url]http://www.dot-app.org[/url]
    Sherm Pendley Guest

  4. #3

    Default Re: Can not Install XML::Parser

    Sherm,

    Thanks for the reply. I have followed your suggestions (I think), but am
    receiving the same error message. Do you have any other thoughts?

    I noticed an additional error about pwd not being able to determine the
    current directory. You will see in the output below that the 'pwd'
    command is in the current PATH.

    Barry

    ---

    # perl -MCPAN -e 'shell'
    pwd: cannot determine current directory!

    cpan shell -- CPAN exploration and modules installation (v1.76)
    ReadLine support enabled

    Can't ioctl TIOCGETP:
    Consider installing Term::ReadKey from CPAN site nearby
    at [url]http://www.perl.com/CPAN[/url]
    Or use
    perl -MCPAN -e shell
    to reach CPAN. Falling back to 'stty'.
    If you do not want to see this warning, set PERL_READLINE_NOWARN
    in your environment.
    cpan> look XML::Parser
    Going to read /home/skidmore/.cpan/sources/authors/01mailrc.txt.gz
    Going to read /home/skidmore/.cpan/sources/modules/02packages.details.txt.gz
    Database was generated on Thu, 30 Sep 2004 10:06:57 GMT
    HTTP::Date not available
    Going to read /home/skidmore/.cpan/sources/modules/03modlist.data.gz
    Running look for module XML::Parser

    Trying to open a subshell in the build directory...
    pwd: cannot determine current directory!

    CPAN: MD5 security checks disabled because Digest::MD5 not installed.
    Please consider installing the Digest::MD5 module.

    Scanning cache /home/skidmore/.cpan/build for sizes
    pwd: cannot determine current directory!
    x XML-Parser-2.34, 0 bytes, 0 tape blocks
    x XML-Parser-2.34/Changes, 24958 bytes, 49 tape blocks
    .. (lines removed)
    ..
    x XML-Parser-2.34/t/styles.t, 1251 bytes, 3 tape blocks
    Removing previously used /home/skidmore/.cpan/build/XML-Parser-2.34
    Working directory is /home/skidmore/.cpan/build/XML-Parser-2.34
    # whereis pwd
    pwd: /usr/bin/pwd /usr/include/pwd.h
    # echo $PATH
    /usr/bin:/usr/sbin:/usr/sbin:/usr/dt/bin:/usr/openwin/bin:/bin:/usr/ucb:/usr/local/bin:/usr/ccs/bin
    # perl Makefile.PL EXPATLIBPATH=/usr/local/lib EXPATINCPATH=/usr/local/include
    Checking if your kit is complete...
    Looks good
    Writing Makefile for XML::Parser::Expat
    Writing Makefile for XML::Parser
    # export LD_LIBRARY_PATH=/usr/local/lib
    # exit
    exit

    cpan> install XML::Parser
    Running install for module XML::Parser
    Running make for M/MS/MSERGEANT/XML-Parser-2.34.tar.gz
    Is already unwrapped into directory /home/skidmore/.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:

    [url]http://sourceforge.net/projects/expat/[/url]

    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



    On Wed, 29 Sep 2004 22:11:21 -0400, Sherm Pendley wrote:
    > If you need to pass options to Makefile.PL, and still want to use the
    > CPAN shell, use the CPAN shell's "look" command:
    Barry Skidmore Guest

  5. #4

    Default Re: Can not Install XML::Parser

    Barry Skidmore wrote:
    > Thanks for the reply. I have followed your suggestions (I think), but am
    > receiving the same error message. Do you have any other thoughts?
    >
    > I noticed an additional error about pwd not being able to determine the
    > current directory. You will see in the output below that the 'pwd'
    > command is in the current PATH.
    > pwd: cannot determine current directory!
    If 'pwd' could not be found, the error would read "command not found".
    The error here indicates that 'pwd' was found and executed, but could
    not do its job.

    That usually indicates a permissions issue. From the '#' prompt, you
    appear to be running the CPAN shell as root - is that true? If you're
    not, you should be.

    Another possibility is that the permissions on the .cpan directory have
    gotten mangled somehow, or an important directory is missing - try
    recursively deleting .cpan. The CPAN shell will then build a new one
    with everything it needs and permissions set correctly.

    sherm--

    --
    Cocoa programming in Perl: [url]http://camelbones.sourceforge.net[/url]
    Hire me! My resume: [url]http://www.dot-app.org[/url]
    Sherm Pendley Guest

  6. #5

    Default Re: Can not Install XML::Parser

    On Thu, 30 Sep 2004 16:17:11 -0400, Sherm Pendley wrote:
    > That usually indicates a permissions issue. From the '#' prompt, you
    > appear to be running the CPAN shell as root - is that true? If you're
    > not, you should be.
    Sherm,

    Sorry to take so long to get back to you, but I have been distracted by
    another project

    I am running the CPAN shell as su.
    > Another possibility is that the permissions on the .cpan directory have
    > gotten mangled somehow, or an important directory is missing - try
    > recursively deleting .cpan. The CPAN shell will then build a new one
    > with everything it needs and permissions set correctly.
    I just tried that, and I no longer get the 'pwd: cannot determine current
    directory!' error, but the other errors are still occurring. If you have
    other thoughts on this, please let me know.

    After deleting .cpan:

    ---
    cpan> look XML::Parser
    LWP not available
    CPAN: Net::FTP loaded ok
    ..
    ..
    ..
    Running look for module XML::Parser

    Trying to open a subshell in the build directory...
    LWP not available
    Fetching with Net::FTP:
    [url]ftp://archive.progeny.com/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-2.34.tar.gz[/url]
    ..
    ..
    ..
    Scanning cache /home/skidmore/.cpan/build for sizes
    x XML-Parser-2.34, 0 bytes, 0 tape blocks
    x XML-Parser-2.34/Changes, 24958 bytes, 49 tape blocks
    x XML-Parser-2.34/Expat, 0 bytes, 0 tape blocks
    ..
    ..
    ..
    Working directory is /home/skidmore/.cpan/build/XML-Parser-2.34
    # perl Makefile.PL EXPATLIBPATH=/usr/local/lib EXPATINCPATH=/usr/local/include
    Checking if your kit is complete...
    Looks good
    Writing Makefile for XML::Parser::Expat
    Writing Makefile for XML::Parser
    # export LD_LIBRARY_PATH=/usr/local/lib
    # exit
    exit

    cpan> install XML::Parser
    Running install for module XML::Parser
    Running make for M/MS/MSERGEANT/XML-Parser-2.34.tar.gz
    Is already unwrapped into directory /home/skidmore/.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:

    [url]http://sourceforge.net/projects/expat/[/url]

    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

    cpan>



    Barry Skidmore Guest

  7. #6

    Default Re: Can not Install XML::Parser

    Barry Skidmore wrote:
    > I just tried that, and I no longer get the 'pwd: cannot determine current
    > directory!' error
    Good to hear.
    > but the other errors are still occurring. If you have
    > other thoughts on this, please let me know.
    Looking at your older post, I noticed that the libexpat listed there is
    *very* old - 0.4.0. The current version on sourceforge is 1.95.

    You might try installing a newer expat.

    sherm--

    --
    Cocoa programming in Perl: [url]http://camelbones.sourceforge.net[/url]
    Hire me! My resume: [url]http://www.dot-app.org[/url]
    Sherm Pendley Guest

  8. #7

    Default Re: Can not Install XML::Parser

    On Tue, 12 Oct 2004 01:14:00 -0400, Sherm Pendley wrote:
    > Barry Skidmore wrote:
    > Looking at your older post, I noticed that the libexpat listed there is
    > *very* old - 0.4.0. The current version on sourceforge is 1.95.
    >
    > You might try installing a newer expat.
    Actually I did that shortly after posting yesterday. The expat install
    went fine, but the same path errors are occurring with the XML::Parser
    install.

    I think there must be something very obvious I am doing incorrectly that
    is causing this.

    Barry
    Barry Skidmore Guest

  9. #8

    Cool Re: Can not Install XML::Parser

    My problem is: installed XML parser
    ze.mark@freemail.hu Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139