|
Posted by Barry Skidmore on September 29, 2004, 5:26 pm
Please log in for more thread options
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:
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
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:
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
cpan>
|
|
Posted by Sherm Pendley on September 29, 2004, 11:11 pm
Please log in for more thread options
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: http://camelbones.sourceforge.net Hire me! My resume: http://www.dot-app.org
|
|
Posted by Barry Skidmore on September 30, 2004, 12:00 pm
Please log in for more thread options 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 http://www.perl.com/CPAN 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:
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
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:
|
|
Posted by Sherm Pendley on September 30, 2004, 5:17 pm
Please log in for more thread options 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: http://camelbones.sourceforge.net Hire me! My resume: http://www.dot-app.org
|
|
Posted by Barry Skidmore on October 11, 2004, 1:28 pm
Please log in for more thread options 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:
ftp://archive.progeny.com/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-2.34.tar.gz
.
..
.
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:
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
cpan>
|
| Similar Threads | Posted | | XML-Parser-2.34 install problem on Solaris | December 7, 2004, 5:18 pm |
| XML::Parser::Expat install problem | April 24, 2005, 1:44 am |
| XML::Parser CPAN install error with Expat.o | October 1, 2004, 4:36 pm |
| XML::Parser CPAN install error with Expat.o | October 1, 2004, 4:36 pm |
| only want to install one module and the depended ones, but CPAN always install the whole Perl. | September 14, 2007, 5:23 pm |
| Need Help with XML::Parser | July 5, 2005, 12:53 pm |
| X500::DN::Parser V 1.16 | July 29, 2004, 7:20 am |
| How to use SGML::Parser? | August 2, 2005, 5:18 pm |
| Possible bug in HTML::Parser | November 15, 2005, 5:05 pm |
| Installing XML Parser | May 25, 2006, 2:20 am |
|