LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-02-2004, 10:03 PM   #1
junjem0702
LQ Newbie
 
Registered: Jul 2004
Posts: 9

Rep: Reputation: 0
Error running porgram


Hi all, any idea about the error below?

install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at (eval 1) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
 
Old 08-02-2004, 10:12 PM   #2
junjem0702
LQ Newbie
 
Registered: Jul 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Followup,

Here's the content of my script. When I run it, I got an or as in my previous post. Any ideas?


#!/usr/bin/perl
use DBI;

my $dbh = DBI->connect ("DBI:mysql:vpopmail:localhost", "username","password")
|| die "Could not connect to database:"
. DBI-> errstr;

my $sql_stmnt = "SELECT pw_name, pw_clear_passwd FROM kids_table";
my $sth = $dbh->prepare($sql_stmnt);
$sth->execute();

while (my($pw_name, $pw_clear_passwd) = $sth->fetchrow_array()) {
system "/home/vpopmail/bin/vadduser $pw_name\@domain.com.ph $pw_clear_passwd\n";
}
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error running blackbox: BScreen::BScreen: an error occured while querying the X se Niceman2005 Linux - Software 4 03-09-2005 09:14 PM
Error 219. Error running jifyboot during installation jfi Linspire/Freespire 10 12-14-2004 09:49 AM
A porgram that can take down the time when I'm working? : brynjarh Linux - Software 2 08-03-2004 10:35 PM
Error running ldconfig Menestrel Linux - Newbie 2 04-15-2004 04:31 AM
ERROR running make when installing Nvidia drivers (syntax error) randyriver10 Linux - Software 5 02-21-2004 04:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration