Tilted Forum Project Discussion Community

Tilted Forum Project Discussion Community (https://thetfp.com/tfp/)
-   Tilted Technology (https://thetfp.com/tfp/tilted-technology/)
-   -   [Perl]Installing DBI (Database Interface Module) (https://thetfp.com/tfp/tilted-technology/91929-perl-installing-dbi-database-interface-module.html)

CBlend 07-13-2005 04:16 PM

[Perl]Installing DBI (Database Interface Module)
 
I'd like to use the "use DBI;" statement in my Perl scripts so I can use the DBI module to read from a database. I have books and have visited web sites that are really great at explaining how to code and use this once you have the module installed.

Does anyone know a good site that gives directions as to how you'd go about doing this? Please? I feel like I moron -- I understand the code and have written other non-database related Perl programs, but I can't figure out how to install the module.

I read and followed the Perl documentation. When I try to do this and use the 'make' command at the command prompt, it doesn't do anything. For Windows, it says the command may be 'nmake' or 'dmake'. If you know a site, or even a good message borad where I can ask about this, please let me know.

I am running Perl 5.8 on XP Pro.

ratbastid 07-13-2005 05:54 PM

Are you using ActivePerl? If so, you have PPM, ActiveState's Perl Package Manger, and you should use that to install DBI and most any other module.

FAQs and usage information here: http://aspn.activestate.com/ASPN/doc...Perl-faq2.html

Now, bear in mind, you'll need a database to talk to with DBI. The classic one to use with Perl is MySQL, but DBI can interface with a broad range of databases, including ODBC interfaces (like Access or MSSQL).

trache 07-14-2005 02:21 AM

If you have CPAN installed, just run the CPAN script and while you're at the shell type "install DBI"

http://www.start-linux.com/articles/article_34.php

This should get you started. I guess you could substitute your way if you're using Windows.

theFez 07-14-2005 09:04 PM

Quote:

Originally Posted by CBlend
XP Pro.

there's your problem!
:p

CBlend 07-16-2005 10:11 AM

Thanks so much, ratbastid. I didn't know about PPM. I have a "For Dummies" book, which didn't mention it.

All I had to do was type "install DBI" and I got it! I also typed "search DBD" and got an ODBC package. I used it to connect to an Access database - yeehaw!


All times are GMT -8. The time now is 11:41 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73