Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Module Path Under Windows

by logan (Curate)
on Aug 31, 2006 at 17:42 UTC ( #570645=perlquestion: print w/replies, xml ) Need Help??
logan has asked for the wisdom of the Perl Monks concerning the following question:

After a long time in the Unix world I'm trying to write a script that accesses a MySql database from Windows. Right off the bat, I've run into trouble: perl can't find DBI.pm. I've got perl installed into C:\Perl and a search reveals that DBI.pm is installed in C:\Perl\site\lib\PerlEx\DBI.pm. When I run my script (from cygwin), I get this:
$ perl populate_db.pl Can't locate DBI.pm in @INC (@INC contains: c:/Perl/lib c:/Perl/site/l +ib .) at populate_db.pl line 3 . BEGIN failed--compilation aborted at populate_db.pl line 3.
The source code couldn't be simpler:
#!/usr/bin/perl -w use DBI;
I feel sure that I'm missing some basic concept about perl under Windows, but my searches have proved fruitless. Can anyone point me in a direction?

-Logan
"What do I want? I'm an American. I want more."

Replies are listed 'Best First'.
Re: Module Path Under Windows
by Burak (Chaplain) on Aug 31, 2006 at 17:59 UTC
    You didn't install DBI. PerlEx::DBI is a part of ActiveState' s PerlEx software not the DBI module itself. Use ppm to locate and install DBI (and DBD::mysql).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://570645]
Approved by grep
help
Chatterbox?
[Corion]: Hehe - $work is a place where we have lots of (money) accounts, and lots of journals where every transaction is recorded. But our HR system where the accounts of hours worked and vacation days taken are stored, there is no real account of who changed ...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2018-01-23 16:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (248 votes). Check out past polls.

    Notices?