[Expat-discuss] Error on installation
Jeremy Schwartz
jeremy@starmark.com
Tue Jan 29 14:21:17 2002
I installed Expat 2.30 on MacOSX 10.1.2 and I am now having some difficulty
with a cgi that uses Expat to parse xml.
I received the advice at from FJ Franklin about setting the
DYLD_LIBRARY_PATH rather than LD_LIBRARY_PATH. How does one go about setting
that path?
Here is the error:
>> [localhost:/Library/WebServer/CGI-Executables] admin% ./reg_system.cgi
>> dyld: perl Undefined symbols:
>> _XML_DefaultCurrent
>> _XML_ErrorString
>> _XML_ExternalEntityParserCreate
>> _XML_GetBase
>> _XML_GetBuffer
>> _XML_GetCurrentByteCount
>> _XML_GetCurrentByteIndex
>> _XML_GetCurrentColumnNumber
>> _XML_GetCurrentLineNumber
>> _XML_GetErrorCode
>> _XML_GetInputContext
>> _XML_GetSpecifiedAttributeCount
>> _XML_Parse
>> _XML_ParseBuffer
>> _XML_ParserCreate_MM
>> _XML_ParserFree
>> _XML_SetAttlistDeclHandler
>> _XML_SetBase
>> _XML_SetCdataSectionHandler
>> _XML_SetCharacterDataHandler
>> _XML_SetCommentHandler
>> _XML_SetDefaultHandler
>> _XML_SetDefaultHandlerExpand
>> _XML_SetElementDeclHandler
>> _XML_SetElementHandler
>> _XML_SetEndCdataSectionHandler
>> _XML_SetEndDoctypeDeclHandler
>> _XML_SetEntityDeclHandler
>> _XML_SetExternalEntityRefHandler
>> _XML_SetNamespaceDeclHandler
>> _XML_SetNotationDeclHandler
>> _XML_SetParamEntityParsing
>> _XML_SetProcessingInstructionHandler
>> _XML_SetStartCdataSectionHandler
>> _XML_SetStartDoctypeDeclHandler
>> _XML_SetUnknownEncodingHandler
>> _XML_SetUnparsedEntityDeclHandler
>> _XML_SetUserData
>> _XML_SetXmlDeclHandler
>>
---------------------------------------
Jeremy Schwartz Starmark
Interactive Developer
Jeremy@Starmarkintl.com 954-761-1600
> From: F J Franklin <F.J.Franklin@sheffield.ac.uk>
> Date: Fri, 25 Jan 2002 15:40:57 +0000 (GMT)
> To: Jeremy Schwartz <jeremy@starmarkintl.com>
> Subject: Re: [Expat-discuss] Error on installation
>
>> 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.
>
> Never use perl myself, so can't really help you. Remember that for darwin
> you should set DYLD_LIBRARY_PATH rather than LD_LIBRARY_PATH - but this
> shouldn't really be necessary.
>
> One thought: has expat been build shared (libexpat[].dylib) or static
> (libexpat.a), because if the latter you may need to run ranlib on the
> installed library - I'm not really sure. darwin can be a pain, though it's
> a joy when everything finally works... :-)
>
> Also, make sure the header file has been installed in the right place,
> which it should but I can't remember.
>
> Good luck, Frank
>
> Francis James Franklin
> F.J.Franklin@shef.ac.uk
>
> It's getting them wrong that is living, getting them wrong and wrong and
> wrong and then, on careful reconsideration, getting them wrong again.
> That's how we know we're alive: we're wrong.
> --- Philip Roth
>
>