I'm new to this list, and 'new' to PERL on OSX - though I've had some years
hacking around on the Windows version.

I was using the default set up fine until I wanted to install a new module -
Authen::Smb to be specific.

So I followed the directions for configuring CPAN on the Apple web site and
then following their suggestion used it to install "Bundle::libnet" - which
seems to completely screwed up all the file locations. I assume this because
while my vanilla scripts run OK, anything attempting to access a package
(even 'shell> perl -V") throws an error like ...

"Can't locate <package path> in @INC (@INC contains: ...etc."

(I also get can't compile package errors - including for the CPAN shell
itself.)

I assume I got some of  the (main, not user version) "Config.pm" settings
incorrect - the main suspects being,

  'build_dir' => q[/System/Library/Perl],

  'cpan_home' => q[/System/Library/Perl/CPAN], (Though this one is a puzzle
because I now seem to have a /System/Library/Perl/.cpan directory as well?)

  'keep_source_where' => q[/System/Library/Perl],

  'make' => q[/usr/bin/make],

  'make_arg' => q[],

  'make_install_arg' => q[],

  'makepl_arg' => q[],

The current @INC paths are,

/System/Library/Perl/darwin
/System/Library/Perl
/Library/Perl/darwin
/Library/Perl 
/Network/Library/Perl/darwin
/Network/Library/Perl
/Network/Library/Perl

Which raises 2 questions - 1) there seem to be CPAN directories all over the
place, and 2) the /Network/Library directory is actually empty, and doesn't
have a Perl sub-directory?

(At least I don't have any Perl files in /usr/local/bin - and I am SO
wishing I had just downloaded and made the package manually!!)

If this info indicates a common, no-brainer, newbie mistake, I'd appreciate
being told what it was. Failing that, is there a simple way to wipe out all
my sins and go back to a default setup? Or finally, does anyone know of some
documentation on how Perl is supposed to be set up specifically on OS X?

Any help or pointers would be appreciated.

TIA


Ric Phillips

Faculty Web Coordinator
Faculty of Humanities and Social Sciences
Latrobe University

Reply via email to