[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] loading Data::Dumper problem



At 2:27 AM -0700 10/8/98, Xah Lee wrote:

} I couldn't get the module Data::Dumper to load, and couldn't figure
} out what's wrong.
}
} Here's the errors I'm getting:
}
} ># Can't find loadable object for module Data::Dumper in @INC

Notice what the error says, "Can't find loadable object".  It's telling you
something, something different that what it would be telling you if
:Data:Dumper.pm itself was missing.  (Try running the script "use
Data::Damper", for example.)  You're missing the shared library which
should be at :MacPPC:auto:Data:Dumper:Dumper in one of your @INC folders.
(Or "Mac68k" if it's an old Mac with a 680x0 chip.)

} >(APS318User:T2:perl_files_dir:perlModules_dir
} >APS318User:T2:perl_files_dir:perlModules_dir:Data
} >APS318User:T2:perl_files_dir:perl_scripts_dir:downloaded_dir
} >APS347App:app:programing:MacPerl €:lib:MacPPC
} >APS347App:app:programing:MacPerl €:lib  Dev:Pseudo)
} >File 'Dev:Pseudo'; Line 10
} ># BEGIN failed--compilation aborted.
} >File 'Untitled #2'; Line 10
}
} I have the file 'Dumper.pm' at
} APS318User:T2:perl_files_dir:perlModules_dir:Data:Dumper.pm
}
} Questions:
}
} (1) Where the heck did 'lib  Dev:Pseudo' came from? Apparently it's
} not a file on my system.

It's Matthias' way of telling the script to check it's resource fork.

}
} (2) How can I get Data::Dumper to load?

Two ways.  Use the NOXSUB version, which is pure Perl.  Or get the
Data::Dumper tarball from Chris' site and install everything, including the
shared library, in the proper places.

}
} (2) I also wish to learn how to install modules on unix boxes. Is
} there a good place to read up?

Learn how to use the CPAN module, which is by far the best way.  To invoke
it,  "perl -MCPAN -e shell".  But if  you insist on installing by hand,
it's: get and unpack the tarball from CPAN, and then "perl Makefile.PL;make
test" followed by a "make install" if the tests pass.  CPAN does all that
for you, automatically.

}
} Thanks.
}
}  Xah, xah@best.com
}  http://www.best.com/~xah/PageTwo_dir/more.html
}
}  >They love, they share; They love and share and care;
}  >Love and share! Share and care!
}  >The Itchy and Scratchy Show!
}
} ***** Want to unsubscribe from this list?
} ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch



-----
Paul J. Schinder
schinder@pobox.com

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch