ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
RE: Still can't make XML::Parser
by Tim Harsch other posts by this author
Sep 3 2002 9:33PM messages near this date
view in the new Beta List Site
Re: Still can't make XML::Parser | RE: Still can't make XML::Parser
Thanks Emmet.  I'm guessing you're right, the LD_RUN_PATH mechanisms is
somehow not right in the Makefile script.  I'm not sure that it will fix
my problem, but at least I could rule it out if it were fixed.

P.S.  Thanks for the suggestion, I did exactly as you suggested, and
still am receiving the error.  Phew!  This one has got me beat...

P.P.S.  I'm copying the XML::Parser author on this so perhaps he can
take a look at the Makefile problem.

>  -----Original Message-----
>  From: Emmet Caulfield [mailto:emmet@[...].com] 
>  Sent: Tuesday, September 03, 2002 1:56 PM
>  To: Tim Harsch
>  Cc: perl-xml@[...].com
>  Subject: 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/sparc
v9 Expat.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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved