use XML::Simple doesn't work

bolly

Verified User
Joined
May 28, 2007
Messages
5
Location
London
Hi,

In my script, simple comments, XML::Simple fails to compile, wit the error:
Can't locate XML/Simple.pm in @INC (@INC contains: /System/Library/Perl/5.8.6/darwin-thread-multi-2
+level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.
+6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6
+ /Network/Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Librar
+y/Perl/Extras/5.8.6 /Library/Perl/5.8.1) at /Volumes/files/chuee/Library/Caches/TemporaryItems/Cap
+tainFTPTmp73/Comments.pm line 6.
BEGIN failed--compilation aborted at /Volumes/files/chuee/Library/Caches/TemporaryItems/CaptainFTPT
+mp73/Comments.pm line 6
.
Other modules required are found, and the the path to perl has been checked to be correct. There is a symlink from /usr/bin/perl to /usr/local/bon/perl as the serer has updated to perl 5.8.8 The relevant calls in the script are:

use XML::Simple;

# Following is to avoid "Can't locate object
# method SWASHNEW" errors in Perl 5.6.1
if ($[ < 5.008) { use utf8; }

my $default_config_file = '';
our $default_section_name = '';

# Force XML::Parser in XML::Simple
$XML::Simple::PREFERRED_PARSER = 'XML::PARSER';
ANy tips, suggestions keenly welcome, JOhn
 
The error message indicates that XML::Simple is either improprly installed on your server or not installed at all.

If you own the server you'll need to install XML::Simple.

If you don't own the server you'll need to contact your hosting company.

Jeff
 
Back
Top