CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Adding a module

 



JonnyThunder
User

Sep 14, 2002, 7:10 AM

Post #1 of 5 (1124 views)
Adding a module Can't Post

Hi there,

I went onto Perl.org to download the DBI module, but am having difficulty getting it to work. Basically, the instructions say to do this.....

1. Download and extract to folder (did that)

2. Build the module (if necessary)... mine looked like it was ready to go - didn't need to be built

3. Copy fold into LIB in perl folder.

Now, when I extracted it - it came out as a folder called "DBI-1.30" (I presume this is the latest). I tried putting that folder into LIB, but still cant get DBI progs to work. Is there anything else I need to do? I was concerned because there are sub-directories inside the DBI-1.30 folder. Does perl find these automatically?

Any help is appreciated,
JT


Paul
Enthusiast

Sep 14, 2002, 8:58 AM

Post #2 of 5 (1121 views)
Re: [JonnyThunder] Adding a module [In reply to] Can't Post

Do you have ssh or telnet access?....if so I'd use that:

perl -MCPAN -e 'install DBI'


JonnyThunder
User

Sep 14, 2002, 9:55 AM

Post #3 of 5 (1119 views)
Re: [RedRum] Adding a module [In reply to] Can't Post

I'm sorry. I missed out a vital bit of info! :) ....

This is all running locally. I've installed ActiveState Perl in Windows 2000. My intention is to run local copies of Perl and mySQL database so i can develop my scripts offline before uploading them.

My Perl is installed in E:\Perl - but I'm just not sure what else I'm meant to do once I've copied the DBI module folder into LIB.

Any ideas?


davorg
Thaumaturge / Moderator

Sep 14, 2002, 10:52 AM

Post #4 of 5 (1118 views)
Re: [JonnyThunder] Adding a module [In reply to] Can't Post

If you're running ActivePerl on windows then the easiest way to install modules is using "ppm". Simply type "ppm" at your command line and then type (I think) "install DBI".

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks


JonnyThunder
User

Sep 14, 2002, 11:43 AM

Post #5 of 5 (1116 views)
Re: [davorg] Adding a module [In reply to] Can't Post

 
Superb work Davorg. Once again you've shown me the way. Worked a treat.

Thanks,
JT

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives