Perl DBI problem.
am 10.08.2006 00:49:33 von gps
--Apple-Mail-16-762914247
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed
When I try to install the CPAN module DBI on Mac Tiger, it fails even
with force. When I scroll back through the output I find the
following error message:
"Can't locate Data/Dumper.pm in @INC" (followed by a long list of
directories.)
But I installed Data::Dumper with no problems.
I know what you're going to say: "It's not installed in one of the
directories listed." Point well taken, but WHERE is it being
installed, and where does this mysterious and bizarre @INC array get
its paths in the first place, and how do I modify it? Please don't
say "push, pop, shift, and,or unshift", because I've used those, but
the @INC array has a non-persistence property when it comes to my
directories, but is very stubbornly persistent about its own
directories. Where does this array hide when I'm not using Perl?
Gregg Allen
RippyFish Records
To err is human; effective mayhem requires the root password!
--Apple-Mail-16-762914247--
RE: Perl DBI problem.
am 10.08.2006 01:09:18 von Ron.Reidy
Comments in line ...
-----Original Message-----
From: Gregg Allen [mailto:gps@gigline.com]=20
Sent: Wednesday, August 09, 2006 4:50 PM
To: dbi-users@perl.org
Subject: Perl DBI problem.
When I try to install the CPAN module DBI on Mac Tiger, it fails even =20
with force. When I scroll back through the output I find the =20
following error message:
"Can't locate Data/Dumper.pm in @INC" (followed by a long list of =20
directories.)
But I installed Data::Dumper with no problems.
[rr] Where is it? What is the output of 'perl -V'?
I know what you're going to say: "It's not installed in one of the =20
directories listed." Point well taken, but WHERE is it being =20
installed, and where does this mysterious and bizarre @INC array get =20
its paths in the first place, and how do I modify it? Please don't =20
say "push, pop, shift, and,or unshift", because I've used those, but =20
the @INC array has a non-persistence property when it comes to my =20
directories, but is very stubbornly persistent about its own =20
directories. Where does this array hide when I'm not using Perl?
[rr] @INC is defined when you build Perl. When you build and install
modules, they are written to a directory under @INC. See
http://search.cpan.org/dist/perl/pod/perlvar.pod for information about
@INC.
If you installed Data::Dumper in a non standard directory, you will need
to use the 'lib' pragma to define where this is located. See
http://search.cpan.org/dist/perl/pod/perlmodlib.pod#Pragmati c_Modules
for information about this.
The 'push' etc. built-in subroutines are not designed to be persistent,
so you are correct in your observation.
Gregg Allen
RippyFish Records
To err is human; effective mayhem requires the root password!
--
Ron Reidy
Lead DBA
Array BioPharma, Inc.
This electronic message transmission is a PRIVATE communication which =
contains
information which may be confidential or privileged. The information is =
intended=20
to be for the use of the individual or entity named above. If you are =
not the=20
intended recipient, please be aware that any disclosure, copying, =
distribution=20
or use of the contents of this information is prohibited. Please notify =
the
sender of the delivery error by replying to this message, or notify us =
by
telephone (877-633-2436, ext. 0), and then delete it from your system.