Re: Still can't make XML::Parser
by Emmet Caulfield other posts by this author
Sep 3 2002 8:56PM messages near this date
view in the new Beta List Site
Still can't make XML::Parser
|
RE: Still can't make XML::Parser
On Tue, 3 Sep 2002, Tim Harsch wrote:
> I've tried just about everything I can think of. Basically, just about
> all permutations of setting LD_LIBRARY_PATH, LD_RUN_PATH, EXPATLIBPATH
[SNIP]
> environment and I change the line in the makefile that has LD_RUN_PATH
> in it (to the path of the Expat I just built), I still get:
> LD_RUN_PATH="/usr/local/lib" cc ..
> As the line that 'make' is attempting to run. (see below)
I just had exactly the same problem installing XML::Parser into a user
account on FreeBSD --- it's as if the options specified as arguments to
'perl Makefile.PL' or edited into it don't 'propogate' correctly to the
stuff in the Expat directory.
I don't know whether this is a bug in MakeMaker or in the XML::Parser
package, but it's a definite problem. I had similar travails with
Image::Magick.
[SNIP]
> LD_RUN_PATH="/usr/local/lib" cc -G -xarch=v9 -L/usr/local/lib
> -L/usr/lib/sparcv9 Expat.o -o
> ../blib/arch/auto/XML/Parser/Expat/Expat.so -lexpat
> ld: fatal: library -lexpat: not found
[SNIP]
Having run 'perl Makefile.PL' in the root of the XML::Parser distribution,
what I did next was go into the Expat directory, run 'make' and let it
generate the error, then I cut and pasted the compiler invocation that
generated the error to the command prompt, edited it to remove the
setting of LD_RUN_PATH to the errouneous directory, and ran it.
I have LD_RUN_PATH set appropriately in my .profile, but assuming your
libexpat.so is in "/my/lib/path", you might have some success with:
$ LD_RUN_PATH="/my/lib/path" cc -G -xarch=v9 -L/my/lib/path > -L/usr/lib/sparcv9 E
xpat.o -o > ../blib/arch/auto/XML/Parser/Expat/Expat.so -lexpat
After I did this, I went back in to the root directory of the
distribution, ran 'make' and 'make test' as usual and they worked fine.
It may not be kosher, in that we're supposed to fix these things properly
and submit patches, but it worked for me.
HTH,
Emmet.
--
,----------------------=[ emmet@[...].com ]=------------------------.
| Internet Software & Business Automation. C, Perl, XML, SQL |
| Legal: http://netrogen.com/about/email.php Unix/Linux, Windows |
`---------------------=[ http://netrogen.com/ ]=-----------------------'
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Tim Harsch
Emmet Caulfield
Tim Harsch
Emmet Caulfield
Tim Harsch
Tim Harsch
|