Packaging the perl, give it to atom, all on Panther
February 7, 2004 11:15 PM   Subscribe

I'm trying to write a short Perl script under Mac OS X (Panther) to post to a Moveable Type weblog using the Atom API. After some initial problems with installing packages, I'm having this issue. [more inside]

I get the following error: Can't locate XML/ in @INC. Any pointers from you Mac/Perl gurus?

( is located under: /Users/,username/.cpan/build/XML-LibXML-1.56)
posted by mmangano to Computers & Internet (2 answers total)
That doesn't sound like a proper location for the perl module; It should probably get installed somewhere in the module paths listed when you do 'perl -V'. If you insist on using it there, make a symlink from XML-LibXML-1.56 to 'XML' in that same directory, and put use lib '/Users/,username/.cpan/build/'; at the top of your script. This adds your CPAN build dir to your module path list. (Once again, this is very probably not what you want to do).
posted by fvw at 4:54 AM on February 8, 2004 shouldn't be there; that is the default build dir. Log in as root (e.g. with su in a terminal) and try: perl -MCPAN -e 'install XML::LibXML'
posted by thebabelfish at 5:33 AM on February 8, 2004

« Older Vacation to Warm Climate   |   Losing hard drive space Newer »
This thread is closed to new comments.