Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Perl / July 2004



Tip: Looking for answers? Try searching our database.

XML::LibXML install on Mac?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ingo Weiss - 23 Jul 2004 22:21 GMT
Hi all,

I am using XML::LibXML and so far did all the testing on my Linux web
server (meaning that I had to be online to test). Now I would like to
set my Mac up for local development - is it possible to install
XML::LibXML on a Mac (Panther)? Can I just go ahead and install it from
CPAN?

If not, is there an easy way to check which CPAN modules work on a Mac?

Ingo
Ken Williams - 24 Jul 2004 02:47 GMT
> Hi all,
>
[quoted text clipped - 5 lines]
>
> If not, is there an easy way to check which CPAN modules work on a Mac?

The easy way is to try to install it via CPAN and see whether it works.
 In principle most things work.

 -Ken
Sherm Pendley - 24 Jul 2004 02:55 GMT
> I am using XML::LibXML and so far did all the testing on my Linux web
> server (meaning that I had to be online to test). Now I would like to
> set my Mac up for local development - is it possible to install
> XML::LibXML on a Mac (Panther)? Can I just go ahead and install it from
> CPAN?

It's been a while since I last built it, but if memory serves it should
build cleanly. You're using Panther, so the low-level C library it
needs is already included - if you were using Jaguar or earlier, it
would be more difficult.

An alternative is the CamelBones "Fat Camel" package, and the related
"XMLKit" package. That will install Perl 5.8.4, along with a long list
of XML-related modules. The full list is in the original announcement
here:

<http://tinyurl.com/4h7e6>

I'm working on an updated package with the recently-released Perl
5.8.5, too.

> If not, is there an easy way to check which CPAN modules work on a Mac?

Most of them work just fine. It can't hurt to search the list archives
for the name of the module you're thinking about - if there are
problems, they're often discussed here:

<http://www.mail-archive.com/macosx%40perl.org/>

sherm--
Alan Olsen - 26 Jul 2004 18:31 GMT
>> I am using XML::LibXML and so far did all the testing on my Linux web
>> server (meaning that I had to be online to test). Now I would like to
[quoted text clipped - 7 lines]
> it needs is already included - if you were using Jaguar or earlier, it
> would be more difficult.

Actually it ˆs not.

You need to install the expat library. http://expat.sourceforge.net/
Sherm Pendley - 26 Jul 2004 19:21 GMT
> You need to install the expat library. http://expat.sourceforge.net/

No you don't. XML::LibXML doesn't use the Expat parser, it uses the  
libxml parser.

But don't take my word for it, just ask otool what the .bundle is  
linked against:

Sherm-Pendleys-Computer:~ sherm$ otool -L  
/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/XML/LibXML/
LibXML.bundle

/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/XML/LibXML/
LibXML.bundle:
        /usr/lib/libxml2.2.dylib (compatibility version 9.0.0, current  
version 9.7.0)
        /usr/lib/libz.1.dylib (compatibility version 1.0.0, current  
version 1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,  
current version 71.1.1)
        /usr/lib/libiconv.2.dylib (compatibility version 5.0.0, current  
version 5.0.0)

sherm--
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.