Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding a module... 1

Status
Not open for further replies.

simanek

Programmer
Joined
Jan 19, 2001
Messages
137
Location
US
Okay so maybe I'm dumb or just haven't looked hard enough for the documentation. I've downloaded the mysql module for perl but I have no idea how to install it or add it in to make it usable. Any ideas? Even more helpful would be a url where I can learn all I could possibly want about modules and their use. Thanks.

Mike
 
Mike, your Perl installation typically comes with "perldoc"s, which is a bunch of great perl documentation. On *nix, you can start by doing

perldoc perl

and that lists all the different topics covered in the perldocs. In that list, you see "perlmod", "perlmodlib", and "perlmodinstall" - my guess is you are looking for "perlmod".

FYI, the DBD modules, DBD::mysql included, come with a README and/or INSTALL that explains how to install it. You didn't mention DBI, but you'll also need the Perl DBI module. I seem to have a mental block because I can never remember which one has to be installed first - I think DBI needs to be installed first, then DBD::mysql. And I'm sure you already know this, but just on the off chance that you don't...you need to have MySQL installed before you install DBD::mysql.

Also, the DBI and all the DBD modules come with great documentation - after they are installed, you can do

perldoc DBI

to get great info on DBI - this is a *MUST* read. And

perldoc DBD::mysql

will tell you how to use DBD::mysql to connect to a MySQL database - also a *MUST* read.

HTH.
Hardy Merrill
Mission Critical Linux, Inc.
 
If you're using ActivePerl it's very easy to install a new module. Open a dos window and enter "ppm". When the ppm prompt comes up enter "install DBI" and then "install DBD-mysql". It will do the install for you! You need to have a web connection open for this to work, but it works great!
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top