Problems installing XML::PArser on Solaris 9 (due to missing Expat.o?)

terrapin44_at_gmail.com
Date: 09/07/05


Date: 7 Sep 2005 13:11:44 -0700

Hello all,

Has anyone that has succefully installed XML::Parser on Solris 9 able
to help me out. I can't seem to get it to install. It seems to mostly
complain abour expat. I have expat installed on this machine (I used
the one from sunfreeware.com). Here is what happens:

# perl Makefile.PL cc=gcc
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/project s/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.

# ls -al /usr/local/lib/libexpat*
-rw-r--r-- 1 bin bin 370868 Dec 17 2002
/usr/local/lib/libexpat.a
-rwxr-xr-x 1 bin bin 806 Dec 17 2002
/usr/local/lib/libexpat.la
lrwxrwxrwx 1 root other 17 Jun 8 09:29
/usr/local/lib/libexpat.so -> libexpat.so.0.4.0
lrwxrwxrwx 1 root other 17 Jun 8 09:29
/usr/local/lib/libexpat.so.0 -> libexpat.so.0.4.0
-rwxr-xr-x 1 bin bin 323716 Dec 17 2002
/usr/local/lib/libexpat.so.0.4.0

# ls -al /usr/local/include/expat.h
-rw-r--r-- 1 bin bin 35616 Dec 17 2002
/usr/local/include/expat.h

# perl Makefile.PL cc=gcc 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

(so far so good..... however...)

# make
cp Parser/Encodings/README blib/lib/XML/Parser/Encodings/README
cp Parser/Style/Debug.pm blib/lib/XML/Parser/Style/Debug.pm
cp Parser/Encodings/iso-8859-7.enc
blib/lib/XML/Parser/Encodings/iso-8859-7.enc
cp Parser/Encodings/x-sjis-cp932.enc
blib/lib/XML/Parser/Encodings/x-sjis-cp932.enc
cp Parser/Encodings/big5.enc blib/lib/XML/Parser/Encodings/big5.enc
cp Parser/Encodings/windows-1250.enc
blib/lib/XML/Parser/Encodings/windows-1250.enc
cp Parser/Encodings/iso-8859-8.enc
blib/lib/XML/Parser/Encodings/iso-8859-8.enc
cp Parser/Encodings/iso-8859-2.enc
blib/lib/XML/Parser/Encodings/iso-8859-2.enc
cp Parser/Style/Subs.pm blib/lib/XML/Parser/Style/Subs.pm
cp Parser/Style/Objects.pm blib/lib/XML/Parser/Style/Objects.pm
cp Parser/Encodings/x-euc-jp-jisx0221.enc
blib/lib/XML/Parser/Encodings/x-euc-jp-jisx0221.enc
cp Parser/Encodings/iso-8859-9.enc
blib/lib/XML/Parser/Encodings/iso-8859-9.enc
cp Parser/Encodings/x-sjis-unicode.enc
blib/lib/XML/Parser/Encodings/x-sjis-unicode.enc
cp Parser/Encodings/iso-8859-3.enc
blib/lib/XML/Parser/Encodings/iso-8859-3.enc
cp Parser/Style/Stream.pm blib/lib/XML/Parser/Style/Stream.pm
cp Parser/Encodings/windows-1252.enc
blib/lib/XML/Parser/Encodings/windows-1252.enc
cp Parser/Encodings/x-sjis-jdk117.enc
blib/lib/XML/Parser/Encodings/x-sjis-jdk117.enc
cp Parser/Encodings/euc-kr.enc blib/lib/XML/Parser/Encodings/euc-kr.enc
cp Parser/Encodings/iso-8859-4.enc
blib/lib/XML/Parser/Encodings/iso-8859-4.enc
cp Parser/Style/Tree.pm blib/lib/XML/Parser/Style/Tree.pm
cp Parser/Encodings/Japanese_Encodings.msg
blib/lib/XML/Parser/Encodings/Japanese_Encodings.msg
cp Parser/Encodings/x-sjis-jisx0221.enc
blib/lib/XML/Parser/Encodings/x-sjis-jisx0221.enc
cp Parser.pm blib/lib/XML/Parser.pm
cp Parser/Encodings/iso-8859-5.enc
blib/lib/XML/Parser/Encodings/iso-8859-5.enc
cp Parser/Encodings/x-euc-jp-unicode.enc
blib/lib/XML/Parser/Encodings/x-euc-jp-unicode.enc
cp Parser/LWPExternEnt.pl blib/lib/XML/Parser/LWPExternEnt.pl
cp Expat.pm ../blib/lib/XML/Parser/Expat.pm
/usr/bin/perl -I/usr/perl5/5.6.1/lib/sun4-solaris-64int
-I/usr/perl5/5.6.1/lib /usr/perl5/5.6.1/lib/ExtUtils/xsubpp
-noprototypes -typemap /usr/perl5/5.6.1/lib/ExtUtils/typemap -typemap
typemap Expat.xs > Expat.xsc && mv Expat.xsc Expat.c
cc -c -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-xO3 -xdepend -DVERSION=\"2.34\" -DXS_VERSION=\"2.34\" -KPIC
-I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE Expat.c
cc: unrecognized option `-KPIC'
cc: language depend not recognized
cc: Expat.c: linker input file unused because linking not done
Running Mkbootstrap for XML::Parser::Expat ()
chmod 644 Expat.bs
rm -f ../blib/arch/auto/XML/Parser/Expat/Expat.so
LD_RUN_PATH="/usr/local/lib" cc -G Expat.o -o
../blib/arch/auto/XML/Parser/Expat/Expat.so -L/usr/local/lib -lexpat

cc: Expat.o: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target
`../blib/arch/auto/XML/Parser/Expat/Expat.so'
Current working directory
/local/home/corrado/perl/XML-Parser-2.34/Expat
*** Error code 1
make: Fatal error: Command failed for target `subdirs'
#

It seems to be dying asking for Expat.o. I don't seem to have this even
though I have expat. I decide to try linking Expat.o to the expat
library....

# ln -s libexpat.so Expat.o

I try again.....

# make
cc -c -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-xO3 -xdepend -DVERSION=\"2.34\" -DXS_VERSION=\"2.34\" -KPIC
-I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE Expat.c
cc: unrecognized option `-KPIC'
cc: language depend not recognized
cc: Expat.c: linker input file unused because linking not done
rm -f ../blib/arch/auto/XML/Parser/Expat/Expat.so
LD_RUN_PATH="/usr/local/lib" cc -G Expat.o -o
../blib/arch/auto/XML/Parser/Expat/Expat.so -L/usr/local/lib -lexpat

cc: Expat.o: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target
`../blib/arch/auto/XML/Parser/Expat/Expat.so'
Current working directory
/local/home/corrado/perl/XML-Parser-2.34/Expat
*** Error code 1
make: Fatal error: Command failed for target `subdirs'

Still no good. Any ideas? FWIW: I also tried downloaded expat and
install form source, and also tried using the libexpat package from the
Solaris 9 Software Companion 9/04 in case something might have been
missing from the
Sunfreeware package.

Thanks,

Edward



Relevant Pages

  • math::gmp install problem
    ... I'm trying to install the Math::GMP module on Sparc Solaris 8 and ... *** Error code 1 ... make: Fatal error: Command failed for target `all-recursive' ...
    (comp.lang.perl.misc)
  • Errors installing XML::Parser from CPAN on Solaris 9
    ... I can't seem to get it to install. ... I have expat installed on this machine (I used ... *** Error code 1 ... make: Fatal error: Command failed for target `subdirs' ...
    (comp.lang.perl.modules)
  • Re: Error number: 0xC80005F6
    ... I rebooted and Tried to run windows update. ... "Express Install" or "Custom Install." ... Target version: 5.5.3790.2182 Required: 5.5.3790.2182 ... > Find the error code in your logs and post the context. ...
    (microsoft.public.windowsupdate)
  • Solaris 9 cant compile grep 2.5.1
    ... install: ./cs.gmo does not exist ... *** Error code 1 ... make: Fatal error: Command failed for target `install-recursive' ...
    (comp.unix.solaris)
  • Re: advanced programming unix environment
    ... I would appreciate if somebody else running freebsd 7.0 could download source and see if it makes fine on their installation. ... *** Error code 1 ... be unable to log in as root in any way, ... After the initial install I was able to log ...
    (freebsd-questions)